Changed macros to not include a trailing semicolon.

This commit is contained in:
ksb 2007-08-22 10:49:48 +00:00
parent bbdffcbc86
commit 48e7ef8bc9
2 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@
*
* 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))
#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 */
#define PROCESS_LOAD(name)
#define PROCESS_LOAD(name) extern int _dummy
#endif /* PROCESS_LOADABLE */
CLIF extern const struct process *process_load;
@ -296,7 +296,7 @@ CLIF extern const struct process *process_load;
#define PROCESS_NOLOAD(name, strname) \
PROCESS_THREAD(name, ev, data); \
struct process name = { NULL, strname, \
process_thread_##name };
process_thread_##name }
/**
* Declare a process.
*

View file

@ -28,7 +28,7 @@
*
* 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__
#define __PROCINIT_H__
@ -37,7 +37,7 @@
#if ! CC_NO_VA_ARGS
#define PROCINIT(...) \
const struct process *procinit[] = {__VA_ARGS__, NULL};
const struct process *procinit[] = {__VA_ARGS__, NULL}
#endif
void procinit_init(void);