mirror of
https://github.com/holub/mame
synced 2025-05-28 08:33:05 +03:00
![]() to whole functions. The other one I'm not so sure about. Commented code is usually hilighted differently, making it very easy to spot.) Hi mamedev, This set of patches has one aim only, to identify chunks of code that have been disabled by the use of C/C++ comments, and to disable them instead by using the preprocessor. The C comment approach to disabling code isn't safe (embedded comments will trip it up), and the C++ comment approach isn't elegant (you shouldn't need to touch every line to disable a chunk of code). Using #if...#endif is preferable always, excepting perhaps if (0) { ... }. The patch has three parts. The first only handles cases where full functions were disabled. The second handles cases where parts of functions were disabled. The third then tries to restore the whitespace that the use of comments converted from tabs to spaces via srcclean.exe. It also cleans up the whitespace in a handful of the files in areas outside of the original two patches. ~aa |
||
---|---|---|
docs | ||
src | ||
.gitattributes | ||
makefile |