From 0740be0f73a753eac6e464b5688f4c0784dec73f Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 13 Oct 2001 15:46:03 +0000 Subject: [PATCH] Use static locals (again) git-svn-id: svn://svn.cc65.org/cc65/trunk@1051 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- samples/sieve.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 */ -- 2.39.5