mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-06 21:55:13 +00:00
apps/: Make more globals static to avoid name clashes
This commit is contained in:
parent
22f48cfb5e
commit
0bcd50d7a1
14 changed files with 79 additions and 92 deletions
|
|
@ -95,18 +95,17 @@ static struct mallinfo g_mmprevious;
|
|||
static struct mallinfo g_mmafter;
|
||||
|
||||
#ifndef CONFIG_DISABLE_ENVIRON
|
||||
const char g_var1_name[] = "Variable1";
|
||||
const char g_var1_value[] = "GoodValue1";
|
||||
const char g_var2_name[] = "Variable2";
|
||||
const char g_var2_value[] = "GoodValue2";
|
||||
const char g_var3_name[] = "Variable3";
|
||||
const char g_var3_value[] = "GoodValue3";
|
||||
static const char g_var1_name[] = "Variable1";
|
||||
static const char g_var1_value[] = "GoodValue1";
|
||||
static const char g_var2_name[] = "Variable2";
|
||||
static const char g_var2_value[] = "GoodValue2";
|
||||
static const char g_var3_name[] = "Variable3";
|
||||
static const char g_var3_value[] = "GoodValue3";
|
||||
|
||||
const char g_bad_value1[] = "BadValue1";
|
||||
const char g_bad_value2[] = "BadValue2";
|
||||
|
||||
const char g_putenv_value[] = "Variable1=BadValue3";
|
||||
static const char g_bad_value1[] = "BadValue1";
|
||||
static const char g_bad_value2[] = "BadValue2";
|
||||
|
||||
static const char g_putenv_value[] = "Variable1=BadValue3";
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -63,10 +63,6 @@
|
|||
#define sched_lock()
|
||||
#define sched_unlock()
|
||||
|
||||
#ifndef NULL
|
||||
# define NULL (void*)0
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
|
@ -82,7 +78,7 @@ static time_t g_start_time;
|
|||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
void my_mdelay(unsigned int milliseconds)
|
||||
static void my_mdelay(unsigned int milliseconds)
|
||||
{
|
||||
volatile unsigned int i;
|
||||
volatile unsigned int j;
|
||||
|
|
@ -94,6 +90,7 @@ void my_mdelay(unsigned int milliseconds)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void *nuisance_func(void *parameter)
|
||||
{
|
||||
/* Synchronized start */
|
||||
|
|
@ -368,4 +365,4 @@ void sporadic_test(void)
|
|||
}
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SCHED_SPORADIC */
|
||||
#endif /* CONFIG_SCHED_SPORADIC */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue