winapi_cleanup

Patrik Stridvall ps at leissner.se
Wed Aug 28 10:47:11 CDT 2002


Here is a new tool in the winapi suite series called winapi_cleanup:

It is very similar to winapi_fixup (that doesn't currently work),
the main difference is that it is supposed to be more ad hoc
and not like the much more ambitions (perhaps to ambitious?)
winapi_fixup actually tries to parse and "understand" the C
source code.

Currently it only removes trailing white space from the .[ch] files.
but it will probably do more simple things in the future like auto
converting C++ comment to C comments and automatically adding include
protecting on headers.

Suggestions on what simple things that needs to be done is welcome.

PS. As a bonus you get a patch that removes trailing white space in
the current tree.

---8<---

*** winapi_cleanup

* tools/winapi/Makefile.in,
  tools/winapi/winapi_cleanup,
  tools/winapi/winapi_cleanup_options.pm:
New tool winapi_cleanup for doing simple automatic cleanups.
Currently it removes trailing white space from the .[ch] files.

*** trailing-white-space

* dlls/msacm/winemp3/decode_i386.c,
  dlls/msacm/winemp3/mpegl3.c,
  dlls/oleaut32/parsedt.c,
  dlls/richedit/reader.c,
  dlls/richedit/text-writer.c,
  dlls/winedos/int67.c,
  dlls/wineps/download.c,
  dlls/wininet/internet.h,
  include/wine/obj_dragdrophelper.h,
  programs/regsvr32/regsvr32.c,
  tools/winedump/output.c:
Removed trailing white space.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winapi_cleanup.diff
Type: application/octet-stream
Size: 709 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020828/c9ca1352/winapi_cleanup.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winapi_cleanup.tar
Type: application/octet-stream
Size: 10240 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020828/c9ca1352/winapi_cleanup-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trailing-white-space.diff
Type: application/octet-stream
Size: 21299 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020828/c9ca1352/trailing-white-space.obj


More information about the wine-patches mailing list