1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-11 20:29:36 +00:00

sample programs updated for new GEOS exit/return/MainLoop policy

git-svn-id: svn://svn.cc65.org/cc65/trunk@1899 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst 2003-01-10 21:09:13 +00:00
parent c094dc65c1
commit 2cb06ddf8e
6 changed files with 23 additions and 15 deletions

View File

@ -5,8 +5,8 @@
using DlgBoxFileSelect
Maciej 'YTM/Alliance' Witkowiak
<ytm@friko.onet.pl>
Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl>
26.12.1999
*/
@ -24,5 +24,4 @@ void main (void)
DlgBoxFileSelect("",APPLICATION,fName);
DlgBoxOk("You've chosen:" CBOLDON, fName);
EnterDeskTop();
}

View File

@ -55,6 +55,4 @@ char ch;
DlgBoxOk("Bye,", "Bye.");
EnterDeskTop();
}

View File

@ -5,8 +5,8 @@
Hello, world example - with DBox
Maciej 'YTM/Alliance' Witkowiak
<ytm@friko.onet.pl>
Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl>
26.12.1999
*/
@ -24,6 +24,12 @@ void main (void)
/* 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
immediately.
So instead:
MainLoop();
we can do:
(nothing as this is the end of main function)
exit(0);
return;
*/
EnterDeskTop();
return;
}

View File

@ -45,6 +45,12 @@ void main (void)
/* 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
immediately.
So instead:
MainLoop();
we can do:
(nothing as this is the end of main function)
exit(0);
return;
*/
EnterDeskTop();
return;
}

View File

@ -6,8 +6,8 @@
This small application removes GEOS disk write protection tag.
e.g. boot disk is always protected after boot-up
Maciej 'YTM/Alliance' Witkowiak
<ytm@friko.onet.pl>
Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl>
21.03.2000
*/
@ -81,7 +81,7 @@ void main(void)
GetPtrCurDkNm(diskName);
break;
default: /* CANCEL is the third option */
EnterDeskTop();
return;
break;
}
}

View File

@ -5,8 +5,8 @@
example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
Maciej 'YTM/Alliance' Witkowiak
<ytm@friko.onet.pl>
Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl>
26.12.1999
*/
@ -23,5 +23,4 @@ void main(void)
};
} while (DlgBoxOkCancel("Do you want to try again?", "") == OK);
EnterDeskTop();
}