From: cuz Date: Sat, 13 Oct 2001 15:46:03 +0000 (+0000) Subject: Use static locals (again) X-Git-Tag: V2.12.0~2545 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0740be0f73a753eac6e464b5688f4c0784dec73f;p=cc65 Use static locals (again) git-svn-id: svn://svn.cc65.org/cc65/trunk@1051 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/samples/sieve.c b/samples/sieve.c index d20ef8b95..6c6c4a923 100644 --- a/samples/sieve.c +++ b/samples/sieve.c @@ -26,12 +26,16 @@ static unsigned char Sieve[COUNT]; /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ -int main (void) +#pragma staticlocals(1); + + + +int main (void) { /* Clock variable */ clock_t Ticks; @@ -65,7 +69,7 @@ int main (void) /* Print the time used */ printf ("Time used: %lu ticks\n", Ticks); printf ("Press Q to quit, any other key for list\n"); - + /* Wait for a key and print the list if not 'Q' */ if (toupper (cgetc()) != 'Q') { /* Print the result */