diff options
author | Peder Andersen | 2011-06-23 18:39:22 +0000 |
---|---|---|
committer | Eugene Tarassov | 2011-11-21 17:56:40 +0000 |
commit | b7a76d5c2e04197a05f52d99a2401457b77ca83b (patch) | |
tree | b781efc290cbb4c7dc465f2bfaa939634127d88e /framework/link.h | |
parent | 45c739a72bc2f3943aed89e4912137dc2afe8f8f (diff) | |
download | org.eclipse.tcf.agent-b7a76d5c2e04197a05f52d99a2401457b77ca83b.tar.gz org.eclipse.tcf.agent-b7a76d5c2e04197a05f52d99a2401457b77ca83b.tar.xz org.eclipse.tcf.agent-b7a76d5c2e04197a05f52d99a2401457b77ca83b.zip |
TCF Agent: leverage static initialization of lists
In addition to improving size and performance, this allows certain
service capabilites to function to some extent before their initializer
routines are invoked.
Diffstat (limited to 'framework/link.h')
-rw-r--r-- | framework/link.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/link.h b/framework/link.h index 7a5c8514..5d60da68 100644 --- a/framework/link.h +++ b/framework/link.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2010 Wind River Systems, Inc. and others. + * Copyright (c) 2007, 2011 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. @@ -29,6 +29,9 @@ struct LINK { LINK * prev; }; + +#define TCF_LIST_INIT(list) {&(list), &(list)} + #define list_init(list) { \ (list)->next = (list)->prev = (list); \ } |