Changed macros to not include a trailing semicolon.
This commit is contained in:
parent
bbdffcbc86
commit
48e7ef8bc9
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: process.h,v 1.8 2007/05/23 22:16:05 oliverschmidt Exp $
|
* @(#)$Id: process.h,v 1.9 2007/08/22 10:49:48 ksb Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -277,9 +277,9 @@ static PT_THREAD(process_thread_##name(struct pt *process_pt, \
|
||||||
process_data_t data))
|
process_data_t data))
|
||||||
|
|
||||||
#if PROCESS_LOADABLE
|
#if PROCESS_LOADABLE
|
||||||
#define PROCESS_LOAD(name) const struct process *process_load = &name;
|
#define PROCESS_LOAD(name) const struct process *process_load = &name
|
||||||
#else /* PROCESS_LOADABLE */
|
#else /* PROCESS_LOADABLE */
|
||||||
#define PROCESS_LOAD(name)
|
#define PROCESS_LOAD(name) extern int _dummy
|
||||||
#endif /* PROCESS_LOADABLE */
|
#endif /* PROCESS_LOADABLE */
|
||||||
CLIF extern const struct process *process_load;
|
CLIF extern const struct process *process_load;
|
||||||
|
|
||||||
|
@ -296,7 +296,7 @@ CLIF extern const struct process *process_load;
|
||||||
#define PROCESS_NOLOAD(name, strname) \
|
#define PROCESS_NOLOAD(name, strname) \
|
||||||
PROCESS_THREAD(name, ev, data); \
|
PROCESS_THREAD(name, ev, data); \
|
||||||
struct process name = { NULL, strname, \
|
struct process name = { NULL, strname, \
|
||||||
process_thread_##name };
|
process_thread_##name }
|
||||||
/**
|
/**
|
||||||
* Declare a process.
|
* Declare a process.
|
||||||
*
|
*
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: procinit.h,v 1.1 2006/06/17 22:41:20 adamdunkels Exp $
|
* @(#)$Id: procinit.h,v 1.2 2007/08/22 10:49:48 ksb Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef __PROCINIT_H__
|
#ifndef __PROCINIT_H__
|
||||||
#define __PROCINIT_H__
|
#define __PROCINIT_H__
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
#if ! CC_NO_VA_ARGS
|
#if ! CC_NO_VA_ARGS
|
||||||
#define PROCINIT(...) \
|
#define PROCINIT(...) \
|
||||||
const struct process *procinit[] = {__VA_ARGS__, NULL};
|
const struct process *procinit[] = {__VA_ARGS__, NULL}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void procinit_init(void);
|
void procinit_init(void);
|
||||||
|
|
Loading…
Reference in a new issue