mirror of
https://github.com/cc65/cc65.git
synced 2024-11-15 11:05:56 +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:
parent
c094dc65c1
commit
2cb06ddf8e
@ -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();
|
||||
}
|
||||
|
@ -55,6 +55,4 @@ char ch;
|
||||
|
||||
DlgBoxOk("Bye,", "Bye.");
|
||||
|
||||
EnterDeskTop();
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user