[PATCH] winedump: When generating preamble, use 4 spaces instead of tabs. Remove extra break.
Christian Costa
titan.costa at wanadoo.fr
Mon Apr 13 03:07:52 CDT 2009
---
tools/winedump/output.c | 44 +++++++++++++++++++++++++++-----------------
1 files changed, 27 insertions(+), 17 deletions(-)
-------------- next part --------------
diff --git a/tools/winedump/output.c b/tools/winedump/output.c
index 2b9d1ae..3634b6f 100644
--- a/tools/winedump/output.c
+++ b/tools/winedump/output.c
@@ -233,35 +233,45 @@ void output_c_preamble (void)
if (VERBOSE)
puts ("Creating a forwarding DLL");
- fputs ("\nHMODULE hDLL=0;\t/* DLL to call */\n\n", cfile);
+ fputs ("\nHMODULE hDLL=0; /* DLL to call */\n\n", cfile);
}
fprintf (cfile,
"BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID "
"lpvReserved)\n{\n"
- "\tTRACE(\"(0x%%p, %%d, %%p)\\n\", hinstDLL, fdwReason, lpvReserved);\n"
- "\n\tswitch (fdwReason)\n\t{\n"
- "\t\tcase DLL_WINE_PREATTACH:\n"
- "\t\t\treturn FALSE; /* prefer native version */\n"
- "\t\tcase DLL_PROCESS_ATTACH:\n");
+ " TRACE(\"(0x%%p, %%d, %%p)\\n\", hinstDLL, fdwReason, lpvReserved);\n\n"
+ " switch (fdwReason)\n"
+ " {\n"
+ " case DLL_WINE_PREATTACH:\n"
+ " return FALSE; /* prefer native version */\n"
+ " case DLL_PROCESS_ATTACH:\n");
if (globals.forward_dll)
- fprintf (cfile, "\t\t\thDLL = LoadLibraryA(\"%s\");\n"
- "\t\t\tTRACE(\"Forwarding DLL (%s) loaded (%%p)\\n\", hDLL);\n",
- globals.forward_dll, globals.forward_dll);
+ fprintf (cfile,
+ " DLL = LoadLibraryA(\"%s\");\n"
+ " TRACE(\"Forwarding DLL (%s) loaded (%%p)\\n\", hDLL);\n",
+ globals.forward_dll, globals.forward_dll);
else
- fprintf (cfile, "\t\t\t/* FIXME: Initialisation */\n"
- "\t\t\tDisableThreadLibraryCalls(hinstDLL);\n\t\t\tbreak;\n");
+ fprintf (cfile,
+ " /* FIXME: Initialisation */\n"
+ " DisableThreadLibraryCalls(hinstDLL);\n");
- fprintf (cfile, "\t\t\tbreak;\n\t\tcase DLL_PROCESS_DETACH:\n");
+ fprintf (cfile,
+ " break;\n"
+ " case DLL_PROCESS_DETACH:\n");
if (globals.forward_dll)
- fprintf (cfile, "\t\t\tFreeLibrary(hDLL);\n"
- "\t\t\tTRACE(\"Forwarding DLL (%s) freed\\n\");\n",
- globals.forward_dll);
+ fprintf (cfile,
+ " FreeLibrary(hDLL);\n"
+ " TRACE(\"Forwarding DLL (%s) freed\\n\");\n",
+ globals.forward_dll);
- fprintf (cfile, "\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\n"
- "\treturn TRUE;\n}\n\n\n");
+ fprintf (cfile,
+ " break;\n"
+ " default:\n"
+ " break;\n"
+ " }\n\n"
+ " return TRUE;\n}\n");
}
More information about the wine-patches
mailing list