Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.04 KB | None | 0 0
  1. In file included from src/generic/generic_list.h:1,
  2. from src/vp_list.h:8,
  3. from src/game.h:6,
  4. from src/game.c:1:
  5. src/vp_list.h:5:14: error: redefinition of ‘struct vp_list_t’
  6. #define NAME vp
  7. ^~
  8. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  9. #define MKNAME_IMP(tname, name) tname ## _ ## name
  10. ^~~~~
  11. src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
  12. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  13. ^~~~~~
  14. src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
  15. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  16. ^~~~
  17. src/generic/generic_list.h:19:16: note: in expansion of macro ‘LNAME’
  18. typedef struct LNAME {
  19. ^~~~~
  20. src/vp_list.h:5:14: note: originally defined here
  21. #define NAME vp
  22. ^~
  23. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  24. #define MKNAME_IMP(tname, name) tname ## _ ## name
  25. ^~~~~
  26. src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
  27. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  28. ^~~~~~
  29. src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
  30. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  31. ^~~~
  32. src/generic/generic_list.h:19:16: note: in expansion of macro ‘LNAME’
  33. typedef struct LNAME {
  34. ^~~~~
  35. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_t’
  36. #define NAME vp
  37. ^~
  38. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  39. #define MKNAME_IMP(tname, name) tname ## _ ## name
  40. ^~~~~
  41. src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
  42. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  43. ^~~~~~
  44. src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
  45. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  46. ^~~~
  47. src/generic/generic_list.h:23:3: note: in expansion of macro ‘LNAME’
  48. } LNAME;
  49. ^~~~~
  50. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_t’ was here
  51. #define NAME vp
  52. ^~
  53. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  54. #define MKNAME_IMP(tname, name) tname ## _ ## name
  55. ^~~~~
  56. src/generic/generic_list.h:4:15: note: in expansion of macro ‘MKNAME’
  57. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  58. ^~~~~~
  59. src/generic/generic_list.h:4:22: note: in expansion of macro ‘NAME’
  60. #define LNAME MKNAME(NAME, list_t) // <name>_list_t
  61. ^~~~
  62. src/generic/generic_list.h:23:3: note: in expansion of macro ‘LNAME’
  63. } LNAME;
  64. ^~~~~
  65. src/vp_list.h:5:14: error: redefinition of ‘struct vp_chain_t’
  66. #define NAME vp
  67. ^~
  68. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  69. #define MKNAME_IMP(tname, name) tname ## _ ## name
  70. ^~~~~
  71. src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
  72. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  73. ^~~~~~
  74. src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
  75. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  76. ^~~~
  77. src/generic/generic_list.h:29:16: note: in expansion of macro ‘CNAME’
  78. typedef struct CNAME {
  79. ^~~~~
  80. src/vp_list.h:5:14: note: originally defined here
  81. #define NAME vp
  82. ^~
  83. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  84. #define MKNAME_IMP(tname, name) tname ## _ ## name
  85. ^~~~~
  86. src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
  87. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  88. ^~~~~~
  89. src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
  90. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  91. ^~~~
  92. src/generic/generic_list.h:29:16: note: in expansion of macro ‘CNAME’
  93. typedef struct CNAME {
  94. ^~~~~
  95. src/vp_list.h:5:14: error: conflicting types for ‘vp_chain_t’
  96. #define NAME vp
  97. ^~
  98. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  99. #define MKNAME_IMP(tname, name) tname ## _ ## name
  100. ^~~~~
  101. src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
  102. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  103. ^~~~~~
  104. src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
  105. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  106. ^~~~
  107. src/generic/generic_list.h:33:3: note: in expansion of macro ‘CNAME’
  108. } CNAME;
  109. ^~~~~
  110. src/vp_list.h:5:14: note: previous declaration of ‘vp_chain_t’ was here
  111. #define NAME vp
  112. ^~
  113. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  114. #define MKNAME_IMP(tname, name) tname ## _ ## name
  115. ^~~~~
  116. src/generic/generic_list.h:5:15: note: in expansion of macro ‘MKNAME’
  117. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  118. ^~~~~~
  119. src/generic/generic_list.h:5:22: note: in expansion of macro ‘NAME’
  120. #define CNAME MKNAME(NAME, chain_t) // <name>_chain_t
  121. ^~~~
  122. src/generic/generic_list.h:13:22: note: in expansion of macro ‘CNAME’
  123. typedef struct CNAME CNAME;
  124. ^~~~~
  125. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_create’
  126. #define NAME vp
  127. ^~
  128. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  129. #define MKNAME_IMP(tname, name) tname ## _ ## name
  130. ^~~~~
  131. src/generic/generic_list.h:63:8: note: in expansion of macro ‘MKNAME’
  132. LNAME* MKNAME(NAME, list_create)(void);
  133. ^~~~~~
  134. src/generic/generic_list.h:63:15: note: in expansion of macro ‘NAME’
  135. LNAME* MKNAME(NAME, list_create)(void);
  136. ^~~~
  137. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_create’ was here
  138. #define NAME vp
  139. ^~
  140. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  141. #define MKNAME_IMP(tname, name) tname ## _ ## name
  142. ^~~~~
  143. src/generic/generic_list.h:63:8: note: in expansion of macro ‘MKNAME’
  144. LNAME* MKNAME(NAME, list_create)(void);
  145. ^~~~~~
  146. src/generic/generic_list.h:63:15: note: in expansion of macro ‘NAME’
  147. LNAME* MKNAME(NAME, list_create)(void);
  148. ^~~~
  149. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_destroy’
  150. #define NAME vp
  151. ^~
  152. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  153. #define MKNAME_IMP(tname, name) tname ## _ ## name
  154. ^~~~~
  155. src/generic/generic_list.h:73:6: note: in expansion of macro ‘MKNAME’
  156. void MKNAME(NAME, list_destroy)(LNAME* list);
  157. ^~~~~~
  158. src/generic/generic_list.h:73:13: note: in expansion of macro ‘NAME’
  159. void MKNAME(NAME, list_destroy)(LNAME* list);
  160. ^~~~
  161. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_destroy’ was here
  162. #define NAME vp
  163. ^~
  164. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  165. #define MKNAME_IMP(tname, name) tname ## _ ## name
  166. ^~~~~
  167. src/generic/generic_list.h:73:6: note: in expansion of macro ‘MKNAME’
  168. void MKNAME(NAME, list_destroy)(LNAME* list);
  169. ^~~~~~
  170. src/generic/generic_list.h:73:13: note: in expansion of macro ‘NAME’
  171. void MKNAME(NAME, list_destroy)(LNAME* list);
  172. ^~~~
  173. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_count’
  174. #define NAME vp
  175. ^~
  176. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  177. #define MKNAME_IMP(tname, name) tname ## _ ## name
  178. ^~~~~
  179. src/generic/generic_list.h:82:5: note: in expansion of macro ‘MKNAME’
  180. int MKNAME(NAME, list_count)(LNAME* list);
  181. ^~~~~~
  182. src/generic/generic_list.h:82:12: note: in expansion of macro ‘NAME’
  183. int MKNAME(NAME, list_count)(LNAME* list);
  184. ^~~~
  185. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_count’ was here
  186. #define NAME vp
  187. ^~
  188. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  189. #define MKNAME_IMP(tname, name) tname ## _ ## name
  190. ^~~~~
  191. src/generic/generic_list.h:82:5: note: in expansion of macro ‘MKNAME’
  192. int MKNAME(NAME, list_count)(LNAME* list);
  193. ^~~~~~
  194. src/generic/generic_list.h:82:12: note: in expansion of macro ‘NAME’
  195. int MKNAME(NAME, list_count)(LNAME* list);
  196. ^~~~
  197. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_isEmpty’
  198. #define NAME vp
  199. ^~
  200. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  201. #define MKNAME_IMP(tname, name) tname ## _ ## name
  202. ^~~~~
  203. src/generic/generic_list.h:89:5: note: in expansion of macro ‘MKNAME’
  204. int MKNAME(NAME, list_isEmpty)(LNAME* list);
  205. ^~~~~~
  206. src/generic/generic_list.h:89:12: note: in expansion of macro ‘NAME’
  207. int MKNAME(NAME, list_isEmpty)(LNAME* list);
  208. ^~~~
  209. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_isEmpty’ was here
  210. #define NAME vp
  211. ^~
  212. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  213. #define MKNAME_IMP(tname, name) tname ## _ ## name
  214. ^~~~~
  215. src/generic/generic_list.h:89:5: note: in expansion of macro ‘MKNAME’
  216. int MKNAME(NAME, list_isEmpty)(LNAME* list);
  217. ^~~~~~
  218. src/generic/generic_list.h:89:12: note: in expansion of macro ‘NAME’
  219. int MKNAME(NAME, list_isEmpty)(LNAME* list);
  220. ^~~~
  221. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_push’
  222. #define NAME vp
  223. ^~
  224. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  225. #define MKNAME_IMP(tname, name) tname ## _ ## name
  226. ^~~~~
  227. src/generic/generic_list.h:98:6: note: in expansion of macro ‘MKNAME’
  228. void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
  229. ^~~~~~
  230. src/generic/generic_list.h:98:13: note: in expansion of macro ‘NAME’
  231. void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
  232. ^~~~
  233. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_push’ was here
  234. #define NAME vp
  235. ^~
  236. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  237. #define MKNAME_IMP(tname, name) tname ## _ ## name
  238. ^~~~~
  239. src/generic/generic_list.h:98:6: note: in expansion of macro ‘MKNAME’
  240. void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
  241. ^~~~~~
  242. src/generic/generic_list.h:98:13: note: in expansion of macro ‘NAME’
  243. void MKNAME(NAME, list_push)(LNAME* list, TYPE value);
  244. ^~~~
  245. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_unshift’
  246. #define NAME vp
  247. ^~
  248. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  249. #define MKNAME_IMP(tname, name) tname ## _ ## name
  250. ^~~~~
  251. src/generic/generic_list.h:105:6: note: in expansion of macro ‘MKNAME’
  252. void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
  253. ^~~~~~
  254. src/generic/generic_list.h:105:13: note: in expansion of macro ‘NAME’
  255. void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
  256. ^~~~
  257. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_unshift’ was here
  258. #define NAME vp
  259. ^~
  260. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  261. #define MKNAME_IMP(tname, name) tname ## _ ## name
  262. ^~~~~
  263. src/generic/generic_list.h:105:6: note: in expansion of macro ‘MKNAME’
  264. void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
  265. ^~~~~~
  266. src/generic/generic_list.h:105:13: note: in expansion of macro ‘NAME’
  267. void MKNAME(NAME, list_unshift)(LNAME* list, TYPE value);
  268. ^~~~
  269. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_pop’
  270. #define NAME vp
  271. ^~
  272. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  273. #define MKNAME_IMP(tname, name) tname ## _ ## name
  274. ^~~~~
  275. src/generic/generic_list.h:115:6: note: in expansion of macro ‘MKNAME’
  276. TYPE MKNAME(NAME, list_pop)(LNAME* list);
  277. ^~~~~~
  278. src/generic/generic_list.h:115:13: note: in expansion of macro ‘NAME’
  279. TYPE MKNAME(NAME, list_pop)(LNAME* list);
  280. ^~~~
  281. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_pop’ was here
  282. #define NAME vp
  283. ^~
  284. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  285. #define MKNAME_IMP(tname, name) tname ## _ ## name
  286. ^~~~~
  287. src/generic/generic_list.h:115:6: note: in expansion of macro ‘MKNAME’
  288. TYPE MKNAME(NAME, list_pop)(LNAME* list);
  289. ^~~~~~
  290. src/generic/generic_list.h:115:13: note: in expansion of macro ‘NAME’
  291. TYPE MKNAME(NAME, list_pop)(LNAME* list);
  292. ^~~~
  293. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_shift’
  294. #define NAME vp
  295. ^~
  296. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  297. #define MKNAME_IMP(tname, name) tname ## _ ## name
  298. ^~~~~
  299. src/generic/generic_list.h:123:6: note: in expansion of macro ‘MKNAME’
  300. TYPE MKNAME(NAME, list_shift)(LNAME* list);
  301. ^~~~~~
  302. src/generic/generic_list.h:123:13: note: in expansion of macro ‘NAME’
  303. TYPE MKNAME(NAME, list_shift)(LNAME* list);
  304. ^~~~
  305. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_shift’ was here
  306. #define NAME vp
  307. ^~
  308. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  309. #define MKNAME_IMP(tname, name) tname ## _ ## name
  310. ^~~~~
  311. src/generic/generic_list.h:123:6: note: in expansion of macro ‘MKNAME’
  312. TYPE MKNAME(NAME, list_shift)(LNAME* list);
  313. ^~~~~~
  314. src/generic/generic_list.h:123:13: note: in expansion of macro ‘NAME’
  315. TYPE MKNAME(NAME, list_shift)(LNAME* list);
  316. ^~~~
  317. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_iterate’
  318. #define NAME vp
  319. ^~
  320. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  321. #define MKNAME_IMP(tname, name) tname ## _ ## name
  322. ^~~~~
  323. src/generic/generic_list.h:132:6: note: in expansion of macro ‘MKNAME’
  324. void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
  325. ^~~~~~
  326. src/generic/generic_list.h:132:13: note: in expansion of macro ‘NAME’
  327. void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
  328. ^~~~
  329. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_iterate’ was here
  330. #define NAME vp
  331. ^~
  332. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  333. #define MKNAME_IMP(tname, name) tname ## _ ## name
  334. ^~~~~
  335. src/generic/generic_list.h:132:6: note: in expansion of macro ‘MKNAME’
  336. void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
  337. ^~~~~~
  338. src/generic/generic_list.h:132:13: note: in expansion of macro ‘NAME’
  339. void MKNAME(NAME, list_iterate)(LNAME* list, PROCNAME fn);
  340. ^~~~
  341. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_find’
  342. #define NAME vp
  343. ^~
  344. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  345. #define MKNAME_IMP(tname, name) tname ## _ ## name
  346. ^~~~~
  347. src/generic/generic_list.h:141:5: note: in expansion of macro ‘MKNAME’
  348. int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
  349. ^~~~~~
  350. src/generic/generic_list.h:141:12: note: in expansion of macro ‘NAME’
  351. int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
  352. ^~~~
  353. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_find’ was here
  354. #define NAME vp
  355. ^~
  356. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  357. #define MKNAME_IMP(tname, name) tname ## _ ## name
  358. ^~~~~
  359. src/generic/generic_list.h:141:5: note: in expansion of macro ‘MKNAME’
  360. int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
  361. ^~~~~~
  362. src/generic/generic_list.h:141:12: note: in expansion of macro ‘NAME’
  363. int MKNAME(NAME, list_find)(LNAME* list, PREDNAME predicate, TYPE* ptr);
  364. ^~~~
  365. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_filter’
  366. #define NAME vp
  367. ^~
  368. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  369. #define MKNAME_IMP(tname, name) tname ## _ ## name
  370. ^~~~~
  371. src/generic/generic_list.h:149:8: note: in expansion of macro ‘MKNAME’
  372. LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
  373. ^~~~~~
  374. src/generic/generic_list.h:149:15: note: in expansion of macro ‘NAME’
  375. LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
  376. ^~~~
  377. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_filter’ was here
  378. #define NAME vp
  379. ^~
  380. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  381. #define MKNAME_IMP(tname, name) tname ## _ ## name
  382. ^~~~~
  383. src/generic/generic_list.h:149:8: note: in expansion of macro ‘MKNAME’
  384. LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
  385. ^~~~~~
  386. src/generic/generic_list.h:149:15: note: in expansion of macro ‘NAME’
  387. LNAME* MKNAME(NAME, list_filter)(LNAME* list, PREDNAME predicate);
  388. ^~~~
  389. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_all’
  390. #define NAME vp
  391. ^~
  392. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  393. #define MKNAME_IMP(tname, name) tname ## _ ## name
  394. ^~~~~
  395. src/generic/generic_list.h:156:5: note: in expansion of macro ‘MKNAME’
  396. int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
  397. ^~~~~~
  398. src/generic/generic_list.h:156:12: note: in expansion of macro ‘NAME’
  399. int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
  400. ^~~~
  401. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_all’ was here
  402. #define NAME vp
  403. ^~
  404. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  405. #define MKNAME_IMP(tname, name) tname ## _ ## name
  406. ^~~~~
  407. src/generic/generic_list.h:156:5: note: in expansion of macro ‘MKNAME’
  408. int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
  409. ^~~~~~
  410. src/generic/generic_list.h:156:12: note: in expansion of macro ‘NAME’
  411. int MKNAME(NAME, list_all)(LNAME* list, PREDNAME predicate);
  412. ^~~~
  413. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_some’
  414. #define NAME vp
  415. ^~
  416. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  417. #define MKNAME_IMP(tname, name) tname ## _ ## name
  418. ^~~~~
  419. src/generic/generic_list.h:164:5: note: in expansion of macro ‘MKNAME’
  420. int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
  421. ^~~~~~
  422. src/generic/generic_list.h:164:12: note: in expansion of macro ‘NAME’
  423. int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
  424. ^~~~
  425. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_some’ was here
  426. #define NAME vp
  427. ^~
  428. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  429. #define MKNAME_IMP(tname, name) tname ## _ ## name
  430. ^~~~~
  431. src/generic/generic_list.h:164:5: note: in expansion of macro ‘MKNAME’
  432. int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
  433. ^~~~~~
  434. src/generic/generic_list.h:164:12: note: in expansion of macro ‘NAME’
  435. int MKNAME(NAME, list_some)(LNAME* list, PREDNAME predicate);
  436. ^~~~
  437. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_sort’
  438. #define NAME vp
  439. ^~
  440. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  441. #define MKNAME_IMP(tname, name) tname ## _ ## name
  442. ^~~~~
  443. src/generic/generic_list.h:173:6: note: in expansion of macro ‘MKNAME’
  444. void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
  445. ^~~~~~
  446. src/generic/generic_list.h:173:13: note: in expansion of macro ‘NAME’
  447. void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
  448. ^~~~
  449. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_sort’ was here
  450. #define NAME vp
  451. ^~
  452. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  453. #define MKNAME_IMP(tname, name) tname ## _ ## name
  454. ^~~~~
  455. src/generic/generic_list.h:173:6: note: in expansion of macro ‘MKNAME’
  456. void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
  457. ^~~~~~
  458. src/generic/generic_list.h:173:13: note: in expansion of macro ‘NAME’
  459. void MKNAME(NAME, list_sort)(LNAME* list, COMPNAME comparator);
  460. ^~~~
  461. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_retain’
  462. #define NAME vp
  463. ^~
  464. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  465. #define MKNAME_IMP(tname, name) tname ## _ ## name
  466. ^~~~~
  467. src/generic/generic_list.h:182:5: note: in expansion of macro ‘MKNAME’
  468. int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
  469. ^~~~~~
  470. src/generic/generic_list.h:182:12: note: in expansion of macro ‘NAME’
  471. int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
  472. ^~~~
  473. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_retain’ was here
  474. #define NAME vp
  475. ^~
  476. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  477. #define MKNAME_IMP(tname, name) tname ## _ ## name
  478. ^~~~~
  479. src/generic/generic_list.h:182:5: note: in expansion of macro ‘MKNAME’
  480. int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
  481. ^~~~~~
  482. src/generic/generic_list.h:182:12: note: in expansion of macro ‘NAME’
  483. int MKNAME(NAME, list_retain)(LNAME* list, PREDNAME predicate);
  484. ^~~~
  485. src/vp_list.h:5:14: error: conflicting types for ‘vp_list_move’
  486. #define NAME vp
  487. ^~
  488. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  489. #define MKNAME_IMP(tname, name) tname ## _ ## name
  490. ^~~~~
  491. src/generic/generic_list.h:190:8: note: in expansion of macro ‘MKNAME’
  492. LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
  493. ^~~~~~
  494. src/generic/generic_list.h:190:15: note: in expansion of macro ‘NAME’
  495. LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
  496. ^~~~
  497. src/vp_list.h:5:14: note: previous declaration of ‘vp_list_move’ was here
  498. #define NAME vp
  499. ^~
  500. src/generic/generic.h:4:33: note: in definition of macro ‘MKNAME_IMP’
  501. #define MKNAME_IMP(tname, name) tname ## _ ## name
  502. ^~~~~
  503. src/generic/generic_list.h:190:8: note: in expansion of macro ‘MKNAME’
  504. LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
  505. ^~~~~~
  506. src/generic/generic_list.h:190:15: note: in expansion of macro ‘NAME’
  507. LNAME* MKNAME(NAME, list_move)(LNAME* list, PREDNAME predicate, LNAME* dest);
  508. ^~~~
  509. In file included from src/game.c:1:
  510. src/game.h:34:1: error: unknown type name ‘ccccc_list’; did you mean ‘cccc_tuple_t’?
  511. ccccc_list game_listMoves(game_t* game);
  512. ^~~~~~~~~~
  513. cccc_tuple_t
  514. src/game.c: In function ‘game_canPlay’:
  515. src/game.c:8:25: error: ‘STATUS_NONE’ undeclared (first use in this function); did you mean ‘STATE_NONE’?
  516. if(game->state.status!=STATUS_NONE) return GAME_ENDED;
  517. ^~~~~~~~~~~
  518. STATE_NONE
  519. src/game.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
  520. src/game.c:14:56: warning: implicit declaration of function ‘state_getCell’; did you mean ‘state_getXY’? [-Wimplicit-function-declaration]
  521. if(state_getGrid(&game->state, x1, y1)!=STATE_NONE || state_getCell(&game->state, x1, y1, x2, y2)!=STATE_NONE) return GAME_UNREACHABLE;
  522. ^~~~~~~~~~~~~
  523. state_getXY
  524. src/game.c: In function ‘game_play’:
  525. src/game.c:20:13: error: too few arguments to function ‘game_canPlay’
  526. int status=game_canPlay(game, x1, y1, x2, y2);
  527. ^~~~~~~~~~~~
  528. src/game.c:3:5: note: declared here
  529. int game_canPlay(game_t* game, int x1, int y1, int x2, int y2, char player) {
  530. ^~~~~~~~~~~~
  531. make: *** [Makefile:33: build/game.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement