Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from src/generic/generic_list.h:1,
- from src/vp_list.h:8,
- from src/game.h:6,
- from src/game.c:1:
- src/vp_list.h:5:14: error: redefinition of ‘struct vp_list_t’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~~~
- src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~
- src/generic/generic_list.h:19:16: note: in expansion of macro ‘LNAME’
- typedef struct LNAME {
- ^~~~~
- src/vp_list.h:5:14: note: originally defined here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~~~
- src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~
- src/generic/generic_list.h:19:16: note: in expansion of macro ‘LNAME’
- typedef struct LNAME {
- ^~~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_t’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~~~
- src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~
- src/generic/generic_list.h:23:3: note: in expansion of macro ‘LNAME’
- } LNAME;
- ^~~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_t’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~~~
- src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
- #define LNAME MKNAME(NAME, list_t) // <name>_list_t
- ^~~~
- src/generic/generic_list.h:23:3: note: in expansion of macro ‘LNAME’
- } LNAME;
- ^~~~~
- src/vp_list.h:5:14: error: redefinition of ‘struct vp_chain_t’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~~~
- src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~
- src/generic/generic_list.h:29:16: note: in expansion of macro ‘CNAME’
- typedef struct CNAME {
- ^~~~~
- src/vp_list.h:5:14: note: originally defined here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~~~
- src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~
- src/generic/generic_list.h:29:16: note: in expansion of macro ‘CNAME’
- typedef struct CNAME {
- ^~~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_chain_t’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~~~
- src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~
- src/generic/generic_list.h:33:3: note: in expansion of macro ‘CNAME’
- } CNAME;
- ^~~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_chain_t’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~~~
- src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
- #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
- ^~~~
- src/generic/generic_list.h:13:22: note: in expansion of macro ‘CNAME’
- typedef struct CNAME CNAME;
- ^~~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_create’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:63:8: note: in expansion of macro ‘MKNAME’
- LNAME* MKNAME(NAME, list_create)(void);
- ^~~~~~
- src/generic/generic_list.h:63:15: note: in expansion of macro ‘NAME’
- LNAME* MKNAME(NAME, list_create)(void);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_create’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:63:8: note: in expansion of macro ‘MKNAME’
- LNAME* MKNAME(NAME, list_create)(void);
- ^~~~~~
- src/generic/generic_list.h:63:15: note: in expansion of macro ‘NAME’
- LNAME* MKNAME(NAME, list_create)(void);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_destroy’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:73:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_destroy)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:73:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_destroy)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_destroy’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:73:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_destroy)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:73:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_destroy)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_count’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:82:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_count)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:82:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_count)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_count’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:82:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_count)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:82:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_count)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_isEmpty’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:89:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_isEmpty)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:89:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_isEmpty)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_isEmpty’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:89:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_isEmpty)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:89:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_isEmpty)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_push’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:98:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
- ^~~~~~
- src/generic/generic_list.h:98:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_push’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:98:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
- ^~~~~~
- src/generic/generic_list.h:98:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_unshift’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:105:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
- ^~~~~~
- src/generic/generic_list.h:105:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_unshift’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:105:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
- ^~~~~~
- src/generic/generic_list.h:105:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_pop’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:115:6: note: in expansion of macro ‘MKNAME’
- TYPE MKNAME(NAME, list_pop)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:115:13: note: in expansion of macro ‘NAME’
- TYPE MKNAME(NAME, list_pop)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_pop’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:115:6: note: in expansion of macro ‘MKNAME’
- TYPE MKNAME(NAME, list_pop)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:115:13: note: in expansion of macro ‘NAME’
- TYPE MKNAME(NAME, list_pop)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_shift’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:123:6: note: in expansion of macro ‘MKNAME’
- TYPE MKNAME(NAME, list_shift)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:123:13: note: in expansion of macro ‘NAME’
- TYPE MKNAME(NAME, list_shift)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_shift’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:123:6: note: in expansion of macro ‘MKNAME’
- TYPE MKNAME(NAME, list_shift)(LNAME* list);
- ^~~~~~
- src/generic/generic_list.h:123:13: note: in expansion of macro ‘NAME’
- TYPE MKNAME(NAME, list_shift)(LNAME* list);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_iterate’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:132:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
- ^~~~~~
- src/generic/generic_list.h:132:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_iterate’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:132:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
- ^~~~~~
- src/generic/generic_list.h:132:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_find’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:141:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
- ^~~~~~
- src/generic/generic_list.h:141:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_find’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:141:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
- ^~~~~~
- src/generic/generic_list.h:141:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_filter’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:149:8: note: in expansion of macro ‘MKNAME’
- LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:149:15: note: in expansion of macro ‘NAME’
- LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_filter’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:149:8: note: in expansion of macro ‘MKNAME’
- LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:149:15: note: in expansion of macro ‘NAME’
- LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_all’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:156:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:156:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_all’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:156:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:156:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_some’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:164:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:164:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_some’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:164:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:164:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_sort’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:173:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
- ^~~~~~
- src/generic/generic_list.h:173:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_sort’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:173:6: note: in expansion of macro ‘MKNAME’
- void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
- ^~~~~~
- src/generic/generic_list.h:173:13: note: in expansion of macro ‘NAME’
- void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_retain’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:182:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:182:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_retain’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:182:5: note: in expansion of macro ‘MKNAME’
- int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
- ^~~~~~
- src/generic/generic_list.h:182:12: note: in expansion of macro ‘NAME’
- int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
- ^~~~
- src/vp_list.h:5:14: error: conflicting types for ‘vp_list_move’
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:190:8: note: in expansion of macro ‘MKNAME’
- LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
- ^~~~~~
- src/generic/generic_list.h:190:15: note: in expansion of macro ‘NAME’
- LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
- ^~~~
- src/vp_list.h:5:14: note: previous declaration of ‘vp_list_move’ was here
- #define NAME vp
- ^~
- src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
- #define MKNAME_IMP(tname, name) tname ## _ ## name
- ^~~~~
- src/generic/generic_list.h:190:8: note: in expansion of macro ‘MKNAME’
- LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
- ^~~~~~
- src/generic/generic_list.h:190:15: note: in expansion of macro ‘NAME’
- LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
- ^~~~
- In file included from src/game.c:1:
- src/game.h:34:1: error: unknown type name ‘ccccc_list’; did you mean ‘cccc_tuple_t’?
- ccccc_list game_listMoves(game_t* game);
- ^~~~~~~~~~
- cccc_tuple_t
- src/game.c: In function ‘game_canPlay’:
- src/game.c:8:25: error: ‘STATUS_NONE’ undeclared (first use in this function); did you mean ‘STATE_NONE’?
- if(game->state.status!=STATUS_NONE) return GAME_ENDED;
- ^~~~~~~~~~~
- STATE_NONE
- src/game.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
- src/game.c:14:56: warning: implicit declaration of function ‘state_getCell’; did you mean ‘state_getXY’? [-Wimplicit-function-declaration]
- if(state_getGrid(&game->state, x1, y1)!=STATE_NONE || state_getCell(&game->state, x1, y1, x2, y2)!=STATE_NONE) return GAME_UNREACHABLE;
- ^~~~~~~~~~~~~
- state_getXY
- src/game.c: In function ‘game_play’:
- src/game.c:20:13: error: too few arguments to function ‘game_canPlay’
- int status=game_canPlay(game, x1, y1, x2, y2);
- ^~~~~~~~~~~~
- src/game.c:3:5: note: declared here
- int game_canPlay(game_t* game, int x1, int y1, int x2, int y2, char player) {
- ^~~~~~~~~~~~
- make: *** [Makefile:33: build/game.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement