mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +00:00
All samples use 'int main' and 'return int'
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sym1.h>
|
||||
|
||||
void main (void) {
|
||||
int main (void) {
|
||||
int delay = 10;
|
||||
int flashes = 255;
|
||||
int displayable = 1;
|
||||
@@ -351,5 +351,8 @@ void main (void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
puts( "\n\nEnjoy your day!\n\n" );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sym1.h>
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
char c = 0x00;
|
||||
int d = 0x00;
|
||||
int l = 0x00;
|
||||
@@ -34,4 +34,6 @@ void main(void) {
|
||||
for( d = 0; d < 10 ; d++ ) {
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
unsigned char ddr1a = 0x00;
|
||||
unsigned char ior1a = 0x00;
|
||||
unsigned char ddr1b = 0x00;
|
||||
@@ -165,4 +165,8 @@ void main(void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
puts( "\n\nEnjoy your day!\n\n" );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -20,8 +20,8 @@
|
||||
#define TAPIO_ADDRESS 0xE000
|
||||
#define TAPIO_MAX_SIZE 0x0FFF
|
||||
|
||||
void main(void) {
|
||||
cha c = 0x00;
|
||||
int main(void) {
|
||||
char c = 0x00;
|
||||
int l = 0x00;
|
||||
int p = 0x00;
|
||||
int error = 0x00;
|
||||
@@ -183,6 +183,10 @@ void main(void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free( buffer );
|
||||
|
||||
puts( "\nEnjoy your day!\n" );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sym1.h>
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
char c = 0x00;
|
||||
int d = 0x00;
|
||||
int l = 0x00;
|
||||
@@ -37,4 +37,6 @@ void main(void) {
|
||||
for( d = 0; d < 10 ; d++ ) {
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user