Compare commits
No commits in common. "0b696bd55b31416929d0a29d84ad50ab5ba0ceae" and "34b74896f9cef47c765c8fbd3263b2faf9c85803" have entirely different histories.
0b696bd55b
...
34b74896f9
@ -154,7 +154,6 @@ function makeMainHeader(output: string) {
|
|||||||
result += '#pragma GCC diagnostic ignored "-Wunused-function"\n';
|
result += '#pragma GCC diagnostic ignored "-Wunused-function"\n';
|
||||||
result += '\n// Shortcuts\n';
|
result += '\n// Shortcuts\n';
|
||||||
result += 'typedef unsigned char uchar;\n';
|
result += 'typedef unsigned char uchar;\n';
|
||||||
result += 'typedef unsigned short ushort;\n';
|
|
||||||
result += 'typedef unsigned int uint;\n';
|
result += 'typedef unsigned int uint;\n';
|
||||||
result += '\n// Forward Declarations\n';
|
result += '\n// Forward Declarations\n';
|
||||||
for (const name in STRUCTURE_FILES) {
|
for (const name in STRUCTURE_FILES) {
|
||||||
|
@ -52,9 +52,6 @@ export class SimpleProperty implements Property {
|
|||||||
} else if (this.#type === 'char' || this.#type === 'uchar') {
|
} else if (this.#type === 'char' || this.#type === 'uchar') {
|
||||||
// Character
|
// Character
|
||||||
return 1;
|
return 1;
|
||||||
} else if (this.#type === 'short' || this.#type === 'ushort') {
|
|
||||||
// Short
|
|
||||||
return 2;
|
|
||||||
} else if (this.#type.startsWith('std::vector<')) {
|
} else if (this.#type.startsWith('std::vector<')) {
|
||||||
// C++ Vector
|
// C++ Vector
|
||||||
return 12;
|
return 12;
|
||||||
@ -85,9 +82,6 @@ export class SimpleProperty implements Property {
|
|||||||
} else if (this.#type === 'char' || this.#type === 'uchar') {
|
} else if (this.#type === 'char' || this.#type === 'uchar') {
|
||||||
// Character
|
// Character
|
||||||
return 1;
|
return 1;
|
||||||
} else if (this.#type === 'short' || this.#type === 'ushort') {
|
|
||||||
// Short
|
|
||||||
return 2;
|
|
||||||
} else if (this.#type.startsWith('std::vector<')) {
|
} else if (this.#type.startsWith('std::vector<')) {
|
||||||
// C++ Vector
|
// C++ Vector
|
||||||
return 4;
|
return 4;
|
||||||
|
@ -5,7 +5,7 @@ comment "//"
|
|||||||
color magenta "\<(extends|size|vtable(-size)?|property|static-property(-array)?|((static|virtual)-)?method|constructor)\>"
|
color magenta "\<(extends|size|vtable(-size)?|property|static-property(-array)?|((static|virtual)-)?method|constructor)\>"
|
||||||
|
|
||||||
# Types
|
# Types
|
||||||
color green "\<(char|uchar|short|ushort|int|uint|float|bool|void|std::(string|vector|map))\>"
|
color green "\<(char|uchar|int|uint|float|bool|void|std::(string|vector|map))\>"
|
||||||
|
|
||||||
# Numbers
|
# Numbers
|
||||||
color yellow "0x[a-f0-9]+"
|
color yellow "0x[a-f0-9]+"
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
<list name="types">
|
<list name="types">
|
||||||
<item>char</item>
|
<item>char</item>
|
||||||
<item>uchar</item>
|
<item>uchar</item>
|
||||||
<item>short</item>
|
|
||||||
<item>ushort</item>
|
|
||||||
<item>int</item>
|
<item>int</item>
|
||||||
<item>uint</item>
|
<item>uint</item>
|
||||||
<item>float</item>
|
<item>float</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user