commands: Rename the command functions
Command functions are traditionally named like the command shortened
to four characters. When this name collides with a keyword or library
function, we abbreviate more: brea(), rea(). A few are unabbreviated,
e.g. execute(). A few have different names, e.g. explain(), not
list().
Commit 23726b379
(v4.3.0) suppressed a GCC warning about carg()
colliding with its built-in function.
Ron Koenderink reported Microsoft Visual Studio 2019 fails to link:
"_carg already defined in ucrtd.lib(ucrtbased.dll)".
Time to clean this up: rename the functions to c_FOO(), where FOO is
the unabbreviated name of the command.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
a6c46316e9
commit
c6ec6a41c2
158 changed files with 664 additions and 524 deletions
|
@ -42,7 +42,7 @@
|
|||
#include "plane.h"
|
||||
|
||||
int
|
||||
arm(void)
|
||||
c_arm(void)
|
||||
{
|
||||
struct nchrstr *ncp;
|
||||
struct plchrstr *plc;
|
||||
|
@ -132,7 +132,7 @@ arm(void)
|
|||
}
|
||||
|
||||
int
|
||||
disarm(void)
|
||||
c_disarm(void)
|
||||
{
|
||||
struct plnstr pl;
|
||||
struct nukstr nuke;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue