1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-03 01:31:55 +00:00

Use static locals (again)

git-svn-id: svn://svn.cc65.org/cc65/trunk@1051 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-10-13 15:46:03 +00:00
parent 2ec9ff05a6
commit 0740be0f73

View File

@ -26,12 +26,16 @@ static unsigned char Sieve[COUNT];
/*****************************************************************************/ /*****************************************************************************/
/* Code */ /* Code */
/*****************************************************************************/ /*****************************************************************************/
int main (void) #pragma staticlocals(1);
int main (void)
{ {
/* Clock variable */ /* Clock variable */
clock_t Ticks; clock_t Ticks;
@ -65,7 +69,7 @@ int main (void)
/* Print the time used */ /* Print the time used */
printf ("Time used: %lu ticks\n", Ticks); printf ("Time used: %lu ticks\n", Ticks);
printf ("Press Q to quit, any other key for list\n"); printf ("Press Q to quit, any other key for list\n");
/* Wait for a key and print the list if not 'Q' */ /* Wait for a key and print the list if not 'Q' */
if (toupper (cgetc()) != 'Q') { if (toupper (cgetc()) != 'Q') {
/* Print the result */ /* Print the result */