From 41beef7cca8eb285f48f796d74884b38101568af Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Thu, 7 Feb 2008 15:43:37 +0000 Subject: [PATCH] Removed support for the old method of starting a dynamically loaded process based on the symbol 'process_load'. All loaders now have to use the new method based on the symbol 'autostart_processes'. --- core/sys/process.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/core/sys/process.h b/core/sys/process.h index 92bd7e57e..fc883cf7e 100644 --- a/core/sys/process.h +++ b/core/sys/process.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: process.h,v 1.13 2008/01/23 15:18:06 adamdunkels Exp $ + * @(#)$Id: process.h,v 1.14 2008/02/07 15:43:37 oliverschmidt Exp $ */ /** @@ -275,12 +275,6 @@ typedef unsigned char process_num_events_t; static PT_THREAD(process_thread_##name(struct pt *process_pt, \ process_event_t ev, \ process_data_t data)) -#if PROCESS_LOADABLE -#define PROCESS_LOAD(name) const struct process *process_load = &name -#else /* PROCESS_LOADABLE */ -#define PROCESS_LOAD(name) extern int _dummy -#endif /* PROCESS_LOADABLE */ -CLIF extern const struct process *process_load; /** * Declare the name of a process. @@ -292,10 +286,6 @@ CLIF extern const struct process *process_load; */ #define PROCESS_NAME(name) extern struct process name -#define PROCESS_NOLOAD(name, strname) \ - PROCESS_THREAD(name, ev, data); \ - struct process name = { NULL, strname, \ - process_thread_##name } /** * Declare a process. * @@ -308,9 +298,10 @@ CLIF extern const struct process *process_load; * * \hideinitializer */ -#define PROCESS(name, strname) \ - PROCESS_NOLOAD(name, strname); \ - PROCESS_LOAD(name) +#define PROCESS(name, strname) \ + PROCESS_THREAD(name, ev, data); \ + struct process name = { NULL, strname, \ + process_thread_##name } /** @} */