Commit bc55d234 authored by Lev Walkin's avatar Lev Walkin

fixed multiple imports problem

parent d83fae9d
This diff is collapsed.
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
This special exception was added by the Free Software Foundation This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */ in version 1.24 of Bison. */
#ifndef BISON_Y_TAB_H #ifndef BISON_ASN_P_Y_H
# define BISON_Y_TAB_H # define BISON_ASN_P_Y_H
/* Tokens. */ /* Tokens. */
#ifndef YYTOKENTYPE #ifndef YYTOKENTYPE
...@@ -274,5 +274,5 @@ typedef union { ...@@ -274,5 +274,5 @@ typedef union {
extern YYSTYPE asn1p_lval; extern YYSTYPE asn1p_lval;
#endif /* not BISON_Y_TAB_H */ #endif /* not BISON_ASN_P_Y_H */
...@@ -456,12 +456,13 @@ ModuleSpecificationBody: ...@@ -456,12 +456,13 @@ ModuleSpecificationBody:
#error MY_IMPORT DEFINED ELSEWHERE! #error MY_IMPORT DEFINED ELSEWHERE!
#endif #endif
#define MY_IMPORT(foo,field) do { \ #define MY_IMPORT(foo,field) do { \
if(TQ_FIRST(&($2->foo))) { \ while(TQ_FIRST(&($2->foo))) { \
TQ_ADD(&($$->foo), \ TQ_ADD(&($$->foo), \
TQ_REMOVE(&($2->foo), field), \ TQ_REMOVE(&($2->foo), field), \
field); \ field); \
assert(TQ_FIRST(&($2->foo)) == 0); \ } \
} } while(0) assert(TQ_FIRST(&($2->foo)) == 0); \
} while(0)
MY_IMPORT(imports, xp_next); MY_IMPORT(imports, xp_next);
MY_IMPORT(exports, xp_next); MY_IMPORT(exports, xp_next);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment