Advertisement
Guest User

Untitled

a guest
Oct 18th, 2014
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 140.93 KB | None | 0 0
  1. In file included from /usr/include/stdlib.h:42:0,
  2. from /home/franklin/rockbox/apps/plugin.h:35,
  3. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  4. from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
  5. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  6. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  7. unsigned int __w_retcode:8;
  8. ^
  9. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  10. unsigned int __w_coredump:1;
  11. ^
  12. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  13. unsigned int __w_termsig:7;
  14. ^
  15. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  16. unsigned int __w_stopsig:8; /* Stopping signal. */
  17. ^
  18. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  19. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  20. ^
  21. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  22. from /home/franklin/rockbox/apps/plugin.h:55,
  23. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  24. from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
  25. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  26. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  27. #error "Missing OS swap defines."
  28. ^
  29. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  30. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  31. { return __swap16_os(x); }
  32. ^
  33. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  34. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  35. { return __swap32_os(x); }
  36. ^
  37. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  38. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  39. { return __swap64_os(x); }
  40. ^
  41. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  42. from /home/franklin/rockbox/apps/screen_access.h:27,
  43. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  44. from /home/franklin/rockbox/apps/action.h:25,
  45. from /home/franklin/rockbox/apps/plugin.h:61,
  46. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  47. from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
  48. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  49. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  50. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  51. File(bool gzipped = false);
  52. ^
  53. In file included from /usr/include/stdlib.h:42:0,
  54. from /home/franklin/rockbox/apps/plugin.h:35,
  55. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  56. from /home/franklin/rockbox/apps/plugins/xworld/file.h:22,
  57. from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:
  58. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  59. unsigned int __w_retcode:8;
  60. ^
  61. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  62. unsigned int __w_coredump:1;
  63. ^
  64. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  65. unsigned int __w_termsig:7;
  66. ^
  67. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  68. unsigned int __w_stopsig:8; /* Stopping signal. */
  69. ^
  70. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  71. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  72. ^
  73. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:23:0,
  74. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  75. /home/franklin/rockbox/apps/plugins/xworld/vm.h:112:44: error: unknown type name 'Serializer'
  76. void vm_saveOrLoad(struct VirtualMachine*, Serializer &ser);
  77. ^
  78. /home/franklin/rockbox/apps/plugins/xworld/vm.h:118:5: error: expected specifier-qualifier-list before 'typedef'
  79. typedef void (VirtualMachine::*OpcodeStub)();
  80. ^
  81. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:24:0,
  82. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  83. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
  84. MixerChunk chunk;
  85. ^
  86. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
  87. System *sys;
  88. ^
  89. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
  90. MixerChannel _channels[AUDIO_NUM_CHANNELS];
  91. ^
  92. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
  93. Mixer(System *stub);
  94. ^
  95. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:25:0,
  96. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  97. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:35:2: error: unknown type name 'SfxInstrument'
  98. SfxInstrument samples[15];
  99. ^
  100. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:56:2: error: unknown type name 'Mixer'
  101. Mixer *mixer;
  102. ^
  103. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:57:2: error: unknown type name 'Resource'
  104. Resource *res;
  105. ^
  106. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:58:2: error: unknown type name 'System'
  107. System *sys;
  108. ^
  109. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:64:2: error: unknown type name 'SfxModule'
  110. SfxModule _sfxMod;
  111. ^
  112. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:67:2: error: expected specifier-qualifier-list before 'SfxPlayer'
  113. SfxPlayer(Mixer *mix, Resource *res, System *stub);
  114. ^
  115. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
  116. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  117. /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
  118. void res_setupPart(struct Resource*uint16_t ptrId);
  119. ^
  120. /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
  121. void res_saveOrLoad(struct Resource*, Serializer &ser);
  122. ^
  123. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  124. from /home/franklin/rockbox/apps/plugin.h:55,
  125. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  126. from /home/franklin/rockbox/apps/plugins/xworld/file.h:22,
  127. from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:
  128. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  129. #error "Missing OS swap defines."
  130. ^
  131. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  132. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  133. { return __swap16_os(x); }
  134. ^
  135. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  136. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  137. { return __swap32_os(x); }
  138. ^
  139. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  140. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  141. { return __swap64_os(x); }
  142. ^
  143. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:27:0,
  144. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  145. /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
  146. typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
  147. ^
  148. /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
  149. Resource *res;
  150. ^
  151. /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
  152. System *sys;
  153. ^
  154. /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
  155. Polygon polygon;
  156. ^
  157. /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
  158. Ptr _pData;
  159. ^
  160. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
  161. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  162. ^
  163. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
  164. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  165. ^
  166. /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
  167. void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
  168. ^
  169. /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
  170. void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
  171. ^
  172. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
  173. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  174. ^
  175. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
  176. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  177. ^
  178. /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
  179. void video_saveOrLoad(struct Video* v, Serializer &ser);
  180. ^
  181. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.c:21:0:
  182. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
  183. };
  184. ^
  185. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
  186. };
  187. ^
  188. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
  189. };
  190. ^
  191. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
  192. };
  193. ^
  194. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
  195. EntryType type;
  196. ^
  197. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
  198. };
  199. ^
  200. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
  201. File *_stream;
  202. ^
  203. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
  204. Mode _mode;
  205. ^
  206. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
  207. Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
  208. ^
  209. /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_create':
  210. /home/franklin/rockbox/apps/plugins/xworld/engine.c:34:37: error: 'struct Engine' has no member named 'dataDir'
  211. res_create(&e->res, &e->video, e->dataDir);
  212. ^
  213. /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_run':
  214. /home/franklin/rockbox/apps/plugins/xworld/engine.c:42:19: error: dereferencing pointer to incomplete type
  215. while (!e->sys->input.quit) {
  216. ^
  217. /home/franklin/rockbox/apps/plugins/xworld/engine.c: At top level:
  218. /home/franklin/rockbox/apps/plugins/xworld/engine.c:55:6: error: conflicting types for 'engine_create'
  219. void engine_create(struct System* stub, struct Engine*, const char* dataDir, const char* saveDir)
  220. ^
  221. /home/franklin/rockbox/apps/plugins/xworld/engine.c:31:6: note: previous definition of 'engine_create' was here
  222. void engine_create(struct Engine* e, struct System* stub, const char* dataDir, const char* saveDir)
  223. ^
  224. /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_create':
  225. /home/franklin/rockbox/apps/plugins/xworld/engine.c:55:48: error: parameter name omitted
  226. void engine_create(struct System* stub, struct Engine*, const char* dataDir, const char* saveDir)
  227. ^
  228. /home/franklin/rockbox/apps/plugins/xworld/engine.c:57:5: error: 'e' undeclared (first use in this function)
  229. e->sys=stub;
  230. ^
  231. /home/franklin/rockbox/apps/plugins/xworld/engine.c:57:5: note: each undeclared identifier is reported only once for each function it appears in
  232. /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_init':
  233. /home/franklin/rockbox/apps/plugins/xworld/engine.c:61:1: error: number of arguments doesn't match prototype
  234. void engine_init() {
  235. ^
  236. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:0:
  237. /home/franklin/rockbox/apps/plugins/xworld/engine.h:50:6: error: prototype declaration
  238. void engine_init(struct Engine*);
  239. ^
  240. /home/franklin/rockbox/apps/plugins/xworld/engine.c:65:5: warning: implicit declaration of function 'sys_init' [-Wimplicit-function-declaration]
  241. sys_init("Out Of This World");
  242. ^
  243. /home/franklin/rockbox/apps/plugins/xworld/engine.c:67:17: error: 'e' undeclared (first use in this function)
  244. video_init(&e->video);
  245. ^
  246. /home/franklin/rockbox/apps/plugins/xworld/engine.c:69:5: error: too few arguments to function 'res_allocMemBlock'
  247. res_allocMemBlock();
  248. ^
  249. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
  250. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  251. /home/franklin/rockbox/apps/plugins/xworld/resource.h:96:6: note: declared here
  252. void res_allocMemBlock(struct Resource*);
  253. ^
  254. /home/franklin/rockbox/apps/plugins/xworld/engine.c:71:5: error: too few arguments to function 'res_readEntries'
  255. res_readEntries();
  256. ^
  257. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
  258. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  259. /home/franklin/rockbox/apps/plugins/xworld/resource.h:90:6: note: declared here
  260. void res_readEntries(struct Resource*);
  261. ^
  262. /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_processInput':
  263. /home/franklin/rockbox/apps/plugins/xworld/engine.c:105:15: error: dereferencing pointer to incomplete type
  264. if (e->sys->input.load) {
  265. ^
  266. /home/franklin/rockbox/apps/plugins/xworld/engine.c:107:15: error: dereferencing pointer to incomplete type
  267. e->sys->input.load = false;
  268. ^
  269. /home/franklin/rockbox/apps/plugins/xworld/engine.c:109:15: error: dereferencing pointer to incomplete type
  270. if (e->sys->input.save) {
  271. ^
  272. /home/franklin/rockbox/apps/plugins/xworld/engine.c:111:15: error: dereferencing pointer to incomplete type
  273. e->sys->input.save = false;
  274. ^
  275. /home/franklin/rockbox/apps/plugins/xworld/engine.c:113:15: error: dereferencing pointer to incomplete type
  276. if (e->sys->input.fastMode) {
  277. ^
  278. /home/franklin/rockbox/apps/plugins/xworld/engine.c:114:14: error: 'struct VirtualMachine' has no member named '_fastMode'
  279. e->vm._fastMode = !e->vm._fastMode;
  280. ^
  281. /home/franklin/rockbox/apps/plugins/xworld/engine.c:114:33: error: 'struct VirtualMachine' has no member named '_fastMode'
  282. e->vm._fastMode = !e->vm._fastMode;
  283. ^
  284. /home/franklin/rockbox/apps/plugins/xworld/engine.c:115:15: error: dereferencing pointer to incomplete type
  285. e->sys->input.fastMode = false;
  286. ^
  287. /home/franklin/rockbox/apps/plugins/xworld/engine.c:117:15: error: dereferencing pointer to incomplete type
  288. if (e->sys->input.stateSlot != 0) {
  289. ^
  290. /home/franklin/rockbox/apps/plugins/xworld/engine.c:118:45: error: dereferencing pointer to incomplete type
  291. int8_t slot = e->_stateSlot + e->sys->input.stateSlot;
  292. ^
  293. /home/franklin/rockbox/apps/plugins/xworld/engine.c:121:62: error: '_stateSlot' undeclared (first use in this function)
  294. debug(DBG_INFO, "Current game state slot is %d", _stateSlot);
  295. ^
  296. /home/franklin/rockbox/apps/plugins/xworld/engine.c:123:15: error: dereferencing pointer to incomplete type
  297. e->sys->input.stateSlot = 0;
  298. ^
  299. /home/franklin/rockbox/apps/plugins/xworld/engine.c: At top level:
  300. /home/franklin/rockbox/apps/plugins/xworld/engine.c:127:6: error: conflicting types for 'engine_makeGameStateName'
  301. void engine_makeGameStateName(struct Engine* e, uint8_t slot, char *buf, int sz) {
  302. ^
  303. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:0:
  304. /home/franklin/rockbox/apps/plugins/xworld/engine.h:54:6: note: previous declaration of 'engine_makeGameStateName' was here
  305. void engine_makeGameStateName(struct Engine*, uint8_t slot, char *buf);
  306. ^
  307. /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_saveGameState':
  308. /home/franklin/rockbox/apps/plugins/xworld/engine.c:135:5: error: unknown type name 'File'
  309. File f(true);
  310. ^
  311. In file included from /home/franklin/rockbox/apps/plugin.h:30:0,
  312. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  313. from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
  314. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  315. /home/franklin/rockbox/apps/plugins/xworld/engine.c:135:12: error: expected declaration specifiers or '...' before numeric constant
  316. File f(true);
  317. ^
  318. /home/franklin/rockbox/apps/plugins/xworld/engine.c:136:10: error: 'f' undeclared (first use in this function)
  319. if (!f.open(stateFile, _saveDir, "wb")) {
  320. ^
  321. /home/franklin/rockbox/apps/plugins/xworld/engine.c:136:28: error: '_saveDir' undeclared (first use in this function)
  322. if (!f.open(stateFile, _saveDir, "wb")) {
  323. ^
  324. /home/franklin/rockbox/apps/plugins/xworld/engine.c:140:25: warning: multi-character character constant [-Wmultichar]
  325. f.writeUint32BE('AWSV');
  326. ^
  327. /home/franklin/rockbox/apps/plugins/xworld/engine.c:141:25: error: 'Serializer' undeclared (first use in this function)
  328. f.writeUint16BE(Serializer::CUR_VER);
  329. ^
  330. /home/franklin/rockbox/apps/plugins/xworld/engine.c:141:35: error: expected ')' before ':' token
  331. f.writeUint16BE(Serializer::CUR_VER);
  332. ^
  333. /home/franklin/rockbox/apps/plugins/xworld/engine.c:147:20: error: expected ';' before 's'
  334. Serializer s(&f, Serializer::SM_SAVE, res._memPtrStart);
  335. ^
  336. /home/franklin/rockbox/apps/plugins/xworld/engine.c:148:9: error: 'vm' undeclared (first use in this function)
  337. vm.saveOrLoad(s);
  338. ^
  339. /home/franklin/rockbox/apps/plugins/xworld/engine.c:148:23: error: 's' undeclared (first use in this function)
  340. vm.saveOrLoad(s);
  341. ^
  342. /home/franklin/rockbox/apps/plugins/xworld/engine.c:149:9: error: 'res' undeclared (first use in this function)
  343. res.saveOrLoad(s);
  344. ^
  345. /home/franklin/rockbox/apps/plugins/xworld/engine.c:150:9: error: 'video' undeclared (first use in this function)
  346. video.saveOrLoad(s);
  347. ^
  348. /home/franklin/rockbox/apps/plugins/xworld/engine.c:151:9: error: 'player' undeclared (first use in this function)
  349. player.saveOrLoad(s);
  350. ^
  351. /home/franklin/rockbox/apps/plugins/xworld/engine.c:152:9: error: 'mixer' undeclared (first use in this function)
  352. mixer.saveOrLoad(s);
  353. ^
  354. /home/franklin/rockbox/apps/plugins/xworld/engine.c:156:55: error: '_stateSlot' undeclared (first use in this function)
  355. debug(DBG_INFO, "Saved state to slot %d", _stateSlot);
  356. ^
  357. /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_loadGameState':
  358. /home/franklin/rockbox/apps/plugins/xworld/engine.c:163:5: error: too few arguments to function 'engine_makeGameStateName'
  359. engine_makeGameStateName(e, slot, stateFile);
  360. ^
  361. /home/franklin/rockbox/apps/plugins/xworld/engine.c:127:6: note: declared here
  362. void engine_makeGameStateName(struct Engine* e, uint8_t slot, char *buf, int sz) {
  363. ^
  364. /home/franklin/rockbox/apps/plugins/xworld/engine.c:164:5: error: unknown type name 'File'
  365. File f(true);
  366. ^
  367. In file included from /home/franklin/rockbox/apps/plugin.h:30:0,
  368. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  369. from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
  370. from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
  371. /home/franklin/rockbox/apps/plugins/xworld/engine.c:164:12: error: expected declaration specifiers or '...' before numeric constant
  372. File f(true);
  373. ^
  374. /home/franklin/rockbox/apps/plugins/xworld/engine.c:165:10: error: 'f' undeclared (first use in this function)
  375. if (!f.open(stateFile, e->_saveDir, "rb")) {
  376. ^
  377. /home/franklin/rockbox/apps/plugins/xworld/engine.c:169:19: warning: multi-character character constant [-Wmultichar]
  378. if (id != 'AWSV') {
  379. ^
  380. /home/franklin/rockbox/apps/plugins/xworld/engine.c:173:13: error: 'player' undeclared (first use in this function)
  381. player.stop();
  382. ^
  383. /home/franklin/rockbox/apps/plugins/xworld/engine.c:174:13: error: 'mixer' undeclared (first use in this function)
  384. mixer.stopAll();
  385. ^
  386. /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:13: error: unknown type name 'Serializer'
  387. Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
  388. ^
  389. /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:26: error: expected declaration specifiers or '...' before '&' token
  390. Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
  391. ^
  392. /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:30: error: unknown type name 'Serializer'
  393. Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
  394. ^
  395. /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:51: error: unknown type name 'res'
  396. Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
  397. ^
  398. /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:69: error: expected declaration specifiers or '...' before 'ver'
  399. Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
  400. ^
  401. /home/franklin/rockbox/apps/plugins/xworld/engine.c:182:13: error: 'vm' undeclared (first use in this function)
  402. vm.saveOrLoad(s);
  403. ^
  404. /home/franklin/rockbox/apps/plugins/xworld/engine.c:182:27: error: 's' undeclared (first use in this function)
  405. vm.saveOrLoad(s);
  406. ^
  407. /home/franklin/rockbox/apps/plugins/xworld/engine.c:183:13: error: 'res' undeclared (first use in this function)
  408. res.saveOrLoad(s);
  409. ^
  410. /home/franklin/rockbox/apps/plugins/xworld/engine.c:184:13: error: 'video' undeclared (first use in this function)
  411. video.saveOrLoad(s);
  412. ^
  413. /home/franklin/rockbox/apps/plugins/xworld/engine.c:176:22: warning: unused variable 'ver' [-Wunused-variable]
  414. uint16_t ver = f.readUint16BE();
  415. ^
  416. /home/franklin/rockbox/apps/plugins/xworld/engine.c:191:58: error: '_stateSlot' undeclared (first use in this function)
  417. debug(DBG_INFO, "Loaded state from slot %d", _stateSlot);
  418. ^
  419. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/engine.o] Error 1
  420. In file included from /usr/include/stdlib.h:42:0,
  421. from /home/franklin/rockbox/apps/plugin.h:35,
  422. from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
  423. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  424. unsigned int __w_retcode:8;
  425. ^
  426. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  427. unsigned int __w_coredump:1;
  428. ^
  429. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  430. unsigned int __w_termsig:7;
  431. ^
  432. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  433. unsigned int __w_stopsig:8; /* Stopping signal. */
  434. ^
  435. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  436. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  437. ^
  438. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  439. from /home/franklin/rockbox/apps/plugin.h:55,
  440. from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
  441. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  442. #error "Missing OS swap defines."
  443. ^
  444. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  445. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  446. { return __swap16_os(x); }
  447. ^
  448. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  449. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  450. { return __swap32_os(x); }
  451. ^
  452. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  453. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  454. { return __swap64_os(x); }
  455. ^
  456. In file included from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:0:
  457. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  458. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  459. File(bool gzipped = false);
  460. ^
  461. /home/franklin/rockbox/apps/plugins/xworld/file.c:24:2: error: expected specifier-qualifier-list before 'File_impl'
  462. File_impl() : _ioErr(false) {}
  463. ^
  464. /home/franklin/rockbox/apps/plugins/xworld/file.c:32:16: error: expected identifier or '(' before ':' token
  465. struct stdFile : File_impl {
  466. ^
  467. /home/franklin/rockbox/apps/plugins/xworld/file.c:69:17: error: expected identifier or '(' before ':' token
  468. struct zlibFile : File_impl {
  469. ^
  470. /home/franklin/rockbox/apps/plugins/xworld/file.c:106:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  471. File::File(bool gzipped) {
  472. ^
  473. /home/franklin/rockbox/apps/plugins/xworld/file.c:114:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  474. File::~File() {
  475. ^
  476. /home/franklin/rockbox/apps/plugins/xworld/file.c:119:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  477. bool File::open(const char *filename, const char *directory, const char *mode) {
  478. ^
  479. /home/franklin/rockbox/apps/plugins/xworld/file.c:133:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  480. void File::close() {
  481. ^
  482. /home/franklin/rockbox/apps/plugins/xworld/file.c:137:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  483. bool File::ioErr() const {
  484. ^
  485. /home/franklin/rockbox/apps/plugins/xworld/file.c:141:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  486. void File::seek(int32_t off) {
  487. ^
  488. /home/franklin/rockbox/apps/plugins/xworld/file.c:145:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  489. void File::read(void *ptr, uint32_t size) {
  490. ^
  491. /home/franklin/rockbox/apps/plugins/xworld/file.c:149:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  492. uint8_t File::readByte() {
  493. ^
  494. /home/franklin/rockbox/apps/plugins/xworld/file.c:155:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  495. uint16_t File::readUint16BE() {
  496. ^
  497. /home/franklin/rockbox/apps/plugins/xworld/file.c:161:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  498. uint32_t File::readUint32BE() {
  499. ^
  500. /home/franklin/rockbox/apps/plugins/xworld/file.c:167:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  501. void File::write(void *ptr, uint32_t size) {
  502. ^
  503. /home/franklin/rockbox/apps/plugins/xworld/file.c:171:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  504. void File::writeByte(uint8_t b) {
  505. ^
  506. /home/franklin/rockbox/apps/plugins/xworld/file.c:175:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  507. void File::writeUint16BE(uint16_t n) {
  508. ^
  509. /home/franklin/rockbox/apps/plugins/xworld/file.c:180:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  510. void File::writeUint32BE(uint32_t n) {
  511. ^
  512. In file included from /usr/include/stdlib.h:42:0,
  513. from /home/franklin/rockbox/apps/plugin.h:35,
  514. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  515. from /home/franklin/rockbox/apps/plugins/xworld/mixer.h:22,
  516. from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:
  517. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  518. unsigned int __w_retcode:8;
  519. ^
  520. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  521. unsigned int __w_coredump:1;
  522. ^
  523. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  524. unsigned int __w_termsig:7;
  525. ^
  526. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  527. unsigned int __w_stopsig:8; /* Stopping signal. */
  528. ^
  529. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  530. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  531. ^
  532. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/file.o] Error 1
  533. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  534. from /home/franklin/rockbox/apps/screen_access.h:27,
  535. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  536. from /home/franklin/rockbox/apps/action.h:25,
  537. from /home/franklin/rockbox/apps/plugin.h:61,
  538. from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
  539. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  540. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  541. File(bool gzipped = false);
  542. ^
  543. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  544. from /home/franklin/rockbox/apps/plugin.h:55,
  545. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  546. from /home/franklin/rockbox/apps/plugins/xworld/mixer.h:22,
  547. from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:
  548. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  549. #error "Missing OS swap defines."
  550. ^
  551. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  552. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  553. { return __swap16_os(x); }
  554. ^
  555. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  556. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  557. { return __swap32_os(x); }
  558. ^
  559. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  560. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  561. { return __swap64_os(x); }
  562. ^
  563. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  564. from /home/franklin/rockbox/apps/screen_access.h:27,
  565. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  566. from /home/franklin/rockbox/apps/action.h:25,
  567. from /home/franklin/rockbox/apps/plugin.h:61,
  568. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  569. from /home/franklin/rockbox/apps/plugins/xworld/mixer.h:22,
  570. from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:
  571. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  572. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  573. File(bool gzipped = false);
  574. ^
  575. In file included from /home/franklin/rockbox/apps/plugins/xworld/bank.c:20:0:
  576. /home/franklin/rockbox/apps/plugins/xworld/bank.h:43:36: error: unknown type name 'MemEntry'
  577. bool bank_read(struct Bank*, const MemEntry *me, uint8_t *buf);
  578. ^
  579. In file included from /home/franklin/rockbox/apps/plugins/xworld/bank.c:22:0:
  580. /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
  581. void res_setupPart(struct Resource*uint16_t ptrId);
  582. ^
  583. /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
  584. void res_saveOrLoad(struct Resource*, Serializer &ser);
  585. ^
  586. /home/franklin/rockbox/apps/plugins/xworld/bank.c:30:6: error: conflicting types for 'bank_read'
  587. bool bank_read(struct Bank* b, const MemEntry *me, uint8_t *buf) {
  588. ^
  589. In file included from /home/franklin/rockbox/apps/plugins/xworld/bank.c:20:0:
  590. /home/franklin/rockbox/apps/plugins/xworld/bank.h:43:6: note: previous declaration of 'bank_read' was here
  591. bool bank_read(struct Bank*, const MemEntry *me, uint8_t *buf);
  592. ^
  593. /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_read':
  594. /home/franklin/rockbox/apps/plugins/xworld/bank.c:36:10: error: 'f' undeclared (first use in this function)
  595. if (!f.open(bankName, b->_dataDir))
  596. ^
  597. /home/franklin/rockbox/apps/plugins/xworld/bank.c:36:10: note: each undeclared identifier is reported only once for each function it appears in
  598. /home/franklin/rockbox/apps/plugins/xworld/bank.c:49:9: error: '_startBuf' undeclared (first use in this function)
  599. _startBuf = buf;
  600. ^
  601. /home/franklin/rockbox/apps/plugins/xworld/bank.c:35:9: warning: unused variable 'fd' [-Wunused-variable]
  602. int fd;
  603. ^
  604. In file included from /home/franklin/rockbox/apps/plugins/xworld/intern.h:25:0,
  605. from /home/franklin/rockbox/apps/plugins/xworld/file.h:22,
  606. from /home/franklin/rockbox/firmware/export/scroll_engine.h:30,
  607. from /home/franklin/rockbox/apps/screen_access.h:27,
  608. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  609. from /home/franklin/rockbox/apps/action.h:25,
  610. from /home/franklin/rockbox/apps/plugin.h:61,
  611. from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
  612. /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_decUnk1':
  613. /home/franklin/rockbox/apps/plugins/xworld/bank.c:62:29: error: 'struct Bank' has no member named 'b'
  614. assert(b->_oBuf >= b->b->_iBuf && b->_oBuf >= b->_startBuf);
  615. ^
  616. /home/franklin/rockbox/firmware/include/assert.h:14:27: note: in definition of macro 'assert'
  617. #define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
  618. ^
  619. /home/franklin/rockbox/apps/plugins/xworld/bank.c:63:9: warning: implicit declaration of function 'getCode' [-Wimplicit-function-declaration]
  620. *b->_oBuf = (uint8_t)getCode(8);
  621. ^
  622. /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_decUnk2':
  623. /home/franklin/rockbox/apps/plugins/xworld/bank.c:78:23: error: '_oBuf' undeclared (first use in this function)
  624. *b->_oBuf = *(_oBuf + i);
  625. ^
  626. /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_unpack':
  627. /home/franklin/rockbox/apps/plugins/xworld/bank.c:97:17: warning: implicit declaration of function 'decUnk1' [-Wimplicit-function-declaration]
  628. decUnk1(b, 3, 0);
  629. ^
  630. /home/franklin/rockbox/apps/plugins/xworld/bank.c:99:17: warning: implicit declaration of function 'decUnk2' [-Wimplicit-function-declaration]
  631. decUnk2(b, 8);
  632. ^
  633. /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_nextChunk':
  634. /home/franklin/rockbox/apps/plugins/xworld/bank.c:136:9: warning: implicit declaration of function 'rcr' [-Wimplicit-function-declaration]
  635. CF = rcr(true);
  636. ^
  637. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/bank.o] Error 1
  638. In file included from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:0:
  639. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
  640. MixerChunk chunk;
  641. ^
  642. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
  643. System *sys;
  644. ^
  645. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
  646. MixerChannel _channels[AUDIO_NUM_CHANNELS];
  647. ^
  648. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
  649. Mixer(System *stub);
  650. ^
  651. In file included from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:20:0:
  652. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
  653. };
  654. ^
  655. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
  656. };
  657. ^
  658. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
  659. };
  660. ^
  661. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
  662. };
  663. ^
  664. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
  665. EntryType type;
  666. ^
  667. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
  668. };
  669. ^
  670. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
  671. File *_stream;
  672. ^
  673. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
  674. Mode _mode;
  675. ^
  676. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
  677. Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
  678. ^
  679. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:35:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  680. Mixer::Mixer(System *stub)
  681. ^
  682. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:39:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  683. void Mixer::init() {
  684. ^
  685. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:45:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  686. void Mixer::free() {
  687. ^
  688. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:51:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  689. void Mixer::playChannel(uint8_t channel, const MixerChunk *mc, uint16_t freq, uint8_t volume) {
  690. ^
  691. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:67:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  692. void Mixer::stopChannel(uint8_t channel) {
  693. ^
  694. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:74:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  695. void Mixer::setChannelVolume(uint8_t channel, uint8_t volume) {
  696. ^
  697. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:81:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  698. void Mixer::stopAll() {
  699. ^
  700. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:95:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  701. void Mixer::mix(int8_t *buf, int len) {
  702. ^
  703. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:152:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  704. void Mixer::mixCallback(void *param, uint8_t *buf, int len) {
  705. ^
  706. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:156:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  707. void Mixer::saveOrLoad(Serializer &ser) {
  708. ^
  709. /home/franklin/rockbox/apps/plugins/xworld/mixer.c:24:15: warning: 'addclamp' defined but not used [-Wunused-function]
  710. static int8_t addclamp(int a, int b) {
  711. ^
  712. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/mixer.o] Error 1
  713. In file included from /usr/include/stdlib.h:42:0,
  714. from /home/franklin/rockbox/apps/plugin.h:35,
  715. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  716. from /home/franklin/rockbox/apps/plugins/xworld/parts.h:4,
  717. from /home/franklin/rockbox/apps/plugins/xworld/parts.c:1:
  718. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  719. unsigned int __w_retcode:8;
  720. ^
  721. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  722. unsigned int __w_coredump:1;
  723. ^
  724. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  725. unsigned int __w_termsig:7;
  726. ^
  727. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  728. unsigned int __w_stopsig:8; /* Stopping signal. */
  729. ^
  730. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  731. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  732. ^
  733. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  734. from /home/franklin/rockbox/apps/plugin.h:55,
  735. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  736. from /home/franklin/rockbox/apps/plugins/xworld/parts.h:4,
  737. from /home/franklin/rockbox/apps/plugins/xworld/parts.c:1:
  738. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  739. #error "Missing OS swap defines."
  740. ^
  741. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  742. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  743. { return __swap16_os(x); }
  744. ^
  745. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  746. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  747. { return __swap32_os(x); }
  748. ^
  749. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  750. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  751. { return __swap64_os(x); }
  752. ^
  753. In file included from /usr/include/stdlib.h:42:0,
  754. from /home/franklin/rockbox/apps/plugin.h:35,
  755. from /home/franklin/rockbox/apps/plugins/xworld/resource.c:19:
  756. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  757. unsigned int __w_retcode:8;
  758. ^
  759. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  760. unsigned int __w_coredump:1;
  761. ^
  762. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  763. unsigned int __w_termsig:7;
  764. ^
  765. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  766. unsigned int __w_stopsig:8; /* Stopping signal. */
  767. ^
  768. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  769. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  770. ^
  771. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  772. from /home/franklin/rockbox/apps/screen_access.h:27,
  773. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  774. from /home/franklin/rockbox/apps/action.h:25,
  775. from /home/franklin/rockbox/apps/plugin.h:61,
  776. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  777. from /home/franklin/rockbox/apps/plugins/xworld/parts.h:4,
  778. from /home/franklin/rockbox/apps/plugins/xworld/parts.c:1:
  779. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  780. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  781. File(bool gzipped = false);
  782. ^
  783. In file included from /usr/include/stdlib.h:42:0,
  784. from /home/franklin/rockbox/apps/plugin.h:35,
  785. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  786. from /home/franklin/rockbox/apps/plugins/xworld/serializer.h:22,
  787. from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:
  788. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  789. unsigned int __w_retcode:8;
  790. ^
  791. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  792. unsigned int __w_coredump:1;
  793. ^
  794. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  795. unsigned int __w_termsig:7;
  796. ^
  797. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  798. unsigned int __w_stopsig:8; /* Stopping signal. */
  799. ^
  800. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  801. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  802. ^
  803. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  804. from /home/franklin/rockbox/apps/plugin.h:55,
  805. from /home/franklin/rockbox/apps/plugins/xworld/resource.c:19:
  806. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  807. #error "Missing OS swap defines."
  808. ^
  809. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  810. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  811. { return __swap16_os(x); }
  812. ^
  813. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  814. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  815. { return __swap32_os(x); }
  816. ^
  817. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  818. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  819. { return __swap64_os(x); }
  820. ^
  821. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  822. from /home/franklin/rockbox/apps/plugin.h:55,
  823. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  824. from /home/franklin/rockbox/apps/plugins/xworld/serializer.h:22,
  825. from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:
  826. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  827. #error "Missing OS swap defines."
  828. ^
  829. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  830. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  831. { return __swap16_os(x); }
  832. ^
  833. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  834. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  835. { return __swap32_os(x); }
  836. ^
  837. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  838. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  839. { return __swap64_os(x); }
  840. ^
  841. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  842. from /home/franklin/rockbox/apps/screen_access.h:27,
  843. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  844. from /home/franklin/rockbox/apps/action.h:25,
  845. from /home/franklin/rockbox/apps/plugin.h:61,
  846. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  847. from /home/franklin/rockbox/apps/plugins/xworld/serializer.h:22,
  848. from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:
  849. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  850. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  851. File(bool gzipped = false);
  852. ^
  853. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  854. from /home/franklin/rockbox/apps/screen_access.h:27,
  855. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  856. from /home/franklin/rockbox/apps/action.h:25,
  857. from /home/franklin/rockbox/apps/plugin.h:61,
  858. from /home/franklin/rockbox/apps/plugins/xworld/resource.c:19:
  859. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  860. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  861. File(bool gzipped = false);
  862. ^
  863. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/parts.o] Error 1
  864. make: *** No rule to make target '/home/franklin/rockbox/build_sim/apps/plugins/xworld/staticres.o', needed by '/home/franklin/rockbox/build_sim/apps/plugins/xworld/xworld.rock'.
  865. In file included from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:0:
  866. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
  867. };
  868. ^
  869. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
  870. };
  871. ^
  872. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
  873. };
  874. ^
  875. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
  876. };
  877. ^
  878. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
  879. EntryType type;
  880. ^
  881. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
  882. };
  883. ^
  884. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
  885. File *_stream;
  886. ^
  887. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
  888. Mode _mode;
  889. ^
  890. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
  891. Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
  892. ^
  893. /home/franklin/rockbox/apps/plugins/xworld/serializer.c:23:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  894. Serializer::Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer)
  895. ^
  896. /home/franklin/rockbox/apps/plugins/xworld/serializer.c:27:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  897. void Serializer::saveOrLoadEntries(Entry *entry) {
  898. ^
  899. /home/franklin/rockbox/apps/plugins/xworld/serializer.c:41:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  900. void Serializer::saveEntries(Entry *entry) {
  901. ^
  902. /home/franklin/rockbox/apps/plugins/xworld/serializer.c:74:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  903. void Serializer::loadEntries(Entry *entry) {
  904. ^
  905. /home/franklin/rockbox/apps/plugins/xworld/serializer.c:107:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  906. void Serializer::saveInt(uint8_t es, void *p) {
  907. ^
  908. /home/franklin/rockbox/apps/plugins/xworld/serializer.c:121:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  909. void Serializer::loadInt(uint8_t es, void *p) {
  910. ^
  911. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/serializer.o] Error 1
  912. In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:20:0:
  913. /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
  914. void res_setupPart(struct Resource*uint16_t ptrId);
  915. ^
  916. /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
  917. void res_saveOrLoad(struct Resource*, Serializer &ser);
  918. ^
  919. In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:23:0:
  920. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
  921. };
  922. ^
  923. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
  924. };
  925. ^
  926. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
  927. };
  928. ^
  929. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
  930. };
  931. ^
  932. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
  933. EntryType type;
  934. ^
  935. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
  936. };
  937. ^
  938. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
  939. File *_stream;
  940. ^
  941. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
  942. Mode _mode;
  943. ^
  944. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
  945. Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
  946. ^
  947. In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:24:0:
  948. /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
  949. typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
  950. ^
  951. /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
  952. Resource *res;
  953. ^
  954. /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
  955. System *sys;
  956. ^
  957. /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
  958. Polygon polygon;
  959. ^
  960. /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
  961. Ptr _pData;
  962. ^
  963. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
  964. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  965. ^
  966. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
  967. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  968. ^
  969. /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
  970. void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
  971. ^
  972. /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
  973. void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
  974. ^
  975. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
  976. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  977. ^
  978. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
  979. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  980. ^
  981. /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
  982. void video_saveOrLoad(struct Video* v, Serializer &ser);
  983. ^
  984. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_create':
  985. /home/franklin/rockbox/apps/plugins/xworld/resource.c:34:8: error: 'struct Resource' has no member named 'vid'
  986. res->vid=vid;
  987. ^
  988. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_readBank':
  989. /home/franklin/rockbox/apps/plugins/xworld/resource.c:41:23: error: '_memList' undeclared (first use in this function)
  990. uint16_t n = me - _memList;
  991. ^
  992. /home/franklin/rockbox/apps/plugins/xworld/resource.c:41:23: note: each undeclared identifier is reported only once for each function it appears in
  993. /home/franklin/rockbox/apps/plugins/xworld/resource.c:44:5: error: unknown type name 'Bank'
  994. Bank bk(_dataDir);
  995. ^
  996. /home/franklin/rockbox/apps/plugins/xworld/resource.c:44:5: warning: parameter names (without types) in function declaration
  997. /home/franklin/rockbox/apps/plugins/xworld/resource.c:45:12: error: request for member 'read' in something not a structure or union
  998. if (!bk.read(me, dstBuf)) {
  999. ^
  1000. /home/franklin/rockbox/apps/plugins/xworld/resource.c:40:36: warning: unused parameter 'res' [-Wunused-parameter]
  1001. void res_readBank(struct Resource* res, const MemEntry *me, uint8_t *dstBuf) {
  1002. ^
  1003. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'resTypeToString':
  1004. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:53: warning: unused parameter 'res' [-Wunused-parameter]
  1005. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1006. ^
  1007. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_readEntries':
  1008. /home/franklin/rockbox/apps/plugins/xworld/resource.c:78:5: error: unknown type name 'File'
  1009. File f;
  1010. ^
  1011. /home/franklin/rockbox/apps/plugins/xworld/resource.c:82:11: error: request for member 'open' in something not a structure or union
  1012. if (!f.open("memlist.bin", _dataDir)) {
  1013. ^
  1014. /home/franklin/rockbox/apps/plugins/xworld/resource.c:82:32: error: '_dataDir' undeclared (first use in this function)
  1015. if (!f.open("memlist.bin", _dataDir)) {
  1016. ^
  1017. /home/franklin/rockbox/apps/plugins/xworld/resource.c:91:5: error: '_numMemList' undeclared (first use in this function)
  1018. _numMemList = 0;
  1019. ^
  1020. /home/franklin/rockbox/apps/plugins/xworld/resource.c:92:26: error: '_memList' undeclared (first use in this function)
  1021. MemEntry *memEntry = _memList;
  1022. ^
  1023. /home/franklin/rockbox/apps/plugins/xworld/resource.c:95:28: error: request for member 'readByte' in something not a structure or union
  1024. memEntry->state = f.readByte();
  1025. ^
  1026. /home/franklin/rockbox/apps/plugins/xworld/resource.c:96:27: error: request for member 'readByte' in something not a structure or union
  1027. memEntry->type = f.readByte();
  1028. ^
  1029. /home/franklin/rockbox/apps/plugins/xworld/resource.c:97:32: error: request for member 'readUint16BE' in something not a structure or union
  1030. memEntry->bufPtr = 0; f.readUint16BE();
  1031. ^
  1032. /home/franklin/rockbox/apps/plugins/xworld/resource.c:98:27: error: request for member 'readUint16BE' in something not a structure or union
  1033. memEntry->unk4 = f.readUint16BE();
  1034. ^
  1035. /home/franklin/rockbox/apps/plugins/xworld/resource.c:99:30: error: request for member 'readByte' in something not a structure or union
  1036. memEntry->rankNum = f.readByte();
  1037. ^
  1038. /home/franklin/rockbox/apps/plugins/xworld/resource.c:100:29: error: request for member 'readByte' in something not a structure or union
  1039. memEntry->bankId = f.readByte();
  1040. ^
  1041. /home/franklin/rockbox/apps/plugins/xworld/resource.c:101:33: error: request for member 'readUint32BE' in something not a structure or union
  1042. memEntry->bankOffset = f.readUint32BE();
  1043. ^
  1044. /home/franklin/rockbox/apps/plugins/xworld/resource.c:102:27: error: request for member 'readUint16BE' in something not a structure or union
  1045. memEntry->unkC = f.readUint16BE();
  1046. ^
  1047. /home/franklin/rockbox/apps/plugins/xworld/resource.c:103:33: error: request for member 'readUint16BE' in something not a structure or union
  1048. memEntry->packedSize = f.readUint16BE();
  1049. ^
  1050. /home/franklin/rockbox/apps/plugins/xworld/resource.c:104:28: error: request for member 'readUint16BE' in something not a structure or union
  1051. memEntry->unk10 = f.readUint16BE();
  1052. ^
  1053. /home/franklin/rockbox/apps/plugins/xworld/resource.c:105:27: error: request for member 'readUint16BE' in something not a structure or union
  1054. memEntry->size = f.readUint16BE();
  1055. ^
  1056. /home/franklin/rockbox/apps/plugins/xworld/resource.c:131:31: warning: passing argument 1 of 'resTypeToString' makes pointer from integer without a cast
  1057. resTypeToString(memEntry->type),
  1058. ^
  1059. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: expected 'struct Resource *' but argument is of type 'uint8_t'
  1060. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1061. ^
  1062. /home/franklin/rockbox/apps/plugins/xworld/resource.c:131:15: error: too few arguments to function 'resTypeToString'
  1063. resTypeToString(memEntry->type),
  1064. ^
  1065. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
  1066. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1067. ^
  1068. /home/franklin/rockbox/apps/plugins/xworld/resource.c:156:31: warning: passing argument 1 of 'resTypeToString' makes pointer from integer without a cast
  1069. resTypeToString(i),
  1070. ^
  1071. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: expected 'struct Resource *' but argument is of type 'int'
  1072. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1073. ^
  1074. /home/franklin/rockbox/apps/plugins/xworld/resource.c:156:15: error: too few arguments to function 'resTypeToString'
  1075. resTypeToString(i),
  1076. ^
  1077. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
  1078. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1079. ^
  1080. /home/franklin/rockbox/apps/plugins/xworld/resource.c:167:64: warning: passing argument 1 of 'resTypeToString' makes pointer from integer without a cast
  1081. debug(DBG_RES,"Total %-17s files: %3d",resTypeToString(i),resourceUnitStats[i][RES_SIZE]+resourceUnitStats[i][RES_COMPRESSED]);
  1082. ^
  1083. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: expected 'struct Resource *' but argument is of type 'int'
  1084. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1085. ^
  1086. /home/franklin/rockbox/apps/plugins/xworld/resource.c:167:48: error: too few arguments to function 'resTypeToString'
  1087. debug(DBG_RES,"Total %-17s files: %3d",resTypeToString(i),resourceUnitStats[i][RES_SIZE]+resourceUnitStats[i][RES_COMPRESSED]);
  1088. ^
  1089. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
  1090. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1091. ^
  1092. /home/franklin/rockbox/apps/plugins/xworld/resource.c:78:10: warning: variable 'f' set but not used [-Wunused-but-set-variable]
  1093. File f;
  1094. ^
  1095. /home/franklin/rockbox/apps/plugins/xworld/resource.c:77:39: warning: unused parameter 'res' [-Wunused-parameter]
  1096. void res_readEntries(struct Resource* res) {
  1097. ^
  1098. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_loadMarkedAsNeeded':
  1099. /home/franklin/rockbox/apps/plugins/xworld/resource.c:183:22: error: '_numMemList' undeclared (first use in this function)
  1100. uint16_t i = _numMemList;
  1101. ^
  1102. /home/franklin/rockbox/apps/plugins/xworld/resource.c:184:24: error: '_memList' undeclared (first use in this function)
  1103. MemEntry *it = _memList;
  1104. ^
  1105. /home/franklin/rockbox/apps/plugins/xworld/resource.c:203:31: error: '_vidCurPtr' undeclared (first use in this function)
  1106. loadDestination = _vidCurPtr;
  1107. ^
  1108. /home/franklin/rockbox/apps/plugins/xworld/resource.c:205:31: error: '_scriptCurPtr' undeclared (first use in this function)
  1109. loadDestination = _scriptCurPtr;
  1110. ^
  1111. /home/franklin/rockbox/apps/plugins/xworld/resource.c:206:28: error: '_vidBakPtr' undeclared (first use in this function)
  1112. if (me->size > _vidBakPtr - _scriptCurPtr) {
  1113. ^
  1114. /home/franklin/rockbox/apps/plugins/xworld/resource.c:218:104: error: '_memPtrStart' undeclared (first use in this function)
  1115. debug(DBG_BANK, "res_load() bufPos=%X size=%X type=%X pos=%X bankId=%X", loadDestination - _memPtrStart, me->packedSize, me->type, me->bankOffset, me->bankId);
  1116. ^
  1117. /home/franklin/rockbox/apps/plugins/xworld/resource.c:219:13: warning: implicit declaration of function 'readBank' [-Wimplicit-function-declaration]
  1118. readBank(me, loadDestination);
  1119. ^
  1120. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_invalidateRes':
  1121. /home/franklin/rockbox/apps/plugins/xworld/resource.c:236:20: error: '_memList' undeclared (first use in this function)
  1122. MemEntry *me = _memList;
  1123. ^
  1124. /home/franklin/rockbox/apps/plugins/xworld/resource.c:237:18: error: '_numMemList' undeclared (first use in this function)
  1125. uint16_t i = _numMemList;
  1126. ^
  1127. /home/franklin/rockbox/apps/plugins/xworld/resource.c:244:5: error: '_scriptCurPtr' undeclared (first use in this function)
  1128. _scriptCurPtr = _scriptBakPtr;
  1129. ^
  1130. /home/franklin/rockbox/apps/plugins/xworld/resource.c:244:21: error: '_scriptBakPtr' undeclared (first use in this function)
  1131. _scriptCurPtr = _scriptBakPtr;
  1132. ^
  1133. /home/franklin/rockbox/apps/plugins/xworld/resource.c:235:41: warning: unused parameter 'res' [-Wunused-parameter]
  1134. void res_invalidateRes(struct Resource* res) {
  1135. ^
  1136. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_invalidateAll':
  1137. /home/franklin/rockbox/apps/plugins/xworld/resource.c:248:20: error: '_memList' undeclared (first use in this function)
  1138. MemEntry *me = _memList;
  1139. ^
  1140. /home/franklin/rockbox/apps/plugins/xworld/resource.c:249:18: error: '_numMemList' undeclared (first use in this function)
  1141. uint16_t i = _numMemList;
  1142. ^
  1143. /home/franklin/rockbox/apps/plugins/xworld/resource.c:254:5: error: '_scriptCurPtr' undeclared (first use in this function)
  1144. _scriptCurPtr = _memPtrStart;
  1145. ^
  1146. /home/franklin/rockbox/apps/plugins/xworld/resource.c:254:21: error: '_memPtrStart' undeclared (first use in this function)
  1147. _scriptCurPtr = _memPtrStart;
  1148. ^
  1149. /home/franklin/rockbox/apps/plugins/xworld/resource.c:247:41: warning: unused parameter 'res' [-Wunused-parameter]
  1150. void res_invalidateAll(struct Resource* res) {
  1151. ^
  1152. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_loadPartsOrMemoryEntry':
  1153. /home/franklin/rockbox/apps/plugins/xworld/resource.c:266:22: error: '_numMemList' undeclared (first use in this function)
  1154. if (resourceId > _numMemList) {
  1155. ^
  1156. /home/franklin/rockbox/apps/plugins/xworld/resource.c:268:9: error: 'requestedNextPart' undeclared (first use in this function)
  1157. requestedNextPart = resourceId;
  1158. ^
  1159. /home/franklin/rockbox/apps/plugins/xworld/resource.c:272:25: error: '_memList' undeclared (first use in this function)
  1160. MemEntry *me = &_memList[resourceId];
  1161. ^
  1162. /home/franklin/rockbox/apps/plugins/xworld/resource.c:276:13: warning: implicit declaration of function 'loadMarkedAsNeeded' [-Wimplicit-function-declaration]
  1163. loadMarkedAsNeeded();
  1164. ^
  1165. /home/franklin/rockbox/apps/plugins/xworld/resource.c:264:50: warning: unused parameter 'res' [-Wunused-parameter]
  1166. void res_loadPartsOrMemoryEntry(struct Resource* res, uint16_t resourceId) {
  1167. ^
  1168. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_setupPart':
  1169. /home/franklin/rockbox/apps/plugins/xworld/resource.c:290:19: error: 'currentPartId' undeclared (first use in this function)
  1170. if (partId == currentPartId)
  1171. ^
  1172. /home/franklin/rockbox/apps/plugins/xworld/resource.c:304:5: warning: implicit declaration of function 'invalidateAll' [-Wimplicit-function-declaration]
  1173. invalidateAll();
  1174. ^
  1175. /home/franklin/rockbox/apps/plugins/xworld/resource.c:306:5: error: '_memList' undeclared (first use in this function)
  1176. _memList[paletteIndex].state = MEMENTRY_STATE_LOAD_ME;
  1177. ^
  1178. /home/franklin/rockbox/apps/plugins/xworld/resource.c:318:5: error: 'segPalettes' undeclared (first use in this function)
  1179. segPalettes = _memList[paletteIndex].bufPtr;
  1180. ^
  1181. /home/franklin/rockbox/apps/plugins/xworld/resource.c:319:5: error: 'segBytecode' undeclared (first use in this function)
  1182. segBytecode = _memList[codeIndex].bufPtr;
  1183. ^
  1184. /home/franklin/rockbox/apps/plugins/xworld/resource.c:320:5: error: 'segCinematic' undeclared (first use in this function)
  1185. segCinematic = _memList[videoCinematicIndex].bufPtr;
  1186. ^
  1187. /home/franklin/rockbox/apps/plugins/xworld/resource.c:327:9: error: '_segVideo2' undeclared (first use in this function)
  1188. _segVideo2 = _memList[video2Index].bufPtr;
  1189. ^
  1190. /home/franklin/rockbox/apps/plugins/xworld/resource.c:331:74: error: too few arguments to function 'resTypeToString'
  1191. debug(DBG_RES,"Loaded resource %d (%s) in segPalettes.",paletteIndex,resTypeToString(_memList[paletteIndex].type));
  1192. ^
  1193. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
  1194. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1195. ^
  1196. /home/franklin/rockbox/apps/plugins/xworld/resource.c:332:71: error: too few arguments to function 'resTypeToString'
  1197. debug(DBG_RES,"Loaded resource %d (%s) in segBytecode.",codeIndex,resTypeToString(_memList[codeIndex].type));
  1198. ^
  1199. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
  1200. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1201. ^
  1202. /home/franklin/rockbox/apps/plugins/xworld/resource.c:333:82: error: too few arguments to function 'resTypeToString'
  1203. debug(DBG_RES,"Loaded resource %d (%s) in segCinematic.",videoCinematicIndex,resTypeToString(_memList[videoCinematicIndex].type));
  1204. ^
  1205. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
  1206. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1207. ^
  1208. /home/franklin/rockbox/apps/plugins/xworld/resource.c:336:76: error: too few arguments to function 'resTypeToString'
  1209. debug(DBG_RES,"Loaded resource %d (%s) in _segVideo2.",video2Index,resTypeToString(_memList[video2Index].type));
  1210. ^
  1211. /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
  1212. static const char *resTypeToString(struct Resource* res, unsigned int type)
  1213. ^
  1214. /home/franklin/rockbox/apps/plugins/xworld/resource.c:344:5: error: '_scriptBakPtr' undeclared (first use in this function)
  1215. _scriptBakPtr = _scriptCurPtr;
  1216. ^
  1217. /home/franklin/rockbox/apps/plugins/xworld/resource.c:344:21: error: '_scriptCurPtr' undeclared (first use in this function)
  1218. _scriptBakPtr = _scriptCurPtr;
  1219. ^
  1220. /home/franklin/rockbox/apps/plugins/xworld/resource.c:286:37: warning: unused parameter 'res' [-Wunused-parameter]
  1221. void res_setupPart(struct Resource* res, uint16_t partId) {
  1222. ^
  1223. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_allocMemBlock':
  1224. /home/franklin/rockbox/apps/plugins/xworld/resource.c:347:1: error: number of arguments doesn't match prototype
  1225. void res_allocMemBlock() {
  1226. ^
  1227. In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:20:0:
  1228. /home/franklin/rockbox/apps/plugins/xworld/resource.h:96:6: error: prototype declaration
  1229. void res_allocMemBlock(struct Resource*);
  1230. ^
  1231. /home/franklin/rockbox/apps/plugins/xworld/resource.c:349:5: error: '_scriptBakPtr' undeclared (first use in this function)
  1232. _scriptBakPtr = _scriptCurPtr = _memPtrStart;
  1233. ^
  1234. /home/franklin/rockbox/apps/plugins/xworld/resource.c:349:21: error: '_scriptCurPtr' undeclared (first use in this function)
  1235. _scriptBakPtr = _scriptCurPtr = _memPtrStart;
  1236. ^
  1237. /home/franklin/rockbox/apps/plugins/xworld/resource.c:349:37: error: '_memPtrStart' undeclared (first use in this function)
  1238. _scriptBakPtr = _scriptCurPtr = _memPtrStart;
  1239. ^
  1240. /home/franklin/rockbox/apps/plugins/xworld/resource.c:350:5: error: '_vidBakPtr' undeclared (first use in this function)
  1241. _vidBakPtr = _vidCurPtr = _memPtrStart + MEM_BLOCK_SIZE - 0x800 * 16; //0x800 = 2048, so we have 32KB free for vidBack and vidCur
  1242. ^
  1243. /home/franklin/rockbox/apps/plugins/xworld/resource.c:350:18: error: '_vidCurPtr' undeclared (first use in this function)
  1244. _vidBakPtr = _vidCurPtr = _memPtrStart + MEM_BLOCK_SIZE - 0x800 * 16; //0x800 = 2048, so we have 32KB free for vidBack and vidCur
  1245. ^
  1246. /home/franklin/rockbox/apps/plugins/xworld/resource.c:351:5: error: '_useSegVideo2' undeclared (first use in this function)
  1247. _useSegVideo2 = false;
  1248. ^
  1249. /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_freeMemBlock':
  1250. /home/franklin/rockbox/apps/plugins/xworld/resource.c:354:1: error: number of arguments doesn't match prototype
  1251. void res_freeMemBlock() {
  1252. ^
  1253. In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:20:0:
  1254. /home/franklin/rockbox/apps/plugins/xworld/resource.h:97:6: error: prototype declaration
  1255. void res_freeMemBlock(struct Resource*);
  1256. ^
  1257. /home/franklin/rockbox/apps/plugins/xworld/resource.c: At top level:
  1258. /home/franklin/rockbox/apps/plugins/xworld/resource.c:358:32: error: expected ')' before '&' token
  1259. void res_saveOrLoad(Serializer &ser) {
  1260. ^
  1261. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/resource.o] Error 1
  1262. /home/franklin/rockbox/apps/plugins/xworld/util.c:19:19: fatal error: cstdarg: No such file or directory
  1263. #include <cstdarg>
  1264. ^
  1265. compilation terminated.
  1266. In file included from /usr/include/stdlib.h:42:0,
  1267. from /home/franklin/rockbox/apps/plugin.h:35,
  1268. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  1269. from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:22,
  1270. from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:
  1271. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  1272. unsigned int __w_retcode:8;
  1273. ^
  1274. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  1275. unsigned int __w_coredump:1;
  1276. ^
  1277. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  1278. unsigned int __w_termsig:7;
  1279. ^
  1280. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  1281. unsigned int __w_stopsig:8; /* Stopping signal. */
  1282. ^
  1283. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  1284. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  1285. ^
  1286. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/util.o] Error 1
  1287. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  1288. from /home/franklin/rockbox/apps/plugin.h:55,
  1289. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  1290. from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:22,
  1291. from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:
  1292. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  1293. #error "Missing OS swap defines."
  1294. ^
  1295. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  1296. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  1297. { return __swap16_os(x); }
  1298. ^
  1299. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  1300. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  1301. { return __swap32_os(x); }
  1302. ^
  1303. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  1304. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  1305. { return __swap64_os(x); }
  1306. ^
  1307. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  1308. from /home/franklin/rockbox/apps/screen_access.h:27,
  1309. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  1310. from /home/franklin/rockbox/apps/action.h:25,
  1311. from /home/franklin/rockbox/apps/plugin.h:61,
  1312. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  1313. from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:22,
  1314. from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:
  1315. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  1316. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  1317. File(bool gzipped = false);
  1318. ^
  1319. In file included from /usr/include/stdlib.h:42:0,
  1320. from /home/franklin/rockbox/apps/plugin.h:35,
  1321. from /home/franklin/rockbox/apps/plugins/xworld/sys.c:1:
  1322. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  1323. unsigned int __w_retcode:8;
  1324. ^
  1325. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  1326. unsigned int __w_coredump:1;
  1327. ^
  1328. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  1329. unsigned int __w_termsig:7;
  1330. ^
  1331. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  1332. unsigned int __w_stopsig:8; /* Stopping signal. */
  1333. ^
  1334. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  1335. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  1336. ^
  1337. In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:0:
  1338. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:35:2: error: unknown type name 'SfxInstrument'
  1339. SfxInstrument samples[15];
  1340. ^
  1341. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:56:2: error: unknown type name 'Mixer'
  1342. Mixer *mixer;
  1343. ^
  1344. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:57:2: error: unknown type name 'Resource'
  1345. Resource *res;
  1346. ^
  1347. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:58:2: error: unknown type name 'System'
  1348. System *sys;
  1349. ^
  1350. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:64:2: error: unknown type name 'SfxModule'
  1351. SfxModule _sfxMod;
  1352. ^
  1353. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:67:2: error: expected specifier-qualifier-list before 'SfxPlayer'
  1354. SfxPlayer(Mixer *mix, Resource *res, System *stub);
  1355. ^
  1356. In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:20:0:
  1357. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
  1358. MixerChunk chunk;
  1359. ^
  1360. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
  1361. System *sys;
  1362. ^
  1363. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
  1364. MixerChannel _channels[AUDIO_NUM_CHANNELS];
  1365. ^
  1366. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
  1367. Mixer(System *stub);
  1368. ^
  1369. In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:21:0:
  1370. /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
  1371. void res_setupPart(struct Resource*uint16_t ptrId);
  1372. ^
  1373. /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
  1374. void res_saveOrLoad(struct Resource*, Serializer &ser);
  1375. ^
  1376. In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:22:0:
  1377. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
  1378. };
  1379. ^
  1380. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
  1381. };
  1382. ^
  1383. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
  1384. };
  1385. ^
  1386. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
  1387. };
  1388. ^
  1389. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
  1390. EntryType type;
  1391. ^
  1392. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
  1393. };
  1394. ^
  1395. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
  1396. File *_stream;
  1397. ^
  1398. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
  1399. Mode _mode;
  1400. ^
  1401. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
  1402. Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
  1403. ^
  1404. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:26:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1405. SfxPlayer::SfxPlayer(Mixer *mix, Resource *res, System *stub)
  1406. ^
  1407. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:30:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1408. void SfxPlayer::init() {
  1409. ^
  1410. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:34:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1411. void SfxPlayer::free() {
  1412. ^
  1413. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:39:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1414. void SfxPlayer::setEventsDelay(uint16_t delay) {
  1415. ^
  1416. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:45:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1417. void SfxPlayer::loadSfxModule(uint16_t resNum, uint16_t delay, uint8_t pos) {
  1418. ^
  1419. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:76:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1420. void SfxPlayer::prepareInstruments(const uint8_t *p) {
  1421. ^
  1422. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:98:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1423. void SfxPlayer::start() {
  1424. ^
  1425. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:105:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1426. void SfxPlayer::stop() {
  1427. ^
  1428. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:114:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1429. void SfxPlayer::handleEvents() {
  1430. ^
  1431. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:136:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1432. void SfxPlayer::handlePattern(uint8_t channel, const uint8_t *data) {
  1433. ^
  1434. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:203:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1435. uint32_t SfxPlayer::eventsCallback(uint32_t interval, void *param) {
  1436. ^
  1437. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:209:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  1438. void SfxPlayer::saveOrLoad(Serializer &ser) {
  1439. ^
  1440. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  1441. from /home/franklin/rockbox/apps/plugin.h:55,
  1442. from /home/franklin/rockbox/apps/plugins/xworld/sys.c:1:
  1443. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  1444. #error "Missing OS swap defines."
  1445. ^
  1446. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  1447. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  1448. { return __swap16_os(x); }
  1449. ^
  1450. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  1451. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  1452. { return __swap32_os(x); }
  1453. ^
  1454. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  1455. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  1456. { return __swap64_os(x); }
  1457. ^
  1458. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/sfxplayer.o] Error 1
  1459. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  1460. from /home/franklin/rockbox/apps/screen_access.h:27,
  1461. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  1462. from /home/franklin/rockbox/apps/action.h:25,
  1463. from /home/franklin/rockbox/apps/plugin.h:61,
  1464. from /home/franklin/rockbox/apps/plugins/xworld/sys.c:1:
  1465. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  1466. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  1467. File(bool gzipped = false);
  1468. ^
  1469. /home/franklin/rockbox/apps/plugins/xworld/sys.c:4:22: warning: 'struct System' declared inside parameter list
  1470. void sys_init(struct System* sys, const char* title)
  1471. ^
  1472. /home/franklin/rockbox/apps/plugins/xworld/sys.c:4:22: warning: its scope is only this definition or declaration, which is probably not what you want
  1473. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_init':
  1474. /home/franklin/rockbox/apps/plugins/xworld/sys.c:8:16: error: dereferencing pointer to incomplete type
  1475. memset(&sys->input, 0, sizeof(input));
  1476. ^
  1477. /home/franklin/rockbox/apps/plugins/xworld/sys.c:8:35: error: 'input' undeclared (first use in this function)
  1478. memset(&sys->input, 0, sizeof(input));
  1479. ^
  1480. /home/franklin/rockbox/apps/plugins/xworld/sys.c:8:35: note: each undeclared identifier is reported only once for each function it appears in
  1481. /home/franklin/rockbox/apps/plugins/xworld/sys.c:7:12: warning: unused variable 'y' [-Wunused-variable]
  1482. int x, y;
  1483. ^
  1484. /home/franklin/rockbox/apps/plugins/xworld/sys.c:7:9: warning: unused variable 'x' [-Wunused-variable]
  1485. int x, y;
  1486. ^
  1487. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1488. /home/franklin/rockbox/apps/plugins/xworld/sys.c:10:25: warning: 'struct System' declared inside parameter list
  1489. void sys_destroy(struct System* sys)
  1490. ^
  1491. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_destroy':
  1492. /home/franklin/rockbox/apps/plugins/xworld/sys.c:10:33: warning: unused parameter 'sys' [-Wunused-parameter]
  1493. void sys_destroy(struct System* sys)
  1494. ^
  1495. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1496. /home/franklin/rockbox/apps/plugins/xworld/sys.c:14:28: warning: 'struct System' declared inside parameter list
  1497. void sys_setPallete(struct System* sys, uint8_t start, uint8_t n, const uint8_t *buf)
  1498. ^
  1499. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_setPallete':
  1500. /home/franklin/rockbox/apps/plugins/xworld/sys.c:23:9: error: 'pallete' undeclared (first use in this function)
  1501. pallete[i]=LCD_RGBPACK(c[0],c[1],c[2]);
  1502. ^
  1503. /home/franklin/rockbox/apps/plugins/xworld/sys.c:14:36: warning: unused parameter 'sys' [-Wunused-parameter]
  1504. void sys_setPallete(struct System* sys, uint8_t start, uint8_t n, const uint8_t *buf)
  1505. ^
  1506. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1507. /home/franklin/rockbox/apps/plugins/xworld/sys.c:26:26: warning: 'struct System' declared inside parameter list
  1508. void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint8_t *buf, uint32_t pitch)
  1509. ^
  1510. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_copyRect':
  1511. /home/franklin/rockbox/apps/plugins/xworld/sys.c:29:12: error: 'height' undeclared (first use in this function)
  1512. while (height--) {
  1513. ^
  1514. /home/franklin/rockbox/apps/plugins/xworld/sys.c:31:29: error: 'width' undeclared (first use in this function)
  1515. for (int i = 0; i < width / 2; ++i) {
  1516. ^
  1517. /home/franklin/rockbox/apps/plugins/xworld/sys.c:34:39: error: dereferencing pointer to incomplete type
  1518. rb->lcd_set_foreground(sys->pallete[pix1]);
  1519. ^
  1520. /home/franklin/rockbox/apps/plugins/xworld/sys.c:36:39: error: dereferencing pointer to incomplete type
  1521. rb->lcd_set_foreground(sys->pallete[pix2]);
  1522. ^
  1523. /home/franklin/rockbox/apps/plugins/xworld/sys.c:33:21: warning: variable 'pix2' set but not used [-Wunused-but-set-variable]
  1524. uint8_t pix2=*(buf+i)&0xF;
  1525. ^
  1526. /home/franklin/rockbox/apps/plugins/xworld/sys.c:32:21: warning: variable 'pix1' set but not used [-Wunused-but-set-variable]
  1527. uint8_t pix1=*(buf+i)>>4;
  1528. ^
  1529. /home/franklin/rockbox/apps/plugins/xworld/sys.c:26:72: warning: unused parameter 'w' [-Wunused-parameter]
  1530. void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint8_t *buf, uint32_t pitch)
  1531. ^
  1532. /home/franklin/rockbox/apps/plugins/xworld/sys.c:26:84: warning: unused parameter 'h' [-Wunused-parameter]
  1533. void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint8_t *buf, uint32_t pitch)
  1534. ^
  1535. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1536. /home/franklin/rockbox/apps/plugins/xworld/sys.c:44:31: warning: 'struct System' declared inside parameter list
  1537. void sys_processEvents(struct System* sys)
  1538. ^
  1539. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_processEvents':
  1540. /home/franklin/rockbox/apps/plugins/xworld/sys.c:50:12: error: dereferencing pointer to incomplete type
  1541. sys->input.dirMask|=DIR_UP;
  1542. ^
  1543. /home/franklin/rockbox/apps/plugins/xworld/sys.c:50:29: error: 'DIR_UP' undeclared (first use in this function)
  1544. sys->input.dirMask|=DIR_UP;
  1545. ^
  1546. /home/franklin/rockbox/apps/plugins/xworld/sys.c:54:12: error: dereferencing pointer to incomplete type
  1547. sys->input.dirMask|=DIR_DOWN;
  1548. ^
  1549. /home/franklin/rockbox/apps/plugins/xworld/sys.c:54:29: error: 'DIR_DOWN' undeclared (first use in this function)
  1550. sys->input.dirMask|=DIR_DOWN;
  1551. ^
  1552. /home/franklin/rockbox/apps/plugins/xworld/sys.c:58:12: error: dereferencing pointer to incomplete type
  1553. sys->input.dirMask|=DIR_LEFT;
  1554. ^
  1555. /home/franklin/rockbox/apps/plugins/xworld/sys.c:58:29: error: 'DIR_LEFT' undeclared (first use in this function)
  1556. sys->input.dirMask|=DIR_LEFT;
  1557. ^
  1558. /home/franklin/rockbox/apps/plugins/xworld/sys.c:62:12: error: dereferencing pointer to incomplete type
  1559. sys->input.dirMask|=DIR_RIGHT;
  1560. ^
  1561. /home/franklin/rockbox/apps/plugins/xworld/sys.c:62:29: error: 'DIR_RIGHT' undeclared (first use in this function)
  1562. sys->input.dirMask|=DIR_RIGHT;
  1563. ^
  1564. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1565. /home/franklin/rockbox/apps/plugins/xworld/sys.c:65:23: warning: 'struct System' declared inside parameter list
  1566. void sys_sleep(struct System* sys, int32_t duration)
  1567. ^
  1568. /home/franklin/rockbox/apps/plugins/xworld/sys.c:70:34: warning: 'struct System' declared inside parameter list
  1569. uint32_t sys_getTimeStamp(struct System* sys)
  1570. ^
  1571. /home/franklin/rockbox/apps/plugins/xworld/sys.c:76:41: error: unknown type name 'AudioCallback'
  1572. void sys_startAudio(struct System* sys, AudioCallback callback, void *param)
  1573. ^
  1574. /home/franklin/rockbox/apps/plugins/xworld/sys.c:79:27: warning: 'struct System' declared inside parameter list
  1575. void sys_stopAudio(struct System* sys)
  1576. ^
  1577. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_stopAudio':
  1578. /home/franklin/rockbox/apps/plugins/xworld/sys.c:79:35: warning: unused parameter 'sys' [-Wunused-parameter]
  1579. void sys_stopAudio(struct System* sys)
  1580. ^
  1581. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1582. /home/franklin/rockbox/apps/plugins/xworld/sys.c:82:41: warning: 'struct System' declared inside parameter list
  1583. uint32_t sys_getOutputSampleRate(struct System* sys)
  1584. ^
  1585. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_getOutputSampleRate':
  1586. /home/franklin/rockbox/apps/plugins/xworld/sys.c:82:49: warning: unused parameter 'sys' [-Wunused-parameter]
  1587. uint32_t sys_getOutputSampleRate(struct System* sys)
  1588. ^
  1589. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1590. /home/franklin/rockbox/apps/plugins/xworld/sys.c:87:56: error: unknown type name 'TimerCallback'
  1591. void *sys_addTimer(struct System* sys, uint32_t delay, TimerCallback callback, void *param)
  1592. ^
  1593. /home/franklin/rockbox/apps/plugins/xworld/sys.c:90:29: warning: 'struct System' declared inside parameter list
  1594. void sys_removeTimer(struct System* sys, void *timerId)
  1595. ^
  1596. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_removeTimer':
  1597. /home/franklin/rockbox/apps/plugins/xworld/sys.c:90:37: warning: unused parameter 'sys' [-Wunused-parameter]
  1598. void sys_removeTimer(struct System* sys, void *timerId)
  1599. ^
  1600. /home/franklin/rockbox/apps/plugins/xworld/sys.c:90:48: warning: unused parameter 'timerId' [-Wunused-parameter]
  1601. void sys_removeTimer(struct System* sys, void *timerId)
  1602. ^
  1603. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1604. /home/franklin/rockbox/apps/plugins/xworld/sys.c:94:30: warning: 'struct System' declared inside parameter list
  1605. void *sys_createMutex(struct System* sys)
  1606. ^
  1607. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_createMutex':
  1608. /home/franklin/rockbox/apps/plugins/xworld/sys.c:94:38: warning: unused parameter 'sys' [-Wunused-parameter]
  1609. void *sys_createMutex(struct System* sys)
  1610. ^
  1611. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1612. /home/franklin/rockbox/apps/plugins/xworld/sys.c:97:30: warning: 'struct System' declared inside parameter list
  1613. void sys_destroyMutex(struct System* sys, void *mutex)
  1614. ^
  1615. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_destroyMutex':
  1616. /home/franklin/rockbox/apps/plugins/xworld/sys.c:97:38: warning: unused parameter 'sys' [-Wunused-parameter]
  1617. void sys_destroyMutex(struct System* sys, void *mutex)
  1618. ^
  1619. /home/franklin/rockbox/apps/plugins/xworld/sys.c:97:49: warning: unused parameter 'mutex' [-Wunused-parameter]
  1620. void sys_destroyMutex(struct System* sys, void *mutex)
  1621. ^
  1622. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1623. /home/franklin/rockbox/apps/plugins/xworld/sys.c:100:27: warning: 'struct System' declared inside parameter list
  1624. void sys_lockMutex(struct System* sys, void *mutex)
  1625. ^
  1626. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_lockMutex':
  1627. /home/franklin/rockbox/apps/plugins/xworld/sys.c:100:35: warning: unused parameter 'sys' [-Wunused-parameter]
  1628. void sys_lockMutex(struct System* sys, void *mutex)
  1629. ^
  1630. /home/franklin/rockbox/apps/plugins/xworld/sys.c:100:46: warning: unused parameter 'mutex' [-Wunused-parameter]
  1631. void sys_lockMutex(struct System* sys, void *mutex)
  1632. ^
  1633. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1634. /home/franklin/rockbox/apps/plugins/xworld/sys.c:103:29: warning: 'struct System' declared inside parameter list
  1635. void sys_unlockMutex(struct System* sys, void *mutex)
  1636. ^
  1637. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_unlockMutex':
  1638. /home/franklin/rockbox/apps/plugins/xworld/sys.c:103:37: warning: unused parameter 'sys' [-Wunused-parameter]
  1639. void sys_unlockMutex(struct System* sys, void *mutex)
  1640. ^
  1641. /home/franklin/rockbox/apps/plugins/xworld/sys.c:103:48: warning: unused parameter 'mutex' [-Wunused-parameter]
  1642. void sys_unlockMutex(struct System* sys, void *mutex)
  1643. ^
  1644. /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
  1645. /home/franklin/rockbox/apps/plugins/xworld/sys.c:107:41: warning: 'struct System' declared inside parameter list
  1646. uint8_t* getOffScreenFramebuffer(struct System* sys)
  1647. ^
  1648. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'getOffScreenFramebuffer':
  1649. /home/franklin/rockbox/apps/plugins/xworld/sys.c:107:49: warning: unused parameter 'sys' [-Wunused-parameter]
  1650. uint8_t* getOffScreenFramebuffer(struct System* sys)
  1651. ^
  1652. /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_createMutex':
  1653. /home/franklin/rockbox/apps/plugins/xworld/sys.c:96:1: warning: control reaches end of non-void function [-Wreturn-type]
  1654. }
  1655. ^
  1656. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/sys.o] Error 1
  1657. In file included from /usr/include/stdlib.h:42:0,
  1658. from /home/franklin/rockbox/apps/plugin.h:35,
  1659. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  1660. from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
  1661. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1662. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  1663. unsigned int __w_retcode:8;
  1664. ^
  1665. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  1666. unsigned int __w_coredump:1;
  1667. ^
  1668. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  1669. unsigned int __w_termsig:7;
  1670. ^
  1671. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  1672. unsigned int __w_stopsig:8; /* Stopping signal. */
  1673. ^
  1674. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  1675. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  1676. ^
  1677. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  1678. from /home/franklin/rockbox/apps/plugin.h:55,
  1679. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  1680. from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
  1681. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1682. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  1683. #error "Missing OS swap defines."
  1684. ^
  1685. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  1686. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  1687. { return __swap16_os(x); }
  1688. ^
  1689. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  1690. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  1691. { return __swap32_os(x); }
  1692. ^
  1693. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  1694. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  1695. { return __swap64_os(x); }
  1696. ^
  1697. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  1698. from /home/franklin/rockbox/apps/screen_access.h:27,
  1699. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  1700. from /home/franklin/rockbox/apps/action.h:25,
  1701. from /home/franklin/rockbox/apps/plugin.h:61,
  1702. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  1703. from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
  1704. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1705. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  1706. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  1707. File(bool gzipped = false);
  1708. ^
  1709. /home/franklin/rockbox/apps/plugins/xworld/vm.c:19:17: fatal error: ctime: No such file or directory
  1710. #include <ctime>
  1711. ^
  1712. compilation terminated.
  1713. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/vm.o] Error 1
  1714. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
  1715. /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
  1716. typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
  1717. ^
  1718. /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
  1719. Resource *res;
  1720. ^
  1721. /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
  1722. System *sys;
  1723. ^
  1724. /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
  1725. Polygon polygon;
  1726. ^
  1727. /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
  1728. Ptr _pData;
  1729. ^
  1730. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
  1731. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  1732. ^
  1733. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
  1734. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  1735. ^
  1736. /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
  1737. void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
  1738. ^
  1739. /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
  1740. void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
  1741. ^
  1742. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
  1743. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  1744. ^
  1745. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
  1746. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  1747. ^
  1748. /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
  1749. void video_saveOrLoad(struct Video* v, Serializer &ser);
  1750. ^
  1751. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:21:0:
  1752. /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
  1753. void res_setupPart(struct Resource*uint16_t ptrId);
  1754. ^
  1755. /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
  1756. void res_saveOrLoad(struct Resource*, Serializer &ser);
  1757. ^
  1758. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:22:0:
  1759. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
  1760. };
  1761. ^
  1762. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
  1763. };
  1764. ^
  1765. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
  1766. };
  1767. ^
  1768. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
  1769. };
  1770. ^
  1771. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
  1772. EntryType type;
  1773. ^
  1774. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
  1775. };
  1776. ^
  1777. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
  1778. File *_stream;
  1779. ^
  1780. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
  1781. Mode _mode;
  1782. ^
  1783. /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
  1784. Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
  1785. ^
  1786. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'polygon_readVertices':
  1787. /home/franklin/rockbox/apps/plugins/xworld/video.c:34:29: error: 'points' undeclared (first use in this function)
  1788. struct Point *pt = &points[i];
  1789. ^
  1790. /home/franklin/rockbox/apps/plugins/xworld/video.c:34:29: note: each undeclared identifier is reported only once for each function it appears in
  1791. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_create':
  1792. /home/franklin/rockbox/apps/plugins/xworld/video.c:47:11: warning: assignment from incompatible pointer type
  1793. v->res=res;
  1794. ^
  1795. /home/franklin/rockbox/apps/plugins/xworld/video.c:48:11: warning: assignment from incompatible pointer type
  1796. v->sys=sys;
  1797. ^
  1798. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_init':
  1799. /home/franklin/rockbox/apps/plugins/xworld/video.c:67:5: warning: implicit declaration of function 'getPagePtr' [-Wimplicit-function-declaration]
  1800. v->_curPagePtr3 = getPagePtr(1);
  1801. ^
  1802. /home/franklin/rockbox/apps/plugins/xworld/video.c:67:21: warning: assignment makes pointer from integer without a cast
  1803. v->_curPagePtr3 = getPagePtr(1);
  1804. ^
  1805. /home/franklin/rockbox/apps/plugins/xworld/video.c:68:21: warning: assignment makes pointer from integer without a cast
  1806. v->_curPagePtr2 = getPagePtr(2);
  1807. ^
  1808. /home/franklin/rockbox/apps/plugins/xworld/video.c:71:5: warning: implicit declaration of function 'changePagePtr1' [-Wimplicit-function-declaration]
  1809. changePagePtr1(0xFE);
  1810. ^
  1811. /home/franklin/rockbox/apps/plugins/xworld/video.c:73:5: error: '_interpTable' undeclared (first use in this function)
  1812. _interpTable[0] = 0x4000;
  1813. ^
  1814. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_video_setDataBuffer':
  1815. /home/franklin/rockbox/apps/plugins/xworld/video.c:85:5: error: '_dataBuf' undeclared (first use in this function)
  1816. _dataBuf = dataBuf;
  1817. ^
  1818. /home/franklin/rockbox/apps/plugins/xworld/video.c:86:14: error: request for member 'pc' in something not a structure or union
  1819. v->_pData.pc = dataBuf + offset;
  1820. ^
  1821. /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
  1822. /home/franklin/rockbox/apps/plugins/xworld/video.c:96:84: warning: type defaults to 'int' in declaration of 'Point'
  1823. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt) {
  1824. ^
  1825. /home/franklin/rockbox/apps/plugins/xworld/video.c:96:90: error: expected ';', ',' or ')' before '&' token
  1826. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt) {
  1827. ^
  1828. /home/franklin/rockbox/apps/plugins/xworld/video.c:132:84: warning: type defaults to 'int' in declaration of 'Point'
  1829. void video_video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point &pt) {
  1830. ^
  1831. /home/franklin/rockbox/apps/plugins/xworld/video.c:132:90: error: expected ';', ',' or ')' before '&' token
  1832. void video_video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point &pt) {
  1833. ^
  1834. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_video_readAndDrawPolygonHierarchy':
  1835. /home/franklin/rockbox/apps/plugins/xworld/video.c:236:33: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
  1836. pt.x -= scriptPtr_fetchByte(v->_pData) * zoom / 64;
  1837. ^
  1838. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
  1839. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1840. /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
  1841. inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
  1842. ^
  1843. /home/franklin/rockbox/apps/plugins/xworld/video.c:237:33: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
  1844. pt.y -= scriptPtr_fetchByte(v->_pData) * zoom / 64;
  1845. ^
  1846. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
  1847. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1848. /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
  1849. inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
  1850. ^
  1851. /home/franklin/rockbox/apps/plugins/xworld/video.c:239:42: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
  1852. int16_t childs = scriptPtr_fetchByte(v->_pData);
  1853. ^
  1854. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
  1855. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1856. /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
  1857. inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
  1858. ^
  1859. /home/franklin/rockbox/apps/plugins/xworld/video.c:244:44: warning: passing argument 1 of 'scriptPtr_fetchWord' makes pointer from integer without a cast
  1860. uint16_t off = scriptPtr_fetchWord(v->_pData);
  1861. ^
  1862. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
  1863. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1864. /home/franklin/rockbox/apps/plugins/xworld/intern.h:62:17: note: expected 'struct Ptr *' but argument is of type 'int'
  1865. inline uint16_t scriptPtr_fetchWord(struct Ptr* p) {
  1866. ^
  1867. /home/franklin/rockbox/apps/plugins/xworld/video.c:246:16: warning: parameter names (without types) in function declaration
  1868. struct Point po(pt);
  1869. ^
  1870. /home/franklin/rockbox/apps/plugins/xworld/video.c:247:11: error: request for member 'x' in something not a structure or union
  1871. po.x += scriptPtr_fetchByte(v->_pData) * zoom / 64;
  1872. ^
  1873. /home/franklin/rockbox/apps/plugins/xworld/video.c:247:37: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
  1874. po.x += scriptPtr_fetchByte(v->_pData) * zoom / 64;
  1875. ^
  1876. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
  1877. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1878. /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
  1879. inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
  1880. ^
  1881. /home/franklin/rockbox/apps/plugins/xworld/video.c:248:11: error: request for member 'y' in something not a structure or union
  1882. po.y += scriptPtr_fetchByte(v->_pData) * zoom / 64;
  1883. ^
  1884. /home/franklin/rockbox/apps/plugins/xworld/video.c:248:37: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
  1885. po.y += scriptPtr_fetchByte(v->_pData) * zoom / 64;
  1886. ^
  1887. In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
  1888. from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
  1889. /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
  1890. inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
  1891. ^
  1892. /home/franklin/rockbox/apps/plugins/xworld/video.c:255:31: error: request for member 'pc' in something not a structure or union
  1893. color = *v->_pData.pc & 0x7F;
  1894. ^
  1895. /home/franklin/rockbox/apps/plugins/xworld/video.c:256:22: error: request for member 'pc' in something not a structure or union
  1896. v->_pData.pc += 2;
  1897. ^
  1898. /home/franklin/rockbox/apps/plugins/xworld/video.c:259:33: error: request for member 'pc' in something not a structure or union
  1899. uint8_t *bak = v->_pData.pc;
  1900. ^
  1901. /home/franklin/rockbox/apps/plugins/xworld/video.c:260:18: error: request for member 'pc' in something not a structure or union
  1902. v->_pData.pc = _dataBuf + off * 2;
  1903. ^
  1904. /home/franklin/rockbox/apps/plugins/xworld/video.c:260:24: error: '_dataBuf' undeclared (first use in this function)
  1905. v->_pData.pc = _dataBuf + off * 2;
  1906. ^
  1907. /home/franklin/rockbox/apps/plugins/xworld/video.c:263:9: warning: implicit declaration of function 'video_readAndDrawPolygon' [-Wimplicit-function-declaration]
  1908. video_readAndDrawPolygon(v, color, zoom, po);
  1909. ^
  1910. /home/franklin/rockbox/apps/plugins/xworld/video.c:266:18: error: request for member 'pc' in something not a structure or union
  1911. v->_pData.pc = bak;
  1912. ^
  1913. /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
  1914. /home/franklin/rockbox/apps/plugins/xworld/video.c:272:47: error: unknown type name 'Point'
  1915. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
  1916. ^
  1917. /home/franklin/rockbox/apps/plugins/xworld/video.c:272:64: error: unknown type name 'Point'
  1918. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
  1919. ^
  1920. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_calcStep':
  1921. /home/franklin/rockbox/apps/plugins/xworld/video.c:274:13: error: request for member 'y' in something not a structure or union
  1922. *dy = p2.y - p1.y;
  1923. ^
  1924. /home/franklin/rockbox/apps/plugins/xworld/video.c:274:20: error: request for member 'y' in something not a structure or union
  1925. *dy = p2.y - p1.y;
  1926. ^
  1927. /home/franklin/rockbox/apps/plugins/xworld/video.c:275:15: error: request for member 'x' in something not a structure or union
  1928. return (p2.x - p1.x) * v->_interpTable[dy] * 4;
  1929. ^
  1930. /home/franklin/rockbox/apps/plugins/xworld/video.c:275:22: error: request for member 'x' in something not a structure or union
  1931. return (p2.x - p1.x) * v->_interpTable[dy] * 4;
  1932. ^
  1933. /home/franklin/rockbox/apps/plugins/xworld/video.c:275:43: error: array subscript is not an integer
  1934. return (p2.x - p1.x) * v->_interpTable[dy] * 4;
  1935. ^
  1936. /home/franklin/rockbox/apps/plugins/xworld/video.c:272:54: warning: parameter 'p1' set but not used [-Wunused-but-set-parameter]
  1937. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
  1938. ^
  1939. /home/franklin/rockbox/apps/plugins/xworld/video.c:272:71: warning: parameter 'p2' set but not used [-Wunused-but-set-parameter]
  1940. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
  1941. ^
  1942. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_video_drawString':
  1943. /home/franklin/rockbox/apps/plugins/xworld/video.c:280:11: error: unknown type name 'StrEntry'
  1944. const StrEntry *se = video_stringsTableEng;
  1945. ^
  1946. /home/franklin/rockbox/apps/plugins/xworld/video.c:280:26: error: 'video_stringsTableEng' undeclared (first use in this function)
  1947. const StrEntry *se = video_stringsTableEng;
  1948. ^
  1949. /home/franklin/rockbox/apps/plugins/xworld/video.c:283:14: error: request for member 'id' in something not a structure or union
  1950. while (se->id != END_OF_STRING_DICTIONARY && se->id != stringId)
  1951. ^
  1952. /home/franklin/rockbox/apps/plugins/xworld/video.c:283:52: error: request for member 'id' in something not a structure or union
  1953. while (se->id != END_OF_STRING_DICTIONARY && se->id != stringId)
  1954. ^
  1955. /home/franklin/rockbox/apps/plugins/xworld/video.c:286:75: error: request for member 'str' in something not a structure or union
  1956. debug(DBG_VIDEO, "video_drawString(%d, %d, %d, '%s')", color, x, y, se->str);
  1957. ^
  1958. /home/franklin/rockbox/apps/plugins/xworld/video.c:289:11: error: request for member 'id' in something not a structure or union
  1959. if (se->id == END_OF_STRING_DICTIONARY)
  1960. ^
  1961. /home/franklin/rockbox/apps/plugins/xworld/video.c:295:24: error: request for member 'str' in something not a structure or union
  1962. int len = strlen(se->str);
  1963. ^
  1964. /home/franklin/rockbox/apps/plugins/xworld/video.c:298:15: error: request for member 'str' in something not a structure or union
  1965. if (se->str[i] == '\n') {
  1966. ^
  1967. /home/franklin/rockbox/apps/plugins/xworld/video.c:304:29: error: request for member 'str' in something not a structure or union
  1968. video_drawChar(v, se->str[i], x, y, color, v->_curPagePtr1);
  1969. ^
  1970. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawChar':
  1971. /home/franklin/rockbox/apps/plugins/xworld/video.c:310:35: warning: unused parameter 'v' [-Wunused-parameter]
  1972. void video_drawChar(struct Video* v, uint8_t character, uint16_t x, uint16_t y, uint8_t color, uint8_t *buf) {
  1973. ^
  1974. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawLineBlend':
  1975. /home/franklin/rockbox/apps/plugins/xworld/video.c:373:36: error: '_hliney' undeclared (first use in this function)
  1976. uint8_t *p = v->_curPagePtr1 + _hliney * 160 + xmin / 2;
  1977. ^
  1978. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawLineN':
  1979. /home/franklin/rockbox/apps/plugins/xworld/video.c:407:36: error: '_hliney' undeclared (first use in this function)
  1980. uint8_t *p = v->_curPagePtr1 + _hliney * 160 + xmin / 2;
  1981. ^
  1982. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawLineP':
  1983. /home/franklin/rockbox/apps/plugins/xworld/video.c:441:20: error: '_hliney' undeclared (first use in this function)
  1984. uint16_t off = _hliney * 160 + xmin / 2;
  1985. ^
  1986. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_changePagePtr1':
  1987. /home/franklin/rockbox/apps/plugins/xworld/video.c:498:21: warning: assignment makes pointer from integer without a cast
  1988. v->_curPagePtr1 = getPagePtr(page);
  1989. ^
  1990. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_fillPage':
  1991. /home/franklin/rockbox/apps/plugins/xworld/video.c:505:18: warning: initialization makes pointer from integer without a cast
  1992. uint8_t *p = getPagePtr(pageId);
  1993. ^
  1994. /home/franklin/rockbox/apps/plugins/xworld/video.c:503:35: warning: unused parameter 'v' [-Wunused-parameter]
  1995. void video_fillPage(struct Video* v, uint8_t pageId, uint8_t color) {
  1996. ^
  1997. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_copyPage':
  1998. /home/franklin/rockbox/apps/plugins/xworld/video.c:552:11: warning: assignment makes pointer from integer without a cast
  1999. p = getPagePtr(srcPageId);
  2000. ^
  2001. /home/franklin/rockbox/apps/plugins/xworld/video.c:553:11: warning: assignment makes pointer from integer without a cast
  2002. q = getPagePtr(dstPageId);
  2003. ^
  2004. /home/franklin/rockbox/apps/plugins/xworld/video.c:557:11: warning: assignment makes pointer from integer without a cast
  2005. p = getPagePtr(srcPageId & 3);
  2006. ^
  2007. /home/franklin/rockbox/apps/plugins/xworld/video.c:558:11: warning: assignment makes pointer from integer without a cast
  2008. q = getPagePtr(dstPageId);
  2009. ^
  2010. /home/franklin/rockbox/apps/plugins/xworld/video.c:541:35: warning: unused parameter 'v' [-Wunused-parameter]
  2011. void video_copyPage(struct Video* v, uint8_t srcPageId, uint8_t dstPageId, int16_t vscroll) {
  2012. ^
  2013. /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
  2014. /home/franklin/rockbox/apps/plugins/xworld/video.c:632:13: error: 'NUM_COLORS' undeclared here (not in a function)
  2015. uint8_t pal[NUM_COLORS * 3]; //3 = BYTES_PER_PIXEL
  2016. ^
  2017. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_changePal':
  2018. /home/franklin/rockbox/apps/plugins/xworld/video.c:638:18: error: 'res' undeclared (first use in this function)
  2019. uint8_t *p = res->segPalettes + palNum * 32; //colors are coded on 2bytes (565) for 16 colors = 32
  2020. ^
  2021. /home/franklin/rockbox/apps/plugins/xworld/video.c:654:5: error: 'sys' undeclared (first use in this function)
  2022. sys->setPalette(0, NUM_COLORS, pal);
  2023. ^
  2024. /home/franklin/rockbox/apps/plugins/xworld/video.c:655:5: error: 'currentPaletteId' undeclared (first use in this function)
  2025. currentPaletteId = palNum;
  2026. ^
  2027. /home/franklin/rockbox/apps/plugins/xworld/video.c:633:36: warning: unused parameter 'v' [-Wunused-parameter]
  2028. void video_changePal(struct Video* v, uint8_t palNum) {
  2029. ^
  2030. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_updateDisplay':
  2031. /home/franklin/rockbox/apps/plugins/xworld/video.c:684:29: warning: assignment makes pointer from integer without a cast
  2032. v->_curPagePtr2 = getPagePtr(pageId);
  2033. ^
  2034. /home/franklin/rockbox/apps/plugins/xworld/video.c:690:9: warning: implicit declaration of function 'changePal' [-Wimplicit-function-declaration]
  2035. changePal(v->paletteIdRequested);
  2036. ^
  2037. /home/franklin/rockbox/apps/plugins/xworld/video.c:697:5: error: 'sys' undeclared (first use in this function)
  2038. sys->copyRect(0, 0, 320, 200, v->_curPagePtr2, 160);
  2039. ^
  2040. /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
  2041. /home/franklin/rockbox/apps/plugins/xworld/video.c:704:40: error: unknown type name 'Serializer'
  2042. void video_saveOrLoad(struct Video* v, Serializer &ser) {
  2043. ^
  2044. /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_calcStep':
  2045. /home/franklin/rockbox/apps/plugins/xworld/video.c:276:1: warning: control reaches end of non-void function [-Wreturn-type]
  2046. }
  2047. ^
  2048. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/video.o] Error 1
  2049. In file included from /usr/include/stdlib.h:42:0,
  2050. from /home/franklin/rockbox/apps/plugin.h:35,
  2051. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  2052. from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
  2053. from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:
  2054. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  2055. unsigned int __w_retcode:8;
  2056. ^
  2057. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  2058. unsigned int __w_coredump:1;
  2059. ^
  2060. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  2061. unsigned int __w_termsig:7;
  2062. ^
  2063. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  2064. unsigned int __w_stopsig:8; /* Stopping signal. */
  2065. ^
  2066. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  2067. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  2068. ^
  2069. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  2070. from /home/franklin/rockbox/apps/plugin.h:55,
  2071. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  2072. from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
  2073. from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:
  2074. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  2075. #error "Missing OS swap defines."
  2076. ^
  2077. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  2078. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  2079. { return __swap16_os(x); }
  2080. ^
  2081. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  2082. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  2083. { return __swap32_os(x); }
  2084. ^
  2085. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  2086. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  2087. { return __swap64_os(x); }
  2088. ^
  2089. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  2090. from /home/franklin/rockbox/apps/screen_access.h:27,
  2091. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  2092. from /home/franklin/rockbox/apps/action.h:25,
  2093. from /home/franklin/rockbox/apps/plugin.h:61,
  2094. from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
  2095. from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
  2096. from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:
  2097. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  2098. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  2099. File(bool gzipped = false);
  2100. ^
  2101. In file included from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:0:
  2102. /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
  2103. typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
  2104. ^
  2105. /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
  2106. Resource *res;
  2107. ^
  2108. /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
  2109. System *sys;
  2110. ^
  2111. /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
  2112. Polygon polygon;
  2113. ^
  2114. /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
  2115. Ptr _pData;
  2116. ^
  2117. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
  2118. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  2119. ^
  2120. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
  2121. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  2122. ^
  2123. /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
  2124. void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
  2125. ^
  2126. /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
  2127. void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
  2128. ^
  2129. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
  2130. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  2131. ^
  2132. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
  2133. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  2134. ^
  2135. /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
  2136. void video_saveOrLoad(struct Video* v, Serializer &ser);
  2137. ^
  2138. make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/video_data.o] Error 1
  2139. In file included from /usr/include/stdlib.h:42:0,
  2140. from /home/franklin/rockbox/apps/plugin.h:35,
  2141. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:19:
  2142. /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  2143. unsigned int __w_retcode:8;
  2144. ^
  2145. /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  2146. unsigned int __w_coredump:1;
  2147. ^
  2148. /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  2149. unsigned int __w_termsig:7;
  2150. ^
  2151. /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  2152. unsigned int __w_stopsig:8; /* Stopping signal. */
  2153. ^
  2154. /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  2155. unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
  2156. ^
  2157. In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
  2158. from /home/franklin/rockbox/apps/plugin.h:55,
  2159. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:19:
  2160. /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
  2161. #error "Missing OS swap defines."
  2162. ^
  2163. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
  2164. /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
  2165. { return __swap16_os(x); }
  2166. ^
  2167. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
  2168. /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
  2169. { return __swap32_os(x); }
  2170. ^
  2171. /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
  2172. /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
  2173. { return __swap64_os(x); }
  2174. ^
  2175. In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
  2176. from /home/franklin/rockbox/apps/screen_access.h:27,
  2177. from /home/franklin/rockbox/apps/gui/viewport.h:29,
  2178. from /home/franklin/rockbox/apps/action.h:25,
  2179. from /home/franklin/rockbox/apps/plugin.h:61,
  2180. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:19:
  2181. /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
  2182. /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
  2183. File(bool gzipped = false);
  2184. ^
  2185. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:23:0,
  2186. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
  2187. /home/franklin/rockbox/apps/plugins/xworld/vm.h:112:44: error: unknown type name 'Serializer'
  2188. void vm_saveOrLoad(struct VirtualMachine*, Serializer &ser);
  2189. ^
  2190. /home/franklin/rockbox/apps/plugins/xworld/vm.h:118:5: error: expected specifier-qualifier-list before 'typedef'
  2191. typedef void (VirtualMachine::*OpcodeStub)();
  2192. ^
  2193. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:24:0,
  2194. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
  2195. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
  2196. MixerChunk chunk;
  2197. ^
  2198. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
  2199. System *sys;
  2200. ^
  2201. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
  2202. MixerChannel _channels[AUDIO_NUM_CHANNELS];
  2203. ^
  2204. /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
  2205. Mixer(System *stub);
  2206. ^
  2207. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:25:0,
  2208. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
  2209. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:35:2: error: unknown type name 'SfxInstrument'
  2210. SfxInstrument samples[15];
  2211. ^
  2212. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:56:2: error: unknown type name 'Mixer'
  2213. Mixer *mixer;
  2214. ^
  2215. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:57:2: error: unknown type name 'Resource'
  2216. Resource *res;
  2217. ^
  2218. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:58:2: error: unknown type name 'System'
  2219. System *sys;
  2220. ^
  2221. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:64:2: error: unknown type name 'SfxModule'
  2222. SfxModule _sfxMod;
  2223. ^
  2224. /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:67:2: error: expected specifier-qualifier-list before 'SfxPlayer'
  2225. SfxPlayer(Mixer *mix, Resource *res, System *stub);
  2226. ^
  2227. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
  2228. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
  2229. /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
  2230. void res_setupPart(struct Resource*uint16_t ptrId);
  2231. ^
  2232. /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
  2233. void res_saveOrLoad(struct Resource*, Serializer &ser);
  2234. ^
  2235. In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:27:0,
  2236. from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
  2237. /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
  2238. typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
  2239. ^
  2240. /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
  2241. Resource *res;
  2242. ^
  2243. /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
  2244. System *sys;
  2245. ^
  2246. /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
  2247. Polygon polygon;
  2248. ^
  2249. /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
  2250. Ptr _pData;
  2251. ^
  2252. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
  2253. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  2254. ^
  2255. /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
  2256. void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
  2257. ^
  2258. /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
  2259. void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
  2260. ^
  2261. /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
  2262. void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
  2263. ^
  2264. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
  2265. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  2266. ^
  2267. /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
  2268. int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
  2269. ^
  2270. /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
  2271. void video_saveOrLoad(struct Video* v, Serializer &ser);
  2272. ^
  2273. /home/franklin/rockbox/apps/plugins/xworld/xworld.c: In function 'plugin_start':
  2274. /home/franklin/rockbox/apps/plugins/xworld/xworld.c:39:5: error: unknown type name 'System'
  2275. System sys;
  2276. ^
  2277. /home/franklin/rockbox/apps/plugins/xworld/xworld.c:40:23: warning: passing argument 2 of 'engine_create' from incompatible pointer type
  2278. engine_create(&e, &sys, dataPath, savePath);
  2279. ^
  2280. In file included from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:0:
  2281. /home/franklin/rockbox/apps/plugins/xworld/engine.h:47:6: note: expected 'struct System *' but argument is of type 'int *'
  2282. void engine_create(struct Engine* e, struct System* stub, const char* dataDir, const char* saveDir);
  2283. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement