Christian Costa : winedump: When generating preamble, use 4 spaces instead of tabs. Remove extra break.
Alexandre Julliard
julliard at winehq.org
Tue Apr 21 11:45:45 CDT 2009
Module: wine
Branch: master
Commit: d5f3d6f7590a3e1aa4995437fe016930f2363105
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d5f3d6f7590a3e1aa4995437fe016930f2363105
Author: Christian Costa <titan.costa at wanadoo.fr>
Date: Mon Apr 20 21:26:53 2009 +0200
winedump: When generating preamble, use 4 spaces instead of tabs. Remove extra break.
---
tools/winedump/output.c | 41 ++++++++++++++++++++++++-----------------
1 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/tools/winedump/output.c b/tools/winedump/output.c
index 2b9d1ae..c2a69d3 100644
--- a/tools/winedump/output.c
+++ b/tools/winedump/output.c
@@ -233,35 +233,42 @@ 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,
+ " 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"
+ " }\n\n"
+ " return TRUE;\n}\n");
}
More information about the wine-cvs
mailing list