make-dissectors: Indent and cleanup #include
Change-Id: I395d0c168a6ba2fc8fad85598e6355493b897a7a Reviewed-on: https://code.wireshark.org/review/24748 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
514e607dd9
commit
c79fb9d028
|
@ -11,7 +11,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <glib.h>
|
||||
#include <wsutil/glib-compat.h>
|
||||
|
||||
|
@ -132,8 +131,7 @@ int main(int argc, char **argv)
|
|||
"/*\n"
|
||||
" * Do not modify this file. Changes will be overwritten.\n"
|
||||
" *\n"
|
||||
" * Generated automatically by the \"dissectors.c\" target using\n"
|
||||
" * \"make-dissectors\".\n"
|
||||
" * Generated automatically using \"make-dissectors\".\n"
|
||||
" */\n"
|
||||
"\n"
|
||||
"#include <dissectors.h>\n"
|
||||
|
@ -146,13 +144,17 @@ int main(int argc, char **argv)
|
|||
protos->len, handoffs->len);
|
||||
|
||||
for (i = 0; i < protos->len; i++) {
|
||||
g_string_append_printf(s, "void %s(void);\n", (char *)protos->pdata[i]);
|
||||
g_string_append_printf(s,
|
||||
"void %s(void);\n",
|
||||
(char *)protos->pdata[i]);
|
||||
}
|
||||
g_string_append(s,
|
||||
"\n"
|
||||
"dissector_reg_t dissector_reg_proto[] = {\n");
|
||||
for (i = 0; i < protos->len; i++) {
|
||||
g_string_append_printf(s, " { \"%s\", %s },\n", (char *)protos->pdata[i], (char *)protos->pdata[i]);
|
||||
g_string_append_printf(s,
|
||||
" { \"%s\", %s },\n",
|
||||
(char *)protos->pdata[i], (char *)protos->pdata[i]);
|
||||
}
|
||||
g_string_append(s,
|
||||
" { NULL, NULL }\n"
|
||||
|
@ -160,13 +162,17 @@ int main(int argc, char **argv)
|
|||
"\n");
|
||||
|
||||
for (i = 0; i < handoffs->len; i++) {
|
||||
g_string_append_printf(s, "void %s(void);\n", (char *)handoffs->pdata[i]);
|
||||
g_string_append_printf(s,
|
||||
"void %s(void);\n",
|
||||
(char *)handoffs->pdata[i]);
|
||||
}
|
||||
g_string_append(s,
|
||||
"\n"
|
||||
"dissector_reg_t dissector_reg_handoff[] = {\n");
|
||||
for (i = 0; i < handoffs->len; i++) {
|
||||
g_string_append_printf(s, " { \"%s\", %s },\n", (char *)handoffs->pdata[i], (char *)handoffs->pdata[i]);
|
||||
g_string_append_printf(s,
|
||||
" { \"%s\", %s },\n",
|
||||
(char *)handoffs->pdata[i], (char *)handoffs->pdata[i]);
|
||||
}
|
||||
g_string_append(s,
|
||||
" { NULL, NULL }\n"
|
||||
|
|
Loading…
Reference in New Issue