Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/file.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:23:0,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/vm.h:112:44: error: unknown type name 'Serializer'
- void vm_saveOrLoad(struct VirtualMachine*, Serializer &ser);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/vm.h:118:5: error: expected specifier-qualifier-list before 'typedef'
- typedef void (VirtualMachine::*OpcodeStub)();
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:24:0,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
- MixerChunk chunk;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
- MixerChannel _channels[AUDIO_NUM_CHANNELS];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
- Mixer(System *stub);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:25:0,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:35:2: error: unknown type name 'SfxInstrument'
- SfxInstrument samples[15];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:56:2: error: unknown type name 'Mixer'
- Mixer *mixer;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:57:2: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:58:2: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:64:2: error: unknown type name 'SfxModule'
- SfxModule _sfxMod;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:67:2: error: expected specifier-qualifier-list before 'SfxPlayer'
- SfxPlayer(Mixer *mix, Resource *res, System *stub);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
- void res_setupPart(struct Resource*uint16_t ptrId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
- void res_saveOrLoad(struct Resource*, Serializer &ser);
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/file.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:27:0,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
- typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
- Polygon polygon;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
- Ptr _pData;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
- void video_saveOrLoad(struct Video* v, Serializer &ser);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.c:21:0:
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
- EntryType type;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
- File *_stream;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
- Mode _mode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
- Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_create':
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:34:37: error: 'struct Engine' has no member named 'dataDir'
- res_create(&e->res, &e->video, e->dataDir);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_run':
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:42:19: error: dereferencing pointer to incomplete type
- while (!e->sys->input.quit) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:55:6: error: conflicting types for 'engine_create'
- void engine_create(struct System* stub, struct Engine*, const char* dataDir, const char* saveDir)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:31:6: note: previous definition of 'engine_create' was here
- void engine_create(struct Engine* e, struct System* stub, const char* dataDir, const char* saveDir)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_create':
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:55:48: error: parameter name omitted
- void engine_create(struct System* stub, struct Engine*, const char* dataDir, const char* saveDir)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:57:5: error: 'e' undeclared (first use in this function)
- e->sys=stub;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:57:5: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_init':
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:61:1: error: number of arguments doesn't match prototype
- void engine_init() {
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/engine.h:50:6: error: prototype declaration
- void engine_init(struct Engine*);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:65:5: warning: implicit declaration of function 'sys_init' [-Wimplicit-function-declaration]
- sys_init("Out Of This World");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:67:17: error: 'e' undeclared (first use in this function)
- video_init(&e->video);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:69:5: error: too few arguments to function 'res_allocMemBlock'
- res_allocMemBlock();
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:96:6: note: declared here
- void res_allocMemBlock(struct Resource*);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:71:5: error: too few arguments to function 'res_readEntries'
- res_readEntries();
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:90:6: note: declared here
- void res_readEntries(struct Resource*);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_processInput':
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:105:15: error: dereferencing pointer to incomplete type
- if (e->sys->input.load) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:107:15: error: dereferencing pointer to incomplete type
- e->sys->input.load = false;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:109:15: error: dereferencing pointer to incomplete type
- if (e->sys->input.save) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:111:15: error: dereferencing pointer to incomplete type
- e->sys->input.save = false;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:113:15: error: dereferencing pointer to incomplete type
- if (e->sys->input.fastMode) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:114:14: error: 'struct VirtualMachine' has no member named '_fastMode'
- e->vm._fastMode = !e->vm._fastMode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:114:33: error: 'struct VirtualMachine' has no member named '_fastMode'
- e->vm._fastMode = !e->vm._fastMode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:115:15: error: dereferencing pointer to incomplete type
- e->sys->input.fastMode = false;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:117:15: error: dereferencing pointer to incomplete type
- if (e->sys->input.stateSlot != 0) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:118:45: error: dereferencing pointer to incomplete type
- int8_t slot = e->_stateSlot + e->sys->input.stateSlot;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:121:62: error: '_stateSlot' undeclared (first use in this function)
- debug(DBG_INFO, "Current game state slot is %d", _stateSlot);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:123:15: error: dereferencing pointer to incomplete type
- e->sys->input.stateSlot = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:127:6: error: conflicting types for 'engine_makeGameStateName'
- void engine_makeGameStateName(struct Engine* e, uint8_t slot, char *buf, int sz) {
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/engine.h:54:6: note: previous declaration of 'engine_makeGameStateName' was here
- void engine_makeGameStateName(struct Engine*, uint8_t slot, char *buf);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_saveGameState':
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:135:5: error: unknown type name 'File'
- File f(true);
- ^
- In file included from /home/franklin/rockbox/apps/plugin.h:30:0,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:135:12: error: expected declaration specifiers or '...' before numeric constant
- File f(true);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:136:10: error: 'f' undeclared (first use in this function)
- if (!f.open(stateFile, _saveDir, "wb")) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:136:28: error: '_saveDir' undeclared (first use in this function)
- if (!f.open(stateFile, _saveDir, "wb")) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:140:25: warning: multi-character character constant [-Wmultichar]
- f.writeUint32BE('AWSV');
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:141:25: error: 'Serializer' undeclared (first use in this function)
- f.writeUint16BE(Serializer::CUR_VER);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:141:35: error: expected ')' before ':' token
- f.writeUint16BE(Serializer::CUR_VER);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:147:20: error: expected ';' before 's'
- Serializer s(&f, Serializer::SM_SAVE, res._memPtrStart);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:148:9: error: 'vm' undeclared (first use in this function)
- vm.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:148:23: error: 's' undeclared (first use in this function)
- vm.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:149:9: error: 'res' undeclared (first use in this function)
- res.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:150:9: error: 'video' undeclared (first use in this function)
- video.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:151:9: error: 'player' undeclared (first use in this function)
- player.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:152:9: error: 'mixer' undeclared (first use in this function)
- mixer.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:156:55: error: '_stateSlot' undeclared (first use in this function)
- debug(DBG_INFO, "Saved state to slot %d", _stateSlot);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c: In function 'engine_loadGameState':
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:163:5: error: too few arguments to function 'engine_makeGameStateName'
- engine_makeGameStateName(e, slot, stateFile);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:127:6: note: declared here
- void engine_makeGameStateName(struct Engine* e, uint8_t slot, char *buf, int sz) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:164:5: error: unknown type name 'File'
- File f(true);
- ^
- In file included from /home/franklin/rockbox/apps/plugin.h:30:0,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/engine.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:164:12: error: expected declaration specifiers or '...' before numeric constant
- File f(true);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:165:10: error: 'f' undeclared (first use in this function)
- if (!f.open(stateFile, e->_saveDir, "rb")) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:169:19: warning: multi-character character constant [-Wmultichar]
- if (id != 'AWSV') {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:173:13: error: 'player' undeclared (first use in this function)
- player.stop();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:174:13: error: 'mixer' undeclared (first use in this function)
- mixer.stopAll();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:13: error: unknown type name 'Serializer'
- Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:26: error: expected declaration specifiers or '...' before '&' token
- Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:30: error: unknown type name 'Serializer'
- Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:51: error: unknown type name 'res'
- Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:181:69: error: expected declaration specifiers or '...' before 'ver'
- Serializer s(&f, Serializer::SM_LOAD, res._memPtrStart, ver);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:182:13: error: 'vm' undeclared (first use in this function)
- vm.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:182:27: error: 's' undeclared (first use in this function)
- vm.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:183:13: error: 'res' undeclared (first use in this function)
- res.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:184:13: error: 'video' undeclared (first use in this function)
- video.saveOrLoad(s);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:176:22: warning: unused variable 'ver' [-Wunused-variable]
- uint16_t ver = f.readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/engine.c:191:58: error: '_stateSlot' undeclared (first use in this function)
- debug(DBG_INFO, "Loaded state from slot %d", _stateSlot);
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/engine.o] Error 1
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:24:2: error: expected specifier-qualifier-list before 'File_impl'
- File_impl() : _ioErr(false) {}
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:32:16: error: expected identifier or '(' before ':' token
- struct stdFile : File_impl {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:69:17: error: expected identifier or '(' before ':' token
- struct zlibFile : File_impl {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:106:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- File::File(bool gzipped) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:114:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- File::~File() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:119:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- bool File::open(const char *filename, const char *directory, const char *mode) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:133:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void File::close() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:137:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- bool File::ioErr() const {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:141:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void File::seek(int32_t off) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:145:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void File::read(void *ptr, uint32_t size) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:149:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- uint8_t File::readByte() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:155:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- uint16_t File::readUint16BE() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:161:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- uint32_t File::readUint32BE() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:167:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void File::write(void *ptr, uint32_t size) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:171:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void File::writeByte(uint8_t b) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:175:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void File::writeUint16BE(uint16_t n) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:180:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void File::writeUint32BE(uint32_t n) {
- ^
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/mixer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/file.o] Error 1
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/mixer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/mixer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/bank.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/bank.h:43:36: error: unknown type name 'MemEntry'
- bool bank_read(struct Bank*, const MemEntry *me, uint8_t *buf);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/bank.c:22:0:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
- void res_setupPart(struct Resource*uint16_t ptrId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
- void res_saveOrLoad(struct Resource*, Serializer &ser);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:30:6: error: conflicting types for 'bank_read'
- bool bank_read(struct Bank* b, const MemEntry *me, uint8_t *buf) {
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/bank.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/bank.h:43:6: note: previous declaration of 'bank_read' was here
- bool bank_read(struct Bank*, const MemEntry *me, uint8_t *buf);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_read':
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:36:10: error: 'f' undeclared (first use in this function)
- if (!f.open(bankName, b->_dataDir))
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:36:10: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:49:9: error: '_startBuf' undeclared (first use in this function)
- _startBuf = buf;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:35:9: warning: unused variable 'fd' [-Wunused-variable]
- int fd;
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/intern.h:25:0,
- from /home/franklin/rockbox/apps/plugins/xworld/file.h:22,
- from /home/franklin/rockbox/firmware/export/scroll_engine.h:30,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/bank.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_decUnk1':
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:62:29: error: 'struct Bank' has no member named 'b'
- assert(b->_oBuf >= b->b->_iBuf && b->_oBuf >= b->_startBuf);
- ^
- /home/franklin/rockbox/firmware/include/assert.h:14:27: note: in definition of macro 'assert'
- #define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:63:9: warning: implicit declaration of function 'getCode' [-Wimplicit-function-declaration]
- *b->_oBuf = (uint8_t)getCode(8);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_decUnk2':
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:78:23: error: '_oBuf' undeclared (first use in this function)
- *b->_oBuf = *(_oBuf + i);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_unpack':
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:97:17: warning: implicit declaration of function 'decUnk1' [-Wimplicit-function-declaration]
- decUnk1(b, 3, 0);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:99:17: warning: implicit declaration of function 'decUnk2' [-Wimplicit-function-declaration]
- decUnk2(b, 8);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/bank.c: In function 'bank_nextChunk':
- /home/franklin/rockbox/apps/plugins/xworld/bank.c:136:9: warning: implicit declaration of function 'rcr' [-Wimplicit-function-declaration]
- CF = rcr(true);
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/bank.o] Error 1
- In file included from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
- MixerChunk chunk;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
- MixerChannel _channels[AUDIO_NUM_CHANNELS];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
- Mixer(System *stub);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/mixer.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
- EntryType type;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
- File *_stream;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
- Mode _mode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
- Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:35:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- Mixer::Mixer(System *stub)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:39:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::init() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:45:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::free() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:51:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::playChannel(uint8_t channel, const MixerChunk *mc, uint16_t freq, uint8_t volume) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:67:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::stopChannel(uint8_t channel) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:74:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::setChannelVolume(uint8_t channel, uint8_t volume) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:81:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::stopAll() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:95:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::mix(int8_t *buf, int len) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:152:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::mixCallback(void *param, uint8_t *buf, int len) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:156:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Mixer::saveOrLoad(Serializer &ser) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:24:15: warning: 'addclamp' defined but not used [-Wunused-function]
- static int8_t addclamp(int a, int b) {
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/mixer.o] Error 1
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/parts.h:4,
- from /home/franklin/rockbox/apps/plugins/xworld/parts.c:1:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/parts.h:4,
- from /home/franklin/rockbox/apps/plugins/xworld/parts.c:1:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/resource.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/parts.h:4,
- from /home/franklin/rockbox/apps/plugins/xworld/parts.c:1:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/serializer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/resource.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/serializer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/serializer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/resource.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/parts.o] Error 1
- make: *** No rule to make target '/home/franklin/rockbox/build_sim/apps/plugins/xworld/staticres.o', needed by '/home/franklin/rockbox/build_sim/apps/plugins/xworld/xworld.rock'.
- In file included from /home/franklin/rockbox/apps/plugins/xworld/serializer.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
- EntryType type;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
- File *_stream;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
- Mode _mode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
- Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:23:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- Serializer::Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:27:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Serializer::saveOrLoadEntries(Entry *entry) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:41:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Serializer::saveEntries(Entry *entry) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:74:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Serializer::loadEntries(Entry *entry) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:107:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Serializer::saveInt(uint8_t es, void *p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:121:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void Serializer::loadInt(uint8_t es, void *p) {
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/serializer.o] Error 1
- In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
- void res_setupPart(struct Resource*uint16_t ptrId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
- void res_saveOrLoad(struct Resource*, Serializer &ser);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:23:0:
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
- EntryType type;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
- File *_stream;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
- Mode _mode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
- Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:24:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
- typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
- Polygon polygon;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
- Ptr _pData;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
- void video_saveOrLoad(struct Video* v, Serializer &ser);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_create':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:34:8: error: 'struct Resource' has no member named 'vid'
- res->vid=vid;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_readBank':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:41:23: error: '_memList' undeclared (first use in this function)
- uint16_t n = me - _memList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:41:23: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:44:5: error: unknown type name 'Bank'
- Bank bk(_dataDir);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:44:5: warning: parameter names (without types) in function declaration
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:45:12: error: request for member 'read' in something not a structure or union
- if (!bk.read(me, dstBuf)) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:40:36: warning: unused parameter 'res' [-Wunused-parameter]
- void res_readBank(struct Resource* res, const MemEntry *me, uint8_t *dstBuf) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'resTypeToString':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:53: warning: unused parameter 'res' [-Wunused-parameter]
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_readEntries':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:78:5: error: unknown type name 'File'
- File f;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:82:11: error: request for member 'open' in something not a structure or union
- if (!f.open("memlist.bin", _dataDir)) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:82:32: error: '_dataDir' undeclared (first use in this function)
- if (!f.open("memlist.bin", _dataDir)) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:91:5: error: '_numMemList' undeclared (first use in this function)
- _numMemList = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:92:26: error: '_memList' undeclared (first use in this function)
- MemEntry *memEntry = _memList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:95:28: error: request for member 'readByte' in something not a structure or union
- memEntry->state = f.readByte();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:96:27: error: request for member 'readByte' in something not a structure or union
- memEntry->type = f.readByte();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:97:32: error: request for member 'readUint16BE' in something not a structure or union
- memEntry->bufPtr = 0; f.readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:98:27: error: request for member 'readUint16BE' in something not a structure or union
- memEntry->unk4 = f.readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:99:30: error: request for member 'readByte' in something not a structure or union
- memEntry->rankNum = f.readByte();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:100:29: error: request for member 'readByte' in something not a structure or union
- memEntry->bankId = f.readByte();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:101:33: error: request for member 'readUint32BE' in something not a structure or union
- memEntry->bankOffset = f.readUint32BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:102:27: error: request for member 'readUint16BE' in something not a structure or union
- memEntry->unkC = f.readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:103:33: error: request for member 'readUint16BE' in something not a structure or union
- memEntry->packedSize = f.readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:104:28: error: request for member 'readUint16BE' in something not a structure or union
- memEntry->unk10 = f.readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:105:27: error: request for member 'readUint16BE' in something not a structure or union
- memEntry->size = f.readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:131:31: warning: passing argument 1 of 'resTypeToString' makes pointer from integer without a cast
- resTypeToString(memEntry->type),
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: expected 'struct Resource *' but argument is of type 'uint8_t'
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:131:15: error: too few arguments to function 'resTypeToString'
- resTypeToString(memEntry->type),
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:156:31: warning: passing argument 1 of 'resTypeToString' makes pointer from integer without a cast
- resTypeToString(i),
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: expected 'struct Resource *' but argument is of type 'int'
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:156:15: error: too few arguments to function 'resTypeToString'
- resTypeToString(i),
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:167:64: warning: passing argument 1 of 'resTypeToString' makes pointer from integer without a cast
- debug(DBG_RES,"Total %-17s files: %3d",resTypeToString(i),resourceUnitStats[i][RES_SIZE]+resourceUnitStats[i][RES_COMPRESSED]);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: expected 'struct Resource *' but argument is of type 'int'
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:167:48: error: too few arguments to function 'resTypeToString'
- debug(DBG_RES,"Total %-17s files: %3d",resTypeToString(i),resourceUnitStats[i][RES_SIZE]+resourceUnitStats[i][RES_COMPRESSED]);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:78:10: warning: variable 'f' set but not used [-Wunused-but-set-variable]
- File f;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:77:39: warning: unused parameter 'res' [-Wunused-parameter]
- void res_readEntries(struct Resource* res) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_loadMarkedAsNeeded':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:183:22: error: '_numMemList' undeclared (first use in this function)
- uint16_t i = _numMemList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:184:24: error: '_memList' undeclared (first use in this function)
- MemEntry *it = _memList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:203:31: error: '_vidCurPtr' undeclared (first use in this function)
- loadDestination = _vidCurPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:205:31: error: '_scriptCurPtr' undeclared (first use in this function)
- loadDestination = _scriptCurPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:206:28: error: '_vidBakPtr' undeclared (first use in this function)
- if (me->size > _vidBakPtr - _scriptCurPtr) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:218:104: error: '_memPtrStart' undeclared (first use in this function)
- 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);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:219:13: warning: implicit declaration of function 'readBank' [-Wimplicit-function-declaration]
- readBank(me, loadDestination);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_invalidateRes':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:236:20: error: '_memList' undeclared (first use in this function)
- MemEntry *me = _memList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:237:18: error: '_numMemList' undeclared (first use in this function)
- uint16_t i = _numMemList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:244:5: error: '_scriptCurPtr' undeclared (first use in this function)
- _scriptCurPtr = _scriptBakPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:244:21: error: '_scriptBakPtr' undeclared (first use in this function)
- _scriptCurPtr = _scriptBakPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:235:41: warning: unused parameter 'res' [-Wunused-parameter]
- void res_invalidateRes(struct Resource* res) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_invalidateAll':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:248:20: error: '_memList' undeclared (first use in this function)
- MemEntry *me = _memList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:249:18: error: '_numMemList' undeclared (first use in this function)
- uint16_t i = _numMemList;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:254:5: error: '_scriptCurPtr' undeclared (first use in this function)
- _scriptCurPtr = _memPtrStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:254:21: error: '_memPtrStart' undeclared (first use in this function)
- _scriptCurPtr = _memPtrStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:247:41: warning: unused parameter 'res' [-Wunused-parameter]
- void res_invalidateAll(struct Resource* res) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_loadPartsOrMemoryEntry':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:266:22: error: '_numMemList' undeclared (first use in this function)
- if (resourceId > _numMemList) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:268:9: error: 'requestedNextPart' undeclared (first use in this function)
- requestedNextPart = resourceId;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:272:25: error: '_memList' undeclared (first use in this function)
- MemEntry *me = &_memList[resourceId];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:276:13: warning: implicit declaration of function 'loadMarkedAsNeeded' [-Wimplicit-function-declaration]
- loadMarkedAsNeeded();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:264:50: warning: unused parameter 'res' [-Wunused-parameter]
- void res_loadPartsOrMemoryEntry(struct Resource* res, uint16_t resourceId) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_setupPart':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:290:19: error: 'currentPartId' undeclared (first use in this function)
- if (partId == currentPartId)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:304:5: warning: implicit declaration of function 'invalidateAll' [-Wimplicit-function-declaration]
- invalidateAll();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:306:5: error: '_memList' undeclared (first use in this function)
- _memList[paletteIndex].state = MEMENTRY_STATE_LOAD_ME;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:318:5: error: 'segPalettes' undeclared (first use in this function)
- segPalettes = _memList[paletteIndex].bufPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:319:5: error: 'segBytecode' undeclared (first use in this function)
- segBytecode = _memList[codeIndex].bufPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:320:5: error: 'segCinematic' undeclared (first use in this function)
- segCinematic = _memList[videoCinematicIndex].bufPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:327:9: error: '_segVideo2' undeclared (first use in this function)
- _segVideo2 = _memList[video2Index].bufPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:331:74: error: too few arguments to function 'resTypeToString'
- debug(DBG_RES,"Loaded resource %d (%s) in segPalettes.",paletteIndex,resTypeToString(_memList[paletteIndex].type));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:332:71: error: too few arguments to function 'resTypeToString'
- debug(DBG_RES,"Loaded resource %d (%s) in segBytecode.",codeIndex,resTypeToString(_memList[codeIndex].type));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:333:82: error: too few arguments to function 'resTypeToString'
- debug(DBG_RES,"Loaded resource %d (%s) in segCinematic.",videoCinematicIndex,resTypeToString(_memList[videoCinematicIndex].type));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:336:76: error: too few arguments to function 'resTypeToString'
- debug(DBG_RES,"Loaded resource %d (%s) in _segVideo2.",video2Index,resTypeToString(_memList[video2Index].type));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:51:20: note: declared here
- static const char *resTypeToString(struct Resource* res, unsigned int type)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:344:5: error: '_scriptBakPtr' undeclared (first use in this function)
- _scriptBakPtr = _scriptCurPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:344:21: error: '_scriptCurPtr' undeclared (first use in this function)
- _scriptBakPtr = _scriptCurPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:286:37: warning: unused parameter 'res' [-Wunused-parameter]
- void res_setupPart(struct Resource* res, uint16_t partId) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_allocMemBlock':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:347:1: error: number of arguments doesn't match prototype
- void res_allocMemBlock() {
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:96:6: error: prototype declaration
- void res_allocMemBlock(struct Resource*);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:349:5: error: '_scriptBakPtr' undeclared (first use in this function)
- _scriptBakPtr = _scriptCurPtr = _memPtrStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:349:21: error: '_scriptCurPtr' undeclared (first use in this function)
- _scriptBakPtr = _scriptCurPtr = _memPtrStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:349:37: error: '_memPtrStart' undeclared (first use in this function)
- _scriptBakPtr = _scriptCurPtr = _memPtrStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:350:5: error: '_vidBakPtr' undeclared (first use in this function)
- _vidBakPtr = _vidCurPtr = _memPtrStart + MEM_BLOCK_SIZE - 0x800 * 16; //0x800 = 2048, so we have 32KB free for vidBack and vidCur
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:350:18: error: '_vidCurPtr' undeclared (first use in this function)
- _vidBakPtr = _vidCurPtr = _memPtrStart + MEM_BLOCK_SIZE - 0x800 * 16; //0x800 = 2048, so we have 32KB free for vidBack and vidCur
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:351:5: error: '_useSegVideo2' undeclared (first use in this function)
- _useSegVideo2 = false;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: In function 'res_freeMemBlock':
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:354:1: error: number of arguments doesn't match prototype
- void res_freeMemBlock() {
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/resource.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:97:6: error: prototype declaration
- void res_freeMemBlock(struct Resource*);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/resource.c:358:32: error: expected ')' before '&' token
- void res_saveOrLoad(Serializer &ser) {
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/resource.o] Error 1
- /home/franklin/rockbox/apps/plugins/xworld/util.c:19:19: fatal error: cstdarg: No such file or directory
- #include <cstdarg>
- ^
- compilation terminated.
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/util.o] Error 1
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/sys.c:1:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:35:2: error: unknown type name 'SfxInstrument'
- SfxInstrument samples[15];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:56:2: error: unknown type name 'Mixer'
- Mixer *mixer;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:57:2: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:58:2: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:64:2: error: unknown type name 'SfxModule'
- SfxModule _sfxMod;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:67:2: error: expected specifier-qualifier-list before 'SfxPlayer'
- SfxPlayer(Mixer *mix, Resource *res, System *stub);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
- MixerChunk chunk;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
- MixerChannel _channels[AUDIO_NUM_CHANNELS];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
- Mixer(System *stub);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:21:0:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
- void res_setupPart(struct Resource*uint16_t ptrId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
- void res_saveOrLoad(struct Resource*, Serializer &ser);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:22:0:
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
- EntryType type;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
- File *_stream;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
- Mode _mode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
- Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:26:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- SfxPlayer::SfxPlayer(Mixer *mix, Resource *res, System *stub)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:30:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::init() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:34:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::free() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:39:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::setEventsDelay(uint16_t delay) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:45:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::loadSfxModule(uint16_t resNum, uint16_t delay, uint8_t pos) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:76:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::prepareInstruments(const uint8_t *p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:98:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::start() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:105:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::stop() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:114:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::handleEvents() {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:136:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::handlePattern(uint8_t channel, const uint8_t *data) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:203:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- uint32_t SfxPlayer::eventsCallback(uint32_t interval, void *param) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:209:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
- void SfxPlayer::saveOrLoad(Serializer &ser) {
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/sys.c:1:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/sfxplayer.o] Error 1
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/sys.c:1:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:4:22: warning: 'struct System' declared inside parameter list
- void sys_init(struct System* sys, const char* title)
- ^
- /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
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_init':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:8:16: error: dereferencing pointer to incomplete type
- memset(&sys->input, 0, sizeof(input));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:8:35: error: 'input' undeclared (first use in this function)
- memset(&sys->input, 0, sizeof(input));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:8:35: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:7:12: warning: unused variable 'y' [-Wunused-variable]
- int x, y;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:7:9: warning: unused variable 'x' [-Wunused-variable]
- int x, y;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:10:25: warning: 'struct System' declared inside parameter list
- void sys_destroy(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_destroy':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:10:33: warning: unused parameter 'sys' [-Wunused-parameter]
- void sys_destroy(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:14:28: warning: 'struct System' declared inside parameter list
- void sys_setPallete(struct System* sys, uint8_t start, uint8_t n, const uint8_t *buf)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_setPallete':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:23:9: error: 'pallete' undeclared (first use in this function)
- pallete[i]=LCD_RGBPACK(c[0],c[1],c[2]);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:14:36: warning: unused parameter 'sys' [-Wunused-parameter]
- void sys_setPallete(struct System* sys, uint8_t start, uint8_t n, const uint8_t *buf)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:26:26: warning: 'struct System' declared inside parameter list
- 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)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_copyRect':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:29:12: error: 'height' undeclared (first use in this function)
- while (height--) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:31:29: error: 'width' undeclared (first use in this function)
- for (int i = 0; i < width / 2; ++i) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:34:39: error: dereferencing pointer to incomplete type
- rb->lcd_set_foreground(sys->pallete[pix1]);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:36:39: error: dereferencing pointer to incomplete type
- rb->lcd_set_foreground(sys->pallete[pix2]);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:33:21: warning: variable 'pix2' set but not used [-Wunused-but-set-variable]
- uint8_t pix2=*(buf+i)&0xF;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:32:21: warning: variable 'pix1' set but not used [-Wunused-but-set-variable]
- uint8_t pix1=*(buf+i)>>4;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:26:72: warning: unused parameter 'w' [-Wunused-parameter]
- 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)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:26:84: warning: unused parameter 'h' [-Wunused-parameter]
- 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)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:44:31: warning: 'struct System' declared inside parameter list
- void sys_processEvents(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_processEvents':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:50:12: error: dereferencing pointer to incomplete type
- sys->input.dirMask|=DIR_UP;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:50:29: error: 'DIR_UP' undeclared (first use in this function)
- sys->input.dirMask|=DIR_UP;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:54:12: error: dereferencing pointer to incomplete type
- sys->input.dirMask|=DIR_DOWN;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:54:29: error: 'DIR_DOWN' undeclared (first use in this function)
- sys->input.dirMask|=DIR_DOWN;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:58:12: error: dereferencing pointer to incomplete type
- sys->input.dirMask|=DIR_LEFT;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:58:29: error: 'DIR_LEFT' undeclared (first use in this function)
- sys->input.dirMask|=DIR_LEFT;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:62:12: error: dereferencing pointer to incomplete type
- sys->input.dirMask|=DIR_RIGHT;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:62:29: error: 'DIR_RIGHT' undeclared (first use in this function)
- sys->input.dirMask|=DIR_RIGHT;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:65:23: warning: 'struct System' declared inside parameter list
- void sys_sleep(struct System* sys, int32_t duration)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:70:34: warning: 'struct System' declared inside parameter list
- uint32_t sys_getTimeStamp(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:76:41: error: unknown type name 'AudioCallback'
- void sys_startAudio(struct System* sys, AudioCallback callback, void *param)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:79:27: warning: 'struct System' declared inside parameter list
- void sys_stopAudio(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_stopAudio':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:79:35: warning: unused parameter 'sys' [-Wunused-parameter]
- void sys_stopAudio(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:82:41: warning: 'struct System' declared inside parameter list
- uint32_t sys_getOutputSampleRate(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_getOutputSampleRate':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:82:49: warning: unused parameter 'sys' [-Wunused-parameter]
- uint32_t sys_getOutputSampleRate(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:87:56: error: unknown type name 'TimerCallback'
- void *sys_addTimer(struct System* sys, uint32_t delay, TimerCallback callback, void *param)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:90:29: warning: 'struct System' declared inside parameter list
- void sys_removeTimer(struct System* sys, void *timerId)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_removeTimer':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:90:37: warning: unused parameter 'sys' [-Wunused-parameter]
- void sys_removeTimer(struct System* sys, void *timerId)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:90:48: warning: unused parameter 'timerId' [-Wunused-parameter]
- void sys_removeTimer(struct System* sys, void *timerId)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:94:30: warning: 'struct System' declared inside parameter list
- void *sys_createMutex(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_createMutex':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:94:38: warning: unused parameter 'sys' [-Wunused-parameter]
- void *sys_createMutex(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:97:30: warning: 'struct System' declared inside parameter list
- void sys_destroyMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_destroyMutex':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:97:38: warning: unused parameter 'sys' [-Wunused-parameter]
- void sys_destroyMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:97:49: warning: unused parameter 'mutex' [-Wunused-parameter]
- void sys_destroyMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:100:27: warning: 'struct System' declared inside parameter list
- void sys_lockMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_lockMutex':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:100:35: warning: unused parameter 'sys' [-Wunused-parameter]
- void sys_lockMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:100:46: warning: unused parameter 'mutex' [-Wunused-parameter]
- void sys_lockMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:103:29: warning: 'struct System' declared inside parameter list
- void sys_unlockMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_unlockMutex':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:103:37: warning: unused parameter 'sys' [-Wunused-parameter]
- void sys_unlockMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:103:48: warning: unused parameter 'mutex' [-Wunused-parameter]
- void sys_unlockMutex(struct System* sys, void *mutex)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:107:41: warning: 'struct System' declared inside parameter list
- uint8_t* getOffScreenFramebuffer(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'getOffScreenFramebuffer':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:107:49: warning: unused parameter 'sys' [-Wunused-parameter]
- uint8_t* getOffScreenFramebuffer(struct System* sys)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sys.c: In function 'sys_createMutex':
- /home/franklin/rockbox/apps/plugins/xworld/sys.c:96:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/sys.o] Error 1
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/vm.c:19:17: fatal error: ctime: No such file or directory
- #include <ctime>
- ^
- compilation terminated.
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/vm.o] Error 1
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
- typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
- Polygon polygon;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
- Ptr _pData;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
- void video_saveOrLoad(struct Video* v, Serializer &ser);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:21:0:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
- void res_setupPart(struct Resource*uint16_t ptrId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
- void res_saveOrLoad(struct Resource*, Serializer &ser);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:22:0:
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:36:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:43:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:50:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:55:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:58:3: error: unknown type name 'EntryType'
- EntryType type;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:64:3: warning: declaration does not declare anything
- };
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:66:2: error: unknown type name 'File'
- File *_stream;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:67:2: error: unknown type name 'Mode'
- Mode _mode;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.h:72:2: error: expected specifier-qualifier-list before 'Serializer'
- Serializer(File *stream, Mode mode, uint8_t *ptrBlock, uint16_t saveVer = CUR_VER);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'polygon_readVertices':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:34:29: error: 'points' undeclared (first use in this function)
- struct Point *pt = &points[i];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:34:29: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_create':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:47:11: warning: assignment from incompatible pointer type
- v->res=res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:48:11: warning: assignment from incompatible pointer type
- v->sys=sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_init':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:67:5: warning: implicit declaration of function 'getPagePtr' [-Wimplicit-function-declaration]
- v->_curPagePtr3 = getPagePtr(1);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:67:21: warning: assignment makes pointer from integer without a cast
- v->_curPagePtr3 = getPagePtr(1);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:68:21: warning: assignment makes pointer from integer without a cast
- v->_curPagePtr2 = getPagePtr(2);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:71:5: warning: implicit declaration of function 'changePagePtr1' [-Wimplicit-function-declaration]
- changePagePtr1(0xFE);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:73:5: error: '_interpTable' undeclared (first use in this function)
- _interpTable[0] = 0x4000;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_video_setDataBuffer':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:85:5: error: '_dataBuf' undeclared (first use in this function)
- _dataBuf = dataBuf;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:86:14: error: request for member 'pc' in something not a structure or union
- v->_pData.pc = dataBuf + offset;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/video.c:96:84: warning: type defaults to 'int' in declaration of 'Point'
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:96:90: error: expected ';', ',' or ')' before '&' token
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:132:84: warning: type defaults to 'int' in declaration of 'Point'
- void video_video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point &pt) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:132:90: error: expected ';', ',' or ')' before '&' token
- void video_video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point &pt) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_video_readAndDrawPolygonHierarchy':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:236:33: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
- pt.x -= scriptPtr_fetchByte(v->_pData) * zoom / 64;
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:237:33: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
- pt.y -= scriptPtr_fetchByte(v->_pData) * zoom / 64;
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:239:42: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
- int16_t childs = scriptPtr_fetchByte(v->_pData);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:244:44: warning: passing argument 1 of 'scriptPtr_fetchWord' makes pointer from integer without a cast
- uint16_t off = scriptPtr_fetchWord(v->_pData);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/intern.h:62:17: note: expected 'struct Ptr *' but argument is of type 'int'
- inline uint16_t scriptPtr_fetchWord(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:246:16: warning: parameter names (without types) in function declaration
- struct Point po(pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:247:11: error: request for member 'x' in something not a structure or union
- po.x += scriptPtr_fetchByte(v->_pData) * zoom / 64;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:247:37: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
- po.x += scriptPtr_fetchByte(v->_pData) * zoom / 64;
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:248:11: error: request for member 'y' in something not a structure or union
- po.y += scriptPtr_fetchByte(v->_pData) * zoom / 64;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:248:37: warning: passing argument 1 of 'scriptPtr_fetchByte' makes pointer from integer without a cast
- po.y += scriptPtr_fetchByte(v->_pData) * zoom / 64;
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.h:22:0,
- from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/intern.h:58:16: note: expected 'struct Ptr *' but argument is of type 'int'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:255:31: error: request for member 'pc' in something not a structure or union
- color = *v->_pData.pc & 0x7F;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:256:22: error: request for member 'pc' in something not a structure or union
- v->_pData.pc += 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:259:33: error: request for member 'pc' in something not a structure or union
- uint8_t *bak = v->_pData.pc;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:260:18: error: request for member 'pc' in something not a structure or union
- v->_pData.pc = _dataBuf + off * 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:260:24: error: '_dataBuf' undeclared (first use in this function)
- v->_pData.pc = _dataBuf + off * 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:263:9: warning: implicit declaration of function 'video_readAndDrawPolygon' [-Wimplicit-function-declaration]
- video_readAndDrawPolygon(v, color, zoom, po);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:266:18: error: request for member 'pc' in something not a structure or union
- v->_pData.pc = bak;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/video.c:272:47: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:272:64: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_calcStep':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:274:13: error: request for member 'y' in something not a structure or union
- *dy = p2.y - p1.y;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:274:20: error: request for member 'y' in something not a structure or union
- *dy = p2.y - p1.y;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:275:15: error: request for member 'x' in something not a structure or union
- return (p2.x - p1.x) * v->_interpTable[dy] * 4;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:275:22: error: request for member 'x' in something not a structure or union
- return (p2.x - p1.x) * v->_interpTable[dy] * 4;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:275:43: error: array subscript is not an integer
- return (p2.x - p1.x) * v->_interpTable[dy] * 4;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:272:54: warning: parameter 'p1' set but not used [-Wunused-but-set-parameter]
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:272:71: warning: parameter 'p2' set but not used [-Wunused-but-set-parameter]
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_video_drawString':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:280:11: error: unknown type name 'StrEntry'
- const StrEntry *se = video_stringsTableEng;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:280:26: error: 'video_stringsTableEng' undeclared (first use in this function)
- const StrEntry *se = video_stringsTableEng;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:283:14: error: request for member 'id' in something not a structure or union
- while (se->id != END_OF_STRING_DICTIONARY && se->id != stringId)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:283:52: error: request for member 'id' in something not a structure or union
- while (se->id != END_OF_STRING_DICTIONARY && se->id != stringId)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:286:75: error: request for member 'str' in something not a structure or union
- debug(DBG_VIDEO, "video_drawString(%d, %d, %d, '%s')", color, x, y, se->str);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:289:11: error: request for member 'id' in something not a structure or union
- if (se->id == END_OF_STRING_DICTIONARY)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:295:24: error: request for member 'str' in something not a structure or union
- int len = strlen(se->str);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:298:15: error: request for member 'str' in something not a structure or union
- if (se->str[i] == '\n') {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:304:29: error: request for member 'str' in something not a structure or union
- video_drawChar(v, se->str[i], x, y, color, v->_curPagePtr1);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawChar':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:310:35: warning: unused parameter 'v' [-Wunused-parameter]
- void video_drawChar(struct Video* v, uint8_t character, uint16_t x, uint16_t y, uint8_t color, uint8_t *buf) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawLineBlend':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:373:36: error: '_hliney' undeclared (first use in this function)
- uint8_t *p = v->_curPagePtr1 + _hliney * 160 + xmin / 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawLineN':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:407:36: error: '_hliney' undeclared (first use in this function)
- uint8_t *p = v->_curPagePtr1 + _hliney * 160 + xmin / 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawLineP':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:441:20: error: '_hliney' undeclared (first use in this function)
- uint16_t off = _hliney * 160 + xmin / 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_changePagePtr1':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:498:21: warning: assignment makes pointer from integer without a cast
- v->_curPagePtr1 = getPagePtr(page);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_fillPage':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:505:18: warning: initialization makes pointer from integer without a cast
- uint8_t *p = getPagePtr(pageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:503:35: warning: unused parameter 'v' [-Wunused-parameter]
- void video_fillPage(struct Video* v, uint8_t pageId, uint8_t color) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_copyPage':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:552:11: warning: assignment makes pointer from integer without a cast
- p = getPagePtr(srcPageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:553:11: warning: assignment makes pointer from integer without a cast
- q = getPagePtr(dstPageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:557:11: warning: assignment makes pointer from integer without a cast
- p = getPagePtr(srcPageId & 3);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:558:11: warning: assignment makes pointer from integer without a cast
- q = getPagePtr(dstPageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:541:35: warning: unused parameter 'v' [-Wunused-parameter]
- void video_copyPage(struct Video* v, uint8_t srcPageId, uint8_t dstPageId, int16_t vscroll) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/video.c:632:13: error: 'NUM_COLORS' undeclared here (not in a function)
- uint8_t pal[NUM_COLORS * 3]; //3 = BYTES_PER_PIXEL
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_changePal':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:638:18: error: 'res' undeclared (first use in this function)
- uint8_t *p = res->segPalettes + palNum * 32; //colors are coded on 2bytes (565) for 16 colors = 32
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:654:5: error: 'sys' undeclared (first use in this function)
- sys->setPalette(0, NUM_COLORS, pal);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:655:5: error: 'currentPaletteId' undeclared (first use in this function)
- currentPaletteId = palNum;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:633:36: warning: unused parameter 'v' [-Wunused-parameter]
- void video_changePal(struct Video* v, uint8_t palNum) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_updateDisplay':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:684:29: warning: assignment makes pointer from integer without a cast
- v->_curPagePtr2 = getPagePtr(pageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:690:9: warning: implicit declaration of function 'changePal' [-Wimplicit-function-declaration]
- changePal(v->paletteIdRequested);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:697:5: error: 'sys' undeclared (first use in this function)
- sys->copyRect(0, 0, 320, 200, v->_curPagePtr2, 160);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/video.c:704:40: error: unknown type name 'Serializer'
- void video_saveOrLoad(struct Video* v, Serializer &ser) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_calcStep':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:276:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/video.o] Error 1
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/intern.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video.h:22,
- from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
- typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
- Polygon polygon;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
- Ptr _pData;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
- void video_saveOrLoad(struct Video* v, Serializer &ser);
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/video_data.o] Error 1
- In file included from /usr/include/stdlib.h:42:0,
- from /home/franklin/rockbox/apps/plugin.h:35,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:19:
- /usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
- unsigned int __w_retcode:8;
- ^
- /usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
- unsigned int __w_coredump:1;
- ^
- /usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
- unsigned int __w_termsig:7;
- ^
- /usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
- unsigned int __w_stopsig:8; /* Stopping signal. */
- ^
- /usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
- unsigned int __w_stopval:8; /* W_STOPPED if stopped. */
- ^
- In file included from /home/franklin/rockbox/firmware/export/system.h:203:0,
- from /home/franklin/rockbox/apps/plugin.h:55,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:19:
- /home/franklin/rockbox/firmware/include/rbendian.h:92:4: error: #error "Missing OS swap defines."
- #error "Missing OS swap defines."
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap16_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:97:3: warning: implicit declaration of function '__swap16_os' [-Wimplicit-function-declaration]
- { return __swap16_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap32_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:99:3: warning: implicit declaration of function '__swap32_os' [-Wimplicit-function-declaration]
- { return __swap32_os(x); }
- ^
- /home/franklin/rockbox/firmware/include/rbendian.h: In function 'swap64_hw':
- /home/franklin/rockbox/firmware/include/rbendian.h:101:3: warning: implicit declaration of function '__swap64_os' [-Wimplicit-function-declaration]
- { return __swap64_os(x); }
- ^
- In file included from /home/franklin/rockbox/firmware/export/scroll_engine.h:30:0,
- from /home/franklin/rockbox/apps/screen_access.h:27,
- from /home/franklin/rockbox/apps/gui/viewport.h:29,
- from /home/franklin/rockbox/apps/action.h:25,
- from /home/franklin/rockbox/apps/plugin.h:61,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:29:2: error: expected specifier-qualifier-list before 'File'
- File(bool gzipped = false);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:23:0,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
- /home/franklin/rockbox/apps/plugins/xworld/vm.h:112:44: error: unknown type name 'Serializer'
- void vm_saveOrLoad(struct VirtualMachine*, Serializer &ser);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/vm.h:118:5: error: expected specifier-qualifier-list before 'typedef'
- typedef void (VirtualMachine::*OpcodeStub)();
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:24:0,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:34:2: error: unknown type name 'MixerChunk'
- MixerChunk chunk;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:48:2: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:53:2: error: unknown type name 'MixerChannel'
- MixerChannel _channels[AUDIO_NUM_CHANNELS];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.h:55:2: error: expected specifier-qualifier-list before 'Mixer'
- Mixer(System *stub);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:25:0,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:35:2: error: unknown type name 'SfxInstrument'
- SfxInstrument samples[15];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:56:2: error: unknown type name 'Mixer'
- Mixer *mixer;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:57:2: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:58:2: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:64:2: error: unknown type name 'SfxModule'
- SfxModule _sfxMod;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.h:67:2: error: expected specifier-qualifier-list before 'SfxPlayer'
- SfxPlayer(Mixer *mix, Resource *res, System *stub);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:26:0,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:95:45: error: expected ';', ',' or ')' before 'ptrId'
- void res_setupPart(struct Resource*uint16_t ptrId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/resource.h:99:39: error: unknown type name 'Serializer'
- void res_saveOrLoad(struct Resource*, Serializer &ser);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/engine.h:27:0,
- from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:51:20: error: expected ')' before ':' token
- typedef void (Video::*drawLine)(int16_t x1, int16_t x2, uint8_t col);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:56:5: error: unknown type name 'Resource'
- Resource *res;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:57:5: error: unknown type name 'System'
- System *sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:70:5: error: unknown type name 'Polygon'
- Polygon polygon;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:76:5: error: unknown type name 'Ptr'
- Ptr _pData;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:84: warning: type defaults to 'int' in declaration of 'Point'
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:88:90: error: expected ';', ',' or ')' before '&' token
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const Point &pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:78: error: unknown type name 'Point'
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:78: error: unknown type name 'Point'
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:47: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:64: error: unknown type name 'Point'
- int32_t video_calcStep(struct Video* v, const Point *p1, const Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.h:108:40: error: unknown type name 'Serializer'
- void video_saveOrLoad(struct Video* v, Serializer &ser);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/xworld.c: In function 'plugin_start':
- /home/franklin/rockbox/apps/plugins/xworld/xworld.c:39:5: error: unknown type name 'System'
- System sys;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/xworld.c:40:23: warning: passing argument 2 of 'engine_create' from incompatible pointer type
- engine_create(&e, &sys, dataPath, savePath);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/xworld.c:20:0:
- /home/franklin/rockbox/apps/plugins/xworld/engine.h:47:6: note: expected 'struct System *' but argument is of type 'int *'
- void engine_create(struct Engine* e, struct System* stub, const char* dataDir, const char* saveDir);
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement