Mercurial > ecos-v2_0-branch
changeset 757:2a0d627c63ac
* tests/fptest.c: Make all variables static to avoid any risk
of collisions with symbols defined elsewhere in eCos.
| author | jlarmour |
|---|---|
| date | Mon, 03 Mar 2003 17:07:02 +0000 |
| parents | bc465c81dc32 |
| children | a0734f51a939 |
| files | packages/kernel/current/ChangeLog packages/kernel/current/tests/fptest.c |
| diffstat | 2 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,8 @@ +2003-03-03 Jonathan Larmour <jifl@eCosCentric.com> + + * tests/fptest.c: Make all variables static to avoid any risk + of collisions with symbols defined elsewhere in eCos. + 2003-02-27 Jonathan Larmour <jifl@eCosCentric.com> * include/kapidata.h: Revert change of 2001-08-23 and instead make
--- a/packages/kernel/current/tests/fptest.c +++ b/packages/kernel/current/tests/fptest.c @@ -89,19 +89,19 @@ #define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_MINIMUM) -cyg_uint8 stacks[3][STACK_SIZE]; -cyg_handle_t thread[3]; -cyg_thread thread_struct[3]; +static cyg_uint8 stacks[3][STACK_SIZE]; +static cyg_handle_t thread[3]; +static cyg_thread thread_struct[3]; //========================================================================== // Alarm parameters. -cyg_alarm alarm_struct; -cyg_handle_t alarm; +static cyg_alarm alarm_struct; +static cyg_handle_t alarm; -cyg_count8 cur_thread = 0; -cyg_count32 alarm_ticks = 0; -cyg_count32 run_ticks = RUN_TICKS; +static cyg_count8 cur_thread = 0; +static cyg_count32 alarm_ticks = 0; +static cyg_count32 run_ticks = RUN_TICKS; //==========================================================================
