Advertisement
Guest User

Untitled

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