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 /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 /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/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); }
- ^
- 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/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); }
- ^
- /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/bank.c:19:
- /home/franklin/rockbox/apps/plugins/xworld/file.h: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /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:1: warning: return type defaults to 'int'
- file_create(struct File* f, bool gzipped) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:106:1: warning: conflicting types for 'file_create'
- In file included from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:30:6: note: previous declaration of 'file_create' was here
- void file_create(struct File*, bool gzipped);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_create':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:108:3: error: '_impl' undeclared (first use in this function)
- _impl = new zlibFile;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:108:3: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/file.c:108:11: error: 'new' undeclared (first use in this function)
- _impl = new zlibFile;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:108:15: error: expected ';' before 'zlibFile'
- _impl = new zlibFile;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:110:15: error: expected ';' before 'stdFile'
- _impl = new stdFile;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:106:26: warning: unused parameter 'f' [-Wunused-parameter]
- file_create(struct File* f, bool gzipped) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.c:114:1: warning: return type defaults to 'int'
- file_close(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:114:1: warning: conflicting types for 'file_close'
- In file included from /home/franklin/rockbox/apps/plugins/xworld/file.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/file.h:33:6: note: previous declaration of 'file_close' was here
- void file_close(struct File*);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_close':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:115:2: error: '_impl' undeclared (first use in this function)
- _impl->close();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:116:2: error: unknown type name 'delete'
- delete _impl;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:116:9: warning: unused variable '_impl' [-Wunused-variable]
- delete _impl;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:114:25: warning: unused parameter 'f' [-Wunused-parameter]
- file_close(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_open':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:120:2: error: '_impl' undeclared (first use in this function)
- _impl->close();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:119:29: warning: unused parameter 'f' [-Wunused-parameter]
- bool file_open(struct File* f, const char *filename, const char *directory, const char *mode) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/file.c:133:6: error: redefinition of 'file_close'
- void file_close(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:114:1: note: previous definition of 'file_close' was here
- file_close(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_close':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:134:2: error: '_impl' undeclared (first use in this function)
- _impl->close();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:133:30: warning: unused parameter 'f' [-Wunused-parameter]
- void file_close(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_ioErr':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:138:9: error: '_impl' undeclared (first use in this function)
- return _impl->_ioErr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:137:30: warning: unused parameter 'f' [-Wunused-parameter]
- bool file_ioErr(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_seek':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:142:2: error: '_impl' undeclared (first use in this function)
- _impl->seek(off);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:141:29: warning: unused parameter 'f' [-Wunused-parameter]
- void file_seek(struct File* f, int32_t off) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_read':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:146:2: error: '_impl' undeclared (first use in this function)
- _impl->read(ptr, size);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:145:29: warning: unused parameter 'f' [-Wunused-parameter]
- void file_read(struct File* f, void *ptr, uint32_t size) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_readByte':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:151:2: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
- read(&b, 1);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:149:36: warning: unused parameter 'f' [-Wunused-parameter]
- uint8_t file_readByte(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_readUint16BE':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:156:2: warning: implicit declaration of function 'readByte' [-Wimplicit-function-declaration]
- uint8_t hi = readByte();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:155:41: warning: unused parameter 'f' [-Wunused-parameter]
- uint16_t file_readUint16BE(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_readUint32BE':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:162:2: warning: implicit declaration of function 'readUint16BE' [-Wimplicit-function-declaration]
- uint16_t hi = readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:161:41: warning: unused parameter 'f' [-Wunused-parameter]
- uint32_t file_readUint32BE(struct File* f) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_write':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:168:2: error: '_impl' undeclared (first use in this function)
- _impl->write(ptr, size);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:167:30: warning: unused parameter 'f' [-Wunused-parameter]
- void file_write(struct File* f, void *ptr, uint32_t size) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_writeByte':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:172:2: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
- write(&b, 1);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:171:34: warning: unused parameter 'f' [-Wunused-parameter]
- void file_writeByte(struct File* f, uint8_t b) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_writeUint16BE':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:176:2: warning: implicit declaration of function 'writeByte' [-Wimplicit-function-declaration]
- writeByte(n >> 8);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:175:38: warning: unused parameter 'f' [-Wunused-parameter]
- void file_writeUint16BE(struct File* f, uint16_t n) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_writeUint32BE':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:181:2: warning: implicit declaration of function 'writeUint16BE' [-Wimplicit-function-declaration]
- writeUint16BE(n >> 16);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c:180:38: warning: unused parameter 'f' [-Wunused-parameter]
- void file_writeUint32BE(struct File* f, uint32_t n) {
- ^
- 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 (*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/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: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);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.c: In function 'file_ioErr':
- /home/franklin/rockbox/apps/plugins/xworld/file.c:139:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- 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: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/engine.c:19:
- /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*);
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/file.o] Error 1
- /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/bank.o] Error 1
- 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/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 /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 /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. */
- ^
- 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 /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/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/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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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:
- 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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/parts.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: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: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
- 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/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/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: In function 'mixer_init':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:40:9: error: '_channels' undeclared (first use in this function)
- memset(_channels, 0, sizeof(_channels));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:40:9: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:41:15: error: 'sys' undeclared (first use in this function)
- mx->_mutex = sys->createMutex();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:42:18: error: 'mixer_mixCallback' undeclared (first use in this function)
- sys->startAudio(mixer_mixCallback, this);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:42:37: error: 'this' undeclared (first use in this function)
- sys->startAudio(mixer_mixCallback, this);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: In function 'mixer_free':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:46:2: warning: implicit declaration of function 'mixer_stopAll' [-Wimplicit-function-declaration]
- mixer_stopAll();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:47:2: error: 'sys' undeclared (first use in this function)
- sys->stopAudio();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:51:65: error: unknown type name 'MixerChunk'
- void mixer_playChannel(struct Mixer* mx, uint8_t channel, const MixerChunk *mc, uint16_t freq, uint8_t volume) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: In function 'mixer_playChannel':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:56:2: warning: implicit declaration of function 'MutexStack' [-Wimplicit-function-declaration]
- MutexStack(sys, mx->_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:56:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, mx->_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:57:2: error: unknown type name 'MixerChannel'
- MixerChannel *ch = &_channels[channel];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:57:22: error: '_channels' undeclared (first use in this function)
- MixerChannel *ch = &_channels[channel];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:58:4: error: request for member 'active' in something not a structure or union
- ch->active = true;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:59:4: error: request for member 'volume' in something not a structure or union
- ch->volume = volume;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:60:4: error: request for member 'chunk' in something not a structure or union
- ch->chunk = *mc;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:61:4: error: request for member 'chunkPos' in something not a structure or union
- ch->chunkPos = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:62:4: error: request for member 'chunkInc' in something not a structure or union
- ch->chunkInc = (freq << 8) / sys->getOutputSampleRate();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: In function 'mixer_stopChannel':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:70:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, mx->_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:71:2: error: '_channels' undeclared (first use in this function)
- _channels[channel].active = false;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: In function 'mixer_setChannelVolume':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:77:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, mx->_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:78:2: error: '_channels' undeclared (first use in this function)
- _channels[channel].volume = volume;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:81:6: warning: conflicting types for 'mixer_stopAll'
- void mixer_stopAll(struct Mixer* mx) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:46:2: note: previous implicit declaration of 'mixer_stopAll' was here
- mixer_stopAll();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: In function 'mixer_stopAll':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:83:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, mx->_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:85:3: error: '_channels' undeclared (first use in this function)
- _channels[i].active = false;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: In function 'mixer_mix':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:98:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, mx->_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:104:3: error: unknown type name 'MixerChannel'
- MixerChannel *ch = &_channels[i];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:104:23: error: '_channels' undeclared (first use in this function)
- MixerChannel *ch = &_channels[i];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:105:10: error: request for member 'active' in something not a structure or union
- if (!ch->active)
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:112:22: error: request for member 'chunkPos' in something not a structure or union
- uint16_t ilc = (ch->chunkPos & 0xFF);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:113:11: error: request for member 'chunkPos' in something not a structure or union
- p1 = ch->chunkPos >> 8;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:114:6: error: request for member 'chunkPos' in something not a structure or union
- ch->chunkPos += ch->chunkInc;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:114:22: error: request for member 'chunkInc' in something not a structure or union
- ch->chunkPos += ch->chunkInc;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:116:10: error: request for member 'chunk' in something not a structure or union
- if (ch->chunk.loopLen != 0) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:117:17: error: request for member 'chunk' in something not a structure or union
- if (p1 == ch->chunk.loopPos + ch->chunk.loopLen - 1) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:117:37: error: request for member 'chunk' in something not a structure or union
- if (p1 == ch->chunk.loopPos + ch->chunk.loopLen - 1) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:119:8: error: request for member 'chunkPos' in something not a structure or union
- ch->chunkPos = p2 = ch->chunk.loopPos;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:119:28: error: request for member 'chunk' in something not a structure or union
- ch->chunkPos = p2 = ch->chunk.loopPos;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:124:17: error: request for member 'chunk' in something not a structure or union
- if (p1 == ch->chunk.len - 1) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:126:8: error: request for member 'active' in something not a structure or union
- ch->active = false;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:133:30: error: request for member 'chunk' in something not a structure or union
- int8_t b1 = *(int8_t *)(ch->chunk.data + p1);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:134:30: error: request for member 'chunk' in something not a structure or union
- int8_t b2 = *(int8_t *)(ch->chunk.data + p2);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:138:39: error: request for member 'volume' in something not a structure or union
- *pBuf = addclamp(*pBuf, (int)b * ch->volume / 0x40); //0x40=64
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: In function 'mixer_mixCallback':
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:153:4: error: 'Mixer' undeclared (first use in this function)
- ((Mixer *)param)->mix((int8_t *)buf, len);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:153:11: error: expected expression before ')' token
- ((Mixer *)param)->mix((int8_t *)buf, len);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:152:38: warning: unused parameter 'mx' [-Wunused-parameter]
- void mixer_mixCallback(struct Mixer* mx, void *param, uint8_t *buf, int len) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:152:48: warning: unused parameter 'param' [-Wunused-parameter]
- void mixer_mixCallback(struct Mixer* mx, void *param, uint8_t *buf, int len) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/mixer.c:156:41: error: unknown type name 'Serializer'
- void mixer_saveOrLoad(struct Mixer* mx, Serializer &ser) {
- ^
- /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/mixer.o] Error 1
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/resource.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/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 /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;
- ^
- 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. */
- ^
- /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/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/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); }
- ^
- 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); }
- ^
- /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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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:27:50: error: unknown type name 'Entry'
- void ser_saveOrLoadEntries(struct Serializer* c, Entry *entry) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:41:44: error: unknown type name 'Entry'
- void ser_saveEntries(struct Serializer* c, Entry *entry) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:74:44: error: unknown type name 'Entry'
- void ser_loadEntries(struct Serializer* c, Entry *entry) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c: In function 'ser_saveInt':
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:110:13: error: request for member 'writeByte' in something not a structure or union
- c->_stream->writeByte(*(uint8_t *)p);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:113:13: error: request for member 'writeUint16BE' in something not a structure or union
- c->_stream->writeUint16BE(*(uint16_t *)p);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:116:13: error: request for member 'writeUint32BE' in something not a structure or union
- c->_stream->writeUint32BE(*(uint32_t *)p);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c: In function 'ser_loadInt':
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:124:29: error: request for member 'readByte' in something not a structure or union
- *(uint8_t *)p = c->_stream->readByte();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:127:30: error: request for member 'readUint16BE' in something not a structure or union
- *(uint16_t *)p = c->_stream->readUint16BE();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/serializer.c:130:30: error: request for member 'readUint32BE' in something not a structure or union
- *(uint32_t *)p = c->_stream->readUint32BE();
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/serializer.o] Error 1
- 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: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: In function 'sfxplay_init':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:31:2: error: '_mutex' undeclared (first use in this function)
- _mutex = sys->createMutex();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:31:2: note: each undeclared identifier is reported only once for each function it appears in
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:31:11: error: 'sys' undeclared (first use in this function)
- _mutex = sys->createMutex();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:30:37: warning: unused parameter 'sfx' [-Wunused-parameter]
- void sfxplay_init(struct SfxPlayer* sfx) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_free':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:35:2: warning: implicit declaration of function 'stop' [-Wimplicit-function-declaration]
- stop();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:36:2: error: 'sys' undeclared (first use in this function)
- sys->destroyMutex(_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:36:20: error: '_mutex' undeclared (first use in this function)
- sys->destroyMutex(_mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:34:37: warning: unused parameter 'sfx' [-Wunused-parameter]
- void sfxplay_free(struct SfxPlayer* sfx) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_setEventsDelay':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:41:2: warning: implicit declaration of function 'MutexStack' [-Wimplicit-function-declaration]
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:41:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:41:18: error: '_mutex' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_loadSfxModule':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:48:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:48:18: error: '_mutex' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:51:18: error: 'res' undeclared (first use in this function)
- MemEntry *me = &res->_memList[resNum];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:53:56: error: 'Resource' undeclared (first use in this function)
- if (me->state == MEMENTRY_STATE_LOADED && me->type == Resource::RT_MUSIC) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:53:64: error: expected ')' before ':' token
- if (me->state == MEMENTRY_STATE_LOADED && me->type == Resource::RT_MUSIC) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:55:35: error: 'SfxModule' undeclared (first use in this function)
- memset(&sfx->_sfxMod, 0, sizeof(SfxModule));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:56:15: error: request for member 'curOrder' in something not a structure or union
- sfx->_sfxMod.curOrder = pos;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:57:15: error: request for member 'numOrder' in something not a structure or union
- sfx->_sfxMod.numOrder = READ_BE_UINT16(me->bufPtr + 0x3E);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:58:89: error: request for member 'curOrder' in something not a structure or union
- debug(DBG_SND, "sfxplay_loadSfxModule() curOrder = 0x%X numOrder = 0x%X", sfx->_sfxMod.curOrder, sfx->_sfxMod.numOrder);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:58:112: error: request for member 'numOrder' in something not a structure or union
- debug(DBG_SND, "sfxplay_loadSfxModule() curOrder = 0x%X numOrder = 0x%X", sfx->_sfxMod.curOrder, sfx->_sfxMod.numOrder);
- ^
- /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/sfxplayer.c:60:16: error: request for member 'orderTable' in something not a structure or union
- sfx->_sfxMod.orderTable[i] = *(me->bufPtr + 0x40 + i);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:68:15: error: request for member 'data' in something not a structure or union
- sfx->_sfxMod.data = me->bufPtr + 0xC0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:69:64: error: '_delay' undeclared (first use in this function)
- debug(DBG_SND, "sfxplay_loadSfxModule() eventDelay = %d ms", _delay);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:70:3: warning: implicit declaration of function 'prepareInstruments' [-Wimplicit-function-declaration]
- prepareInstruments(me->bufPtr + 2);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_prepareInstruments':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:78:21: error: request for member 'samples' in something not a structure or union
- memset(sfx->_sfxMod.samples, 0, sizeof(sfx->_sfxMod.samples));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:78:53: error: request for member 'samples' in something not a structure or union
- memset(sfx->_sfxMod.samples, 0, sizeof(sfx->_sfxMod.samples));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:81:3: error: unknown type name 'SfxInstrument'
- SfxInstrument *ins = &sfx->_sfxMod.samples[i];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:81:37: error: request for member 'samples' in something not a structure or union
- SfxInstrument *ins = &sfx->_sfxMod.samples[i];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:84:7: error: request for member 'volume' in something not a structure or union
- ins->volume = READ_BE_UINT16(p);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:85:20: error: 'res' undeclared (first use in this function)
- MemEntry *me = &res->_memList[resNum];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:86:58: error: 'Resource' undeclared (first use in this function)
- if (me->state == MEMENTRY_STATE_LOADED && me->type == Resource::RT_SOUND) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:86:66: error: expected ')' before ':' token
- if (me->state == MEMENTRY_STATE_LOADED && me->type == Resource::RT_SOUND) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:87:8: error: request for member 'data' in something not a structure or union
- ins->data = me->bufPtr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:88:15: error: request for member 'data' in something not a structure or union
- memset(ins->data + 8, 0, 4);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:89:75: error: request for member 'volume' in something not a structure or union
- debug(DBG_SND, "Loaded instrument 0x%X n=%d volume=%d", resNum, i, ins->volume);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_start':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:100:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:100:18: error: '_mutex' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:101:14: error: request for member 'curPos' in something not a structure or union
- sfx->_sfxMod.curPos = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:102:2: error: '_timerId' undeclared (first use in this function)
- _timerId = sys->addTimer(sfx->_delay, eventsCallback, this);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:102:40: error: 'eventsCallback' undeclared (first use in this function)
- _timerId = sys->addTimer(sfx->_delay, eventsCallback, this);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:102:56: error: 'this' undeclared (first use in this function)
- _timerId = sys->addTimer(sfx->_delay, eventsCallback, this);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_stop':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:107:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:107:18: error: '_mutex' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:110:20: error: '_timerId' undeclared (first use in this function)
- sys->removeTimer(_timerId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_handleEvents':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:115:13: error: 'sys' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:115:18: error: '_mutex' undeclared (first use in this function)
- MutexStack(sys, _mutex);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:116:30: error: request for member 'orderTable' in something not a structure or union
- uint8_t order = sfx->_sfxMod.orderTable[sfx->_sfxMod.curOrder];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:116:54: error: request for member 'curOrder' in something not a structure or union
- uint8_t order = sfx->_sfxMod.orderTable[sfx->_sfxMod.curOrder];
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:117:43: error: request for member 'data' in something not a structure or union
- const uint8_t *patternData = sfx->_sfxMod.data + sfx->_sfxMod.curPos + order * 1024;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:117:63: error: request for member 'curPos' in something not a structure or union
- const uint8_t *patternData = sfx->_sfxMod.data + sfx->_sfxMod.curPos + order * 1024;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:119:3: warning: implicit declaration of function 'handlePattern' [-Wimplicit-function-declaration]
- handlePattern(ch, patternData);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:122:14: error: request for member 'curPos' in something not a structure or union
- sfx->_sfxMod.curPos += 4 * 4;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:123:77: error: '_sfxMod' undeclared (first use in this function)
- debug(DBG_SND, "sfxplay_handleEvents() order = 0x%X curPos = 0x%X", order, _sfxMod.curPos);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:124:18: error: request for member 'curPos' in something not a structure or union
- if (sfx->_sfxMod.curPos >= 1024) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:125:15: error: request for member 'curPos' in something not a structure or union
- sfx->_sfxMod.curPos = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:126:23: error: request for member 'curOrder' in something not a structure or union
- order = sfx->_sfxMod.curOrder + 1;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:127:28: error: request for member 'numOrder' in something not a structure or union
- if (order == sfx->_sfxMod.numOrder) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:129:21: error: '_timerId' undeclared (first use in this function)
- sys->removeTimer(_timerId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:130:4: error: 'mixer' undeclared (first use in this function)
- mixer->stopAll();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:132:15: error: request for member 'curOrder' in something not a structure or union
- sfx->_sfxMod.curOrder = order;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_handlePattern':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:137:2: error: unknown type name 'SfxPattern'
- SfxPattern pat;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:138:25: error: 'SfxPattern' undeclared (first use in this function)
- memset(&pat, 0, sizeof(SfxPattern));
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:139:5: error: request for member 'note_1' in something not a structure or union
- pat.note_1 = READ_BE_UINT16(data + 0);
- ^
- /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]
- }
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:140:5: error: request for member 'note_2' in something not a structure or union
- pat.note_2 = READ_BE_UINT16(data + 2);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:141:9: error: request for member 'note_1' in something not a structure or union
- if (pat.note_1 != 0xFFFD) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:142:25: error: request for member 'note_2' in something not a structure or union
- uint16_t sample = (pat.note_2 & 0xF000) >> 12;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:144:31: error: request for member 'samples' in something not a structure or union
- uint8_t *ptr = sfx->_sfxMod.samples[sample - 1].data;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:147:8: error: request for member 'sampleVolume' in something not a structure or union
- pat.sampleVolume = sfx->_sfxMod.samples[sample - 1].volume;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:147:36: error: request for member 'samples' in something not a structure or union
- pat.sampleVolume = sfx->_sfxMod.samples[sample - 1].volume;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:148:8: error: request for member 'sampleStart' in something not a structure or union
- pat.sampleStart = 8;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:149:8: error: request for member 'sampleBuffer' in something not a structure or union
- pat.sampleBuffer = ptr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:150:8: error: request for member 'sampleLen' in something not a structure or union
- pat.sampleLen = READ_BE_UINT16(ptr) * 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:153:9: error: request for member 'loopPos' in something not a structure or union
- pat.loopPos = pat.sampleLen;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:153:23: error: request for member 'sampleLen' in something not a structure or union
- pat.loopPos = pat.sampleLen;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:154:9: error: request for member 'loopData' in something not a structure or union
- pat.loopData = ptr;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:155:9: error: request for member 'loopLen' in something not a structure or union
- pat.loopLen = loopLen;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:157:9: error: request for member 'loopPos' in something not a structure or union
- pat.loopPos = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:158:9: error: request for member 'loopData' in something not a structure or union
- pat.loopData = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:159:9: error: request for member 'loopLen' in something not a structure or union
- pat.loopLen = 0;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:161:20: error: request for member 'sampleVolume' in something not a structure or union
- int16_t m = pat.sampleVolume;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:162:26: error: request for member 'note_2' in something not a structure or union
- uint8_t effect = (pat.note_2 & 0x0F00) >> 8;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:164:27: error: request for member 'note_2' in something not a structure or union
- uint8_t volume = (pat.note_2 & 0xFF);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:170:27: error: request for member 'note_2' in something not a structure or union
- uint8_t volume = (pat.note_2 & 0xFF);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:176:5: error: 'mixer' undeclared (first use in this function)
- mixer->setChannelVolume(channel, m);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:177:8: error: request for member 'sampleVolume' in something not a structure or union
- pat.sampleVolume = m;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:181:9: error: request for member 'note_1' in something not a structure or union
- if (pat.note_1 == 0xFFFD) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:182:73: error: request for member 'note_2' in something not a structure or union
- debug(DBG_SND, "sfxplay_handlePattern() _scriptVars[0xF4] = 0x%X", pat.note_2);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:183:4: error: '_markVar' undeclared (first use in this function)
- *_markVar = pat.note_2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:183:18: error: request for member 'note_2' in something not a structure or union
- *_markVar = pat.note_2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:184:16: error: request for member 'note_1' in something not a structure or union
- } else if (pat.note_1 != 0) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:185:10: error: request for member 'note_1' in something not a structure or union
- if (pat.note_1 == 0xFFFE) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:187:17: error: request for member 'sampleBuffer' in something not a structure or union
- } else if (pat.sampleBuffer != 0) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:188:4: error: unknown type name 'MixerChunk'
- MixerChunk mc;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:190:6: error: request for member 'data' in something not a structure or union
- mc.data = pat.sampleBuffer + pat.sampleStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:190:17: error: request for member 'sampleBuffer' in something not a structure or union
- mc.data = pat.sampleBuffer + pat.sampleStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:190:36: error: request for member 'sampleStart' in something not a structure or union
- mc.data = pat.sampleBuffer + pat.sampleStart;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:191:6: error: request for member 'len' in something not a structure or union
- mc.len = pat.sampleLen;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:191:16: error: request for member 'sampleLen' in something not a structure or union
- mc.len = pat.sampleLen;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:192:6: error: request for member 'loopPos' in something not a structure or union
- mc.loopPos = pat.loopPos;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:192:20: error: request for member 'loopPos' in something not a structure or union
- mc.loopPos = pat.loopPos;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:193:6: error: request for member 'loopLen' in something not a structure or union
- mc.loopLen = pat.loopLen;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:193:20: error: request for member 'loopLen' in something not a structure or union
- mc.loopLen = pat.loopLen;
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/intern.h:25:0,
- 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/sfxplayer.c:194:14: error: request for member 'note_1' in something not a structure or union
- assert(pat.note_1 >= 0x37 && pat.note_1 < 0x1000);
- ^
- /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/sfxplayer.c:194:36: error: request for member 'note_1' in something not a structure or union
- assert(pat.note_1 >= 0x37 && pat.note_1 < 0x1000);
- ^
- /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/sfxplayer.c:196:34: error: request for member 'note_1' in something not a structure or union
- uint16_t freq = 7159092 / (pat.note_1 * 2);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:198:46: error: request for member 'sampleVolume' in something not a structure or union
- mixer->playChannel(channel, &mc, freq, pat.sampleVolume);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_eventsCallback':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:204:2: error: unknown type name 'SfxPlayer'
- SfxPlayer *p = (SfxPlayer *)param;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:204:18: error: 'SfxPlayer' undeclared (first use in this function)
- SfxPlayer *p = (SfxPlayer *)param;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:204:29: error: expected expression before ')' token
- SfxPlayer *p = (SfxPlayer *)param;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:205:3: error: request for member 'handleEvents' in something not a structure or union
- p->handleEvents();
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:206:10: error: request for member 'sfx' in something not a structure or union
- return p->sfx->_delay;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:203:51: warning: unused parameter 'sfx' [-Wunused-parameter]
- uint32_t sfxplay_eventsCallback(struct SfxPlayer* sfx, uint32_t interval, void *param) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:203:65: warning: unused parameter 'interval' [-Wunused-parameter]
- uint32_t sfxplay_eventsCallback(struct SfxPlayer* sfx, uint32_t interval, void *param) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:203:81: warning: unused parameter 'param' [-Wunused-parameter]
- uint32_t sfxplay_eventsCallback(struct SfxPlayer* sfx, uint32_t interval, void *param) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: At top level:
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:209:48: error: unknown type name 'Serializer'
- void sfxplay_saveOrLoad(struct SfxPlayer* sfx, Serializer &ser) {
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/sys.o] Error 1
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c: In function 'sfxplay_eventsCallback':
- /home/franklin/rockbox/apps/plugins/xworld/sfxplayer.c:207:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- /home/franklin/rockbox/apps/plugins/xworld/util.c:19:19: fatal error: cstdarg: No such file or directory
- #include <cstdarg>
- ^
- compilation terminated.
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/sfxplayer.o] Error 1
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/util.o] Error 1
- /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 /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 /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/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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /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: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_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_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: In function 'video_readAndDrawPolygon':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:98:17: error: incompatible type for argument 1 of 'scriptPtr_fetchByte'
- uint8_t i = 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 'struct Ptr'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:112:30: warning: passing argument 2 of 'video_fillPolygon' makes integer from pointer without a cast
- video_fillPolygon(v, v, color, zoom, pt);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:6: note: expected 'uint16_t' but argument is of type 'struct Video *'
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const struct Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:112:40: warning: passing argument 4 of 'video_fillPolygon' makes pointer from integer without a cast
- video_fillPolygon(v, v, color, zoom, pt);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:6: note: expected 'const struct Point *' but argument is of type 'uint16_t'
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const struct Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:112:9: error: too many arguments to function 'video_fillPolygon'
- video_fillPolygon(v, v, color, zoom, pt);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:89:6: note: declared here
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const struct Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:121:50: warning: passing argument 2 of 'video_readAndDrawPolygonHierarchy' makes integer from pointer without a cast
- video_readAndDrawPolygonHierarchy(v, v, zoom, pt);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:6: note: expected 'uint16_t' but argument is of type 'struct Video *'
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const struct Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:121:53: warning: passing argument 3 of 'video_readAndDrawPolygonHierarchy' makes pointer from integer without a cast
- video_readAndDrawPolygonHierarchy(v, v, zoom, pt);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:6: note: expected 'const struct Point *' but argument is of type 'uint16_t'
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const struct Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:121:13: error: too many arguments to function 'video_readAndDrawPolygonHierarchy'
- video_readAndDrawPolygonHierarchy(v, v, zoom, pt);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:90:6: note: declared here
- void video_readAndDrawPolygonHierarchy(struct Video* v, uint16_t zoom, const struct Point *pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_fillPolygon':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:134:9: error: 'polygon' undeclared (first use in this function)
- if (polygon.bbw == 0 && polygon.bbh == 1 && polygon.numPoints == 4) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:135:9: warning: implicit declaration of function 'drawPoint' [-Wimplicit-function-declaration]
- drawPoint(color, pt->x, pt->y);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video_data.c:1:0:
- /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/video.c:148:5: error: '_hliney' undeclared (first use in this function)
- _hliney = y1;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:162:17: warning: assignment from incompatible pointer type
- drawFct = &video_drawLineN;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:164:17: warning: assignment from incompatible pointer type
- drawFct = &video_drawLineP;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:166:17: warning: assignment from incompatible pointer type
- drawFct = &video_drawLineBlend;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:184:85: warning: passing argument 4 of 'video_calcStep' makes pointer from integer without a cast
- int32_t step1 = video_calcStep(v, polygon.points[j + 1], polygon.points[j], h);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:9: note: expected 'uint16_t *' but argument is of type 'uint16_t'
- int32_t video_calcStep(struct Video* v, const struct Point *p1, const struct Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:185:85: warning: passing argument 4 of 'video_calcStep' makes pointer from integer without a cast
- int32_t step2 = video_calcStep(v, polygon.points[i - 1], polygon.points[i], h);
- ^
- In file included from /home/franklin/rockbox/apps/plugins/xworld/video.c:19:0:
- /home/franklin/rockbox/apps/plugins/xworld/video.h:91:9: note: expected 'uint16_t *' but argument is of type 'uint16_t'
- int32_t video_calcStep(struct Video* v, const struct Point *p1, const struct Point *p2, uint16_t *dy);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:204:26: error: 'this' undeclared (first use in this function)
- (this->*drawFct)(x1, x2, color);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:204:32: error: expected identifier before '*' token
- (this->*drawFct)(x1, x2, color);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:160:14: warning: variable 'drawFct' set but not used [-Wunused-but-set-variable]
- drawLine drawFct;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:132:66: warning: unused parameter 'zoom' [-Wunused-parameter]
- void video_fillPolygon(struct Video* v, uint16_t color, uint16_t zoom, const struct Point *pt) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_readAndDrawPolygonHierarchy':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:231:13: error: incompatible type for argument 1 of 'scriptPtr_fetchByte'
- 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 'struct Ptr'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:232:13: error: incompatible type for argument 1 of 'scriptPtr_fetchByte'
- 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 'struct Ptr'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:234:22: error: incompatible type for argument 1 of 'scriptPtr_fetchByte'
- 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 'struct Ptr'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:239:24: error: incompatible type for argument 1 of 'scriptPtr_fetchWord'
- 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 'struct Ptr'
- inline uint16_t scriptPtr_fetchWord(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:241:16: warning: parameter names (without types) in function declaration
- struct Point po(pt);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:242: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:242:17: error: incompatible type for argument 1 of 'scriptPtr_fetchByte'
- 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 'struct Ptr'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:243: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:243:17: error: incompatible type for argument 1 of 'scriptPtr_fetchByte'
- 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 'struct Ptr'
- inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:255:24: error: '_dataBuf' undeclared (first use in this function)
- v->_pData.pc = _dataBuf + off * 2;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:258:50: warning: passing argument 4 of 'video_readAndDrawPolygon' from incompatible pointer type
- video_readAndDrawPolygon(v, color, zoom, po);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:96:6: note: expected 'const struct Point *' but argument is of type 'struct Point (*)()'
- void video_readAndDrawPolygon(struct Video* v, uint8_t color, uint16_t zoom, const struct Point *pt) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:230:18: warning: variable 'pt' set but not used [-Wunused-but-set-variable]
- struct Point pt=*pgc;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_calcStep':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:269: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:269: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:270: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:270: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:270: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:267:61: warning: parameter 'p1' set but not used [-Wunused-but-set-parameter]
- int32_t video_calcStep(struct Video* v, const struct Point *p1, const struct Point *p2, uint16_t *dy) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:267:85: warning: parameter 'p2' set but not used [-Wunused-but-set-parameter]
- int32_t video_calcStep(struct Video* v, const struct Point *p1, const struct Point *p2, uint16_t *dy) {
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_drawString':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:275:11: error: unknown type name 'StrEntry'
- const StrEntry *se = video_stringsTableEng;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:275:26: error: 'video_stringsTableEng' undeclared (first use in this function)
- const StrEntry *se = video_stringsTableEng;
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:278: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:278: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:281: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:284: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:290: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:293: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:299: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:305: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:368: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:402: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:436: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:493: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:500:18: warning: initialization makes pointer from integer without a cast
- uint8_t *p = getPagePtr(pageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:498: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:547:11: warning: assignment makes pointer from integer without a cast
- p = getPagePtr(srcPageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:548:11: warning: assignment makes pointer from integer without a cast
- q = getPagePtr(dstPageId);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c:552:11: warning: assignment makes pointer from integer without a cast
- p = getPagePtr(srcPageId & 3);
- ^
- /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:536: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:627: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:649:5: warning: implicit declaration of function 'sys_setPalette' [-Wimplicit-function-declaration]
- sys_setPalette(v->sys, 0, NUM_COLORS, pal);
- ^
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_updateDisplay':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:692:5: warning: implicit declaration of function 'sys_copyRect' [-Wimplicit-function-declaration]
- sys_copyRect(v->sys, 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:699: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
- /home/franklin/rockbox/apps/plugins/xworld/video.c: In function 'video_calcStep':
- /home/franklin/rockbox/apps/plugins/xworld/video.c:271:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- 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. */
- ^
- make: *** [/home/franklin/rockbox/build_sim/apps/plugins/xworld/video.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/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:32:31: error: unknown type name 'onst'
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- /home/franklin/rockbox/apps/plugins/xworld/file.h:32:91: error: expected ';', ',' or ')' before '=' token
- bool file_openc(struct File*, onst char *filename, const char *directory, const char *mode="rb");
- ^
- 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 (*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: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: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