remove dangling spaces

This commit is contained in:
mrdudz 2022-04-17 16:06:45 +02:00
parent f8f901b05e
commit 299f967527
11 changed files with 31 additions and 31 deletions

View File

@ -1,4 +1,4 @@
/* Note: /* Note:
** This is just a sample piece of code that shows how to use some structs - ** This is just a sample piece of code that shows how to use some structs -
** it may not even run. ** it may not even run.
*/ */
@ -28,5 +28,5 @@ static const dlgBoxStr myDialog = {
void main (void) void main (void)
{ {
DoDlgBox (&myDialog); DoDlgBox (&myDialog);
} }

View File

@ -1,11 +1,11 @@
/* /*
GEOSLib example GEOSLib example
using DlgBoxFileSelect using DlgBoxFileSelect
Maciej 'YTM/Elysium' Witkowiak Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl> <ytm@elysium.pl>
26.12.1999 26.12.1999
*/ */

View File

@ -9,16 +9,16 @@ void main(void)
char ch; char ch;
DlgBoxOk("Now the screen will be", "cleared."); DlgBoxOk("Now the screen will be", "cleared.");
clrscr(); clrscr();
DlgBoxOk("Now a character will be", "written at 20,20"); DlgBoxOk("Now a character will be", "written at 20,20");
gotoxy(20, 20); gotoxy(20, 20);
cputc('A'); cputc('A');
DlgBoxOk("Now a string will be", "written at 0,1"); DlgBoxOk("Now a string will be", "written at 0,1");
cputsxy(0, 1, CBOLDON "Just" COUTLINEON "a " CITALICON "string." CPLAINTEXT ); cputsxy(0, 1, CBOLDON "Just" COUTLINEON "a " CITALICON "string." CPLAINTEXT );
DlgBoxOk("Write text and finish it", "with a dot."); DlgBoxOk("Write text and finish it", "with a dot.");
@ -31,7 +31,7 @@ void main(void)
cursor(0); cursor(0);
DlgBoxOk("Seems that it is all for conio.", "Let's test mouse routines."); DlgBoxOk("Seems that it is all for conio.", "Let's test mouse routines.");
mouse_init(1); mouse_init(1);
cputsxy(0, 2, CBOLDON "Now you can't see mouse (press any key)" CPLAINTEXT); cputsxy(0, 2, CBOLDON "Now you can't see mouse (press any key)" CPLAINTEXT);
mouse_hide(); mouse_hide();

View File

@ -57,6 +57,6 @@ void main (void)
} }
Sleep(10*50); Sleep(10*50);
return; return;
} }

View File

@ -1,11 +1,11 @@
/* /*
GEOSLib example GEOSLib example
Hello, world example - with DBox Hello, world example - with DBox
Maciej 'YTM/Elysium' Witkowiak Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl> <ytm@elysium.pl>
26.12.1999 26.12.1999
*/ */
@ -18,7 +18,7 @@ void main (void)
DlgBoxOk(CBOLDON "Hello, world" CPLAINTEXT, DlgBoxOk(CBOLDON "Hello, world" CPLAINTEXT,
"This is written in C!"); "This is written in C!");
// Normal apps exit from main into system's mainloop, and app finish // Normal apps exit from main into system's mainloop, and app finish
// when user selects it from icons or menu, but here we want to exit // when user selects it from icons or menu, but here we want to exit
// immediately. // immediately.

View File

@ -1,11 +1,11 @@
/* /*
GEOSLib example GEOSLib example
Hello, world example - using graphic functions Hello, world example - using graphic functions
Maciej 'YTM/Alliance' Witkowiak Maciej 'YTM/Alliance' Witkowiak
<ytm@friko.onet.pl> <ytm@friko.onet.pl>
26.12.1999 26.12.1999
*/ */
@ -25,18 +25,18 @@ void main (void)
SetPattern(0); SetPattern(0);
InitDrawWindow(&wholeScreen); InitDrawWindow(&wholeScreen);
Rectangle(); Rectangle();
// Now some texts // Now some texts
PutString(COUTLINEON "This is compiled using cc65!" CPLAINTEXT, 20, 10); PutString(COUTLINEON "This is compiled using cc65!" CPLAINTEXT, 20, 10);
PutString(CBOLDON "This is bold", 30, 10); PutString(CBOLDON "This is bold", 30, 10);
PutString(CULINEON "and this is bold and underline!", 40, 10); PutString(CULINEON "and this is bold and underline!", 40, 10);
PutString(CPLAINTEXT "This is plain text", 50, 10); PutString(CPLAINTEXT "This is plain text", 50, 10);
// Wait for 5 secs... // Wait for 5 secs...
// Note that this is multitasking sleep, and if there are any icons/menus onscreen, // Note that this is multitasking sleep, and if there are any icons/menus onscreen,
// they would be usable, in this case you have only pointer usable // they would be usable, in this case you have only pointer usable
Sleep(5*50); Sleep(5*50);
// Normal apps exit from main into system's mainloop, and app finish // Normal apps exit from main into system's mainloop, and app finish
// when user selects it from icons or menu, but here we want to exit // when user selects it from icons or menu, but here we want to exit
// immediately. // immediately.

View File

@ -33,7 +33,7 @@ void foo(void)
{ {
/* Functions resident in an overlay can access all program variables and /* Functions resident in an overlay can access all program variables and
** constants at any time without any precautions because those are never ** constants at any time without any precautions because those are never
** placed in overlays. The string constant "One" is an example for such ** placed in overlays. The string constant "One" is an example for such
** a constant resident in the main program. ** a constant resident in the main program.
*/ */
show("One"); show("One");

View File

@ -1,12 +1,12 @@
/* /*
GEOSLib example GEOSLib example
This small application removes GEOS disk write protection tag. This small application removes GEOS disk write protection tag.
e.g. boot disk is always protected after boot-up e.g. boot disk is always protected after boot-up
Maciej 'YTM/Elysium' Witkowiak Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl> <ytm@elysium.pl>
21.03.2000 21.03.2000
*/ */
@ -60,7 +60,7 @@ void main(void)
{ {
// Here we clear the screen. Not really needed anyway... // Here we clear the screen. Not really needed anyway...
GraphicsString(&clearScreen); GraphicsString(&clearScreen);
// Get the name of current disk to show it in dialog box // Get the name of current disk to show it in dialog box
GetPtrCurDkNm(diskName); GetPtrCurDkNm(diskName);

View File

@ -14,7 +14,7 @@ int main (void) {
int flashes = 255; int flashes = 255;
int displayable = 1; int displayable = 1;
int e = 0; int e = 0;
int r = 0; int r = 0;
int d = 0; int d = 0;
int i = 0; int i = 0;
int l = 0; int l = 0;
@ -40,7 +40,7 @@ int main (void) {
puts ("\n\nHow many times (0 for forever) to repeat?"); puts ("\n\nHow many times (0 for forever) to repeat?");
c = getchar(); c = getchar();
if ( (c >= '0') && (c <= '9') ) {// between 1 and 9 loops allowed if ( (c >= '0') && (c <= '9') ) {// between 1 and 9 loops allowed
z = 1; // a number was pressed z = 1; // a number was pressed
t = c - '0'; // convert char to int t = c - '0'; // convert char to int
puts ("\n\nLook at the front panel.\n"); puts ("\n\nLook at the front panel.\n");
} }

View File

@ -72,7 +72,7 @@ int main (void) {
error = 0; error = 0;
} }
} }
segment += 0x1000; // Increment to next segment segment += 0x1000; // Increment to next segment
} }
segment[0] = 0x00; // Check beginning of top memory segment segment[0] = 0x00; // Check beginning of top memory segment

View File

@ -52,7 +52,7 @@ int main (void) {
ior3b = VIA3.prb; ior3b = VIA3.prb;
puts ("================== Digital I/O Status =================="); puts ("================== Digital I/O Status ==================");
puts (" Port1A Port1B Port2A Port2B Port3A Port3B" ); puts (" Port1A Port1B Port2A Port2B Port3A Port3B" );
printf ("DDR %02X %02X %02X %02X %02X %02X\n\r",ddr1a,ddr1b,ddr2a,ddr2b,ddr3a,ddr3b); printf ("DDR %02X %02X %02X %02X %02X %02X\n\r",ddr1a,ddr1b,ddr2a,ddr2b,ddr3a,ddr3b);
printf ("IOR %02X %02X %02X %02X %02X %02X\n\r",ior1a,ior1b,ior2a,ior2b,ior3a,ior3b); printf ("IOR %02X %02X %02X %02X %02X %02X\n\r",ior1a,ior1b,ior2a,ior2b,ior3a,ior3b);
puts ("========================================================\n"); puts ("========================================================\n");
@ -75,7 +75,7 @@ int main (void) {
cmd[strlen(cmd)-1] = '\0'; cmd[strlen(cmd)-1] = '\0';
if ( strncasecmp(cmd, "quit", 4) == 0 ) { if ( strncasecmp(cmd, "quit", 4) == 0 ) {
going = 0; going = 0;
} }
else if ( strncasecmp(cmd, "help", 4) == 0 ) { else if ( strncasecmp(cmd, "help", 4) == 0 ) {
instr = 1; instr = 1;