Realise that XML doesn't actually need backslash escapes
This commit is contained in:
parent
482389cb95
commit
d8f4fe0ac5
|
|
@ -280,7 +280,7 @@
|
|||
<Value name="KEY_Y" integer="89" desc="Key: Y | y" />
|
||||
<Value name="KEY_Z" integer="90" desc="Key: Z | z" />
|
||||
<Value name="KEY_LEFT_BRACKET" integer="91" desc="Key: [" />
|
||||
<Value name="KEY_BACKSLASH" integer="92" desc="Key: '\\'" />
|
||||
<Value name="KEY_BACKSLASH" integer="92" desc="Key: '\'" />
|
||||
<Value name="KEY_RIGHT_BRACKET" integer="93" desc="Key: ]" />
|
||||
<Value name="KEY_GRAVE" integer="96" desc="Key: `" />
|
||||
<Value name="KEY_SPACE" integer="32" desc="Key: Space" />
|
||||
|
|
@ -855,13 +855,13 @@
|
|||
<Param type="void *" name="data" desc="" />
|
||||
<Param type="unsigned int" name="bytesToWrite" desc="" />
|
||||
</Function>
|
||||
<Function name="LoadFileText" retType="char *" paramCount="1" desc="Load text data from file (read), returns a '\\0' terminated string">
|
||||
<Function name="LoadFileText" retType="char *" paramCount="1" desc="Load text data from file (read), returns a '\0' terminated string">
|
||||
<Param type="const char *" name="fileName" desc="" />
|
||||
</Function>
|
||||
<Function name="UnloadFileText" retType="void" paramCount="1" desc="Unload file text data allocated by LoadFileText()">
|
||||
<Param type="char *" name="text" desc="" />
|
||||
</Function>
|
||||
<Function name="SaveFileText" retType="bool" paramCount="2" desc="Save text data to file (write), string must be '\\0' terminated, returns true on success">
|
||||
<Function name="SaveFileText" retType="bool" paramCount="2" desc="Save text data to file (write), string must be '\0' terminated, returns true on success">
|
||||
<Param type="const char *" name="fileName" desc="" />
|
||||
<Param type="char *" name="text" desc="" />
|
||||
</Function>
|
||||
|
|
@ -1961,7 +1961,7 @@
|
|||
<Param type="const char *" name="text1" desc="" />
|
||||
<Param type="const char *" name="text2" desc="" />
|
||||
</Function>
|
||||
<Function name="TextLength" retType="unsigned int" paramCount="1" desc="Get text length, checks for '\\0' ending">
|
||||
<Function name="TextLength" retType="unsigned int" paramCount="1" desc="Get text length, checks for '\0' ending">
|
||||
<Param type="const char *" name="text" desc="" />
|
||||
</Function>
|
||||
<Function name="TextFormat" retType="const char *" paramCount="2" desc="Text formatting with variables (sprintf() style)">
|
||||
|
|
|
|||
|
|
@ -1107,12 +1107,12 @@ static void ExportParsedData(const char *fileName, int format)
|
|||
fprintf(outFile, " <Structs count=\"%i\">\n", structCount);
|
||||
for (int i = 0; i < structCount; i++)
|
||||
{
|
||||
FPrintfEscapes(outFile, " <Struct name=%S fieldCount=\"%i\" desc=%S>\n", structs[i].name, structs[i].fieldCount, structs[i].desc + 3);
|
||||
fprintf(outFile, " <Struct name=\"%s\" fieldCount=\"%i\" desc=\"%s\">\n", structs[i].name, structs[i].fieldCount, structs[i].desc + 3);
|
||||
for (int f = 0; f < structs[i].fieldCount; f++)
|
||||
{
|
||||
FPrintfEscapes(outFile, " <Field type=%S name=%S desc=%S />\n", structs[i].fieldType[f], structs[i].fieldName[f], structs[i].fieldDesc[f] + 3);
|
||||
fprintf(outFile, " <Field type=\"%s\" name=\"%s\" desc=\"%s\" />\n", structs[i].fieldType[f], structs[i].fieldName[f], structs[i].fieldDesc[f] + 3);
|
||||
}
|
||||
FPrintfEscapes(outFile, " </Struct>\n");
|
||||
fprintf(outFile, " </Struct>\n");
|
||||
}
|
||||
fprintf(outFile, " </Structs>\n");
|
||||
|
||||
|
|
@ -1120,12 +1120,12 @@ static void ExportParsedData(const char *fileName, int format)
|
|||
fprintf(outFile, " <Enums count=\"%i\">\n", enumCount);
|
||||
for (int i = 0; i < enumCount; i++)
|
||||
{
|
||||
FPrintfEscapes(outFile, " <Enum name=%S valueCount=\"%i\" desc=%S>\n", enums[i].name, enums[i].valueCount, enums[i].desc + 3);
|
||||
fprintf(outFile, " <Enum name=\"%s\" valueCount=\"%i\" desc=\"%s\">\n", enums[i].name, enums[i].valueCount, enums[i].desc + 3);
|
||||
for (int v = 0; v < enums[i].valueCount; v++)
|
||||
{
|
||||
FPrintfEscapes(outFile, " <Value name=%S integer=\"%i\" desc=%S />\n", enums[i].valueName[v], enums[i].valueInteger[v], enums[i].valueDesc[v] + 3);
|
||||
fprintf(outFile, " <Value name=\"%s\" integer=\"%i\" desc=\"%s\" />\n", enums[i].valueName[v], enums[i].valueInteger[v], enums[i].valueDesc[v] + 3);
|
||||
}
|
||||
FPrintfEscapes(outFile, " </Enum>\n");
|
||||
fprintf(outFile, " </Enum>\n");
|
||||
}
|
||||
fprintf(outFile, " </Enums>\n");
|
||||
|
||||
|
|
@ -1133,12 +1133,12 @@ static void ExportParsedData(const char *fileName, int format)
|
|||
fprintf(outFile, " <Functions count=\"%i\">\n", funcCount);
|
||||
for (int i = 0; i < funcCount; i++)
|
||||
{
|
||||
FPrintfEscapes(outFile, " <Function name=%S retType=%S paramCount=\"%i\" desc=%S>\n", funcs[i].name, funcs[i].retType, funcs[i].paramCount, funcs[i].desc + 3);
|
||||
fprintf(outFile, " <Function name=\"%s\" retType=\"%s\" paramCount=\"%i\" desc=\"%s\">\n", funcs[i].name, funcs[i].retType, funcs[i].paramCount, funcs[i].desc + 3);
|
||||
for (int p = 0; p < funcs[i].paramCount; p++)
|
||||
{
|
||||
FPrintfEscapes(outFile, " <Param type=%S name=%S desc=%S />\n", funcs[i].paramType[p], funcs[i].paramName[p], funcs[i].paramDesc[p] + 3);
|
||||
fprintf(outFile, " <Param type=\"%s\" name=\"%s\" desc=\"%s\" />\n", funcs[i].paramType[p], funcs[i].paramName[p], funcs[i].paramDesc[p] + 3);
|
||||
}
|
||||
FPrintfEscapes(outFile, " </Function>\n");
|
||||
fprintf(outFile, " </Function>\n");
|
||||
}
|
||||
fprintf(outFile, " </Functions>\n");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user