Mercurial > flash_v2
diff packages/hal/common/current/src/generic-stub.c @ 895:4747af8ef0ef
Leave out unused static buffers if not supporting program args.
| author | gthomas |
|---|---|
| date | Wed, 02 Apr 2003 19:48:28 +0000 |
| parents | 4882695334f2 |
| children | 82d5a3544347 |
line wrap: on
line diff
--- a/packages/hal/common/current/src/generic-stub.c +++ b/packages/hal/common/current/src/generic-stub.c @@ -160,7 +160,10 @@ static int process_exception (int sigval static void do_nothing (void); /* and do it gracefully */ static int syscall_do_nothing (int); +#ifdef CYGSEM_ECOS_SUPPORTS_PROGRAM_ARGS void __free_program_args (void); +static char *__add_program_arg (int argnum, uint32 arglen); +#endif volatile __PFI __process_exception_vec = process_exception; volatile __PFV __process_exit_vec = do_nothing; @@ -169,8 +172,6 @@ volatile __PFI __process_signal_vec = NU volatile __PFV __init_vec = NULL; volatile __PFV __cleanup_vec = NULL; -static char *__add_program_arg (int argnum, uint32 arglen); - static const char hexchars[] = "0123456789abcdef"; static void process_query (char *pkt); @@ -1786,6 +1787,7 @@ void __putpacket (__remcomOutBuffer); } +#ifdef CYGSEM_ECOS_SUPPORTS_PROGRAM_ARGS #define MAX_ARG_COUNT 20 #define MAX_ARGDATA 128 @@ -1869,6 +1871,7 @@ char ** __write_mem_safe ((char *) &program_argc, (void *)argcPtr, sizeof (program_argc)); return program_argv; } +#endif /* Table used by the crc32 function to calcuate the checksum. */ static uint32 crc32_table[256];
