mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[vkgen] Fix some whitespace
I thought I'd indented that block, but I guess I'd gotten confused while doing some before and after checks of the indent.
This commit is contained in:
parent
c3f8e5bcc5
commit
c94e691e7e
1 changed files with 38 additions and 37 deletions
|
@ -157,46 +157,47 @@
|
||||||
[field_def writeParseData];
|
[field_def writeParseData];
|
||||||
}
|
}
|
||||||
if (!readonly) {
|
if (!readonly) {
|
||||||
fprintf (output_file, "static plfield_t %s_fields[] = {\n", [self outname]);
|
fprintf (output_file, "static plfield_t %s_fields[] = {\n",
|
||||||
fprintf (output_file,
|
[self outname]);
|
||||||
"\t{\"@inherit\", 0, QFString, parse_inherit, &%s_fields},\n",
|
|
||||||
[self outname]);
|
|
||||||
if (have_pNext) {
|
|
||||||
fprintf (output_file,
|
fprintf (output_file,
|
||||||
"\t{\"@next\", field_offset (%s, pNext), "
|
"\t{\"@inherit\", 0, QFString, parse_inherit, &%s_fields},\n",
|
||||||
"QFArray, parse_next, 0},", [self outname]);
|
[self outname]);
|
||||||
}
|
|
||||||
for (int i = [field_defs count]; i-- > 0; ) {
|
|
||||||
FieldDef *field_def = [field_defs objectAtIndex:i];
|
|
||||||
[field_def writeField];
|
|
||||||
}
|
|
||||||
fprintf (output_file, "\t{ }\n");
|
|
||||||
fprintf (output_file, "};\n");
|
|
||||||
|
|
||||||
fprintf (output_file, "static int %s (const plfield_t *field,"
|
|
||||||
" const plitem_t *item, void *data, plitem_t *messages,"
|
|
||||||
" void *context)\n",
|
|
||||||
[self parseFunc]);
|
|
||||||
fprintf (output_file, "{\n");
|
|
||||||
if (have_sType) {
|
|
||||||
fprintf (output_file, "\t((%s *) data)->sType", [self outname]);
|
|
||||||
fprintf (output_file, " = %s;\n", [self sTypeName]);
|
|
||||||
}
|
|
||||||
fprintf (output_file,
|
|
||||||
"\tif (PL_Type (item) == QFString\n"
|
|
||||||
"\t\t&& !(item = parse_reference (item, \"%s\", messages, context))) {\n"
|
|
||||||
"\t\treturn 0;\n"
|
|
||||||
"\t}\n"
|
|
||||||
"\treturn PL_ParseStruct (%s_fields, item, data, messages,"
|
|
||||||
" context);\n",
|
|
||||||
[self outname], [self outname]);
|
|
||||||
fprintf (output_file, "}\n");
|
|
||||||
if (have_pNext) {
|
if (have_pNext) {
|
||||||
fprintf (output_file, "static parserref_t %s_parser = ",
|
fprintf (output_file,
|
||||||
[self outname]);
|
"\t{\"@next\", field_offset (%s, pNext), "
|
||||||
fprintf (output_file, "{\"%s\", %s, sizeof(%s)};\n",
|
"QFArray, parse_next, 0},", [self outname]);
|
||||||
[self outname], [self parseFunc], [self outname]);
|
|
||||||
}
|
}
|
||||||
|
for (int i = [field_defs count]; i-- > 0; ) {
|
||||||
|
FieldDef *field_def = [field_defs objectAtIndex:i];
|
||||||
|
[field_def writeField];
|
||||||
|
}
|
||||||
|
fprintf (output_file, "\t{ }\n");
|
||||||
|
fprintf (output_file, "};\n");
|
||||||
|
|
||||||
|
fprintf (output_file, "static int %s (const plfield_t *field,"
|
||||||
|
" const plitem_t *item, void *data, plitem_t *messages,"
|
||||||
|
" void *context)\n",
|
||||||
|
[self parseFunc]);
|
||||||
|
fprintf (output_file, "{\n");
|
||||||
|
if (have_sType) {
|
||||||
|
fprintf (output_file, "\t((%s *) data)->sType", [self outname]);
|
||||||
|
fprintf (output_file, " = %s;\n", [self sTypeName]);
|
||||||
|
}
|
||||||
|
fprintf (output_file,
|
||||||
|
"\tif (PL_Type (item) == QFString\n"
|
||||||
|
"\t\t&& !(item = parse_reference (item, \"%s\", messages, context))) {\n"
|
||||||
|
"\t\treturn 0;\n"
|
||||||
|
"\t}\n"
|
||||||
|
"\treturn PL_ParseStruct (%s_fields, item, data, messages,"
|
||||||
|
" context);\n",
|
||||||
|
[self outname], [self outname]);
|
||||||
|
fprintf (output_file, "}\n");
|
||||||
|
if (have_pNext) {
|
||||||
|
fprintf (output_file, "static parserref_t %s_parser = ",
|
||||||
|
[self outname]);
|
||||||
|
fprintf (output_file, "{\"%s\", %s, sizeof(%s)};\n",
|
||||||
|
[self outname], [self parseFunc], [self outname]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf (output_file, "static exprsym_t %s_symbols[] = {\n", [self outname]);
|
fprintf (output_file, "static exprsym_t %s_symbols[] = {\n", [self outname]);
|
||||||
|
|
Loading…
Reference in a new issue