Advertisement
Guest User

Untitled

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