mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 06:50:52 +00:00
0ac18d40c8
Modern editors provide plenty of ways to visually separate functions. Drop the explicit comments that previously served this purpose. Use the following command to automate the change: $ git ls-files -z -- \ "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" | egrep -z -v "^Source/cmCommandArgumentLexer\." | egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmDependsJavaLexer\." | egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmExprLexer\." | egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmFortranLexer\." | egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmListFileLexer\." | egrep -z -v "^Source/cm_sha2" | egrep -z -v "^Source/(kwsys|CursesDialog/form)/" | egrep -z -v "^Utilities/(KW|cm).*/" | xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}' This avoids modifying third-party sources and generated sources.
27 lines
414 B
C
27 lines
414 B
C
#ifdef __cplusplus
|
|
# error "A C++ compiler has been selected for C."
|
|
#endif
|
|
|
|
#ifdef __CLASSIC_C__
|
|
# define const
|
|
#endif
|
|
|
|
|
|
#include "CMakeCompilerABI.h"
|
|
|
|
|
|
#ifdef __CLASSIC_C__
|
|
int main(argc, argv) int argc; char *argv[];
|
|
#else
|
|
int main(int argc, char *argv[])
|
|
#endif
|
|
{
|
|
int require = 0;
|
|
require += info_sizeof_dptr[argc];
|
|
#if defined(ABI_ID)
|
|
require += info_abi[argc];
|
|
#endif
|
|
(void)argv;
|
|
return require;
|
|
}
|