OSDN Git Service

Eliminate old-style procedure declarators
authorGreyMerlin <GreyMerlin7@gmail.com>
Sun, 24 Dec 2017 21:41:54 +0000 (13:41 -0800)
committerGreyMerlin <GreyMerlin7@gmail.com>
Sun, 24 Dec 2017 21:41:54 +0000 (13:41 -0800)
commitb34e54b2e5f6188393e9fb5674ec0579e4351880
tree9a8f4a4b26999053f97688c55a4ea7dd2fdc54e4
parentcfc8b517589c11e29719ea880829c38e0f1d972a
Eliminate old-style procedure declarators

 * Old-style procedure declarators appeared as ...
`myFunc (a, b, c)`
`   int a, c; char * b;`
`{}`
 * This style is very-very old C language.
 * In all modern C and C++, this procedure would be declared as ...
`myFunc (int a, char * b, int c);`

 * This eliminates level-4 warning C4131: "uses old-style declarator"
 * Eliminate the awkward PARAMS() macro, which was used to simulate the
new style on old compilers that lacked the new style.

 * These patches only effect the DiffEngine
12 files changed:
Src/diffutils/lib/cmpbuf.c
Src/diffutils/lib/cmpbuf.h
Src/diffutils/src/ED.C
Src/diffutils/src/NORMAL.C
Src/diffutils/src/analyze.c
Src/diffutils/src/context.c
Src/diffutils/src/diff.h
Src/diffutils/src/ifdef.c
Src/diffutils/src/io.c
Src/diffutils/src/side.c
Src/diffutils/src/system.h
Src/diffutils/src/util.c