mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
Tidying up arg.c and arg.h.
Copied from Perforce Change: 181665 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
60ae2d01be
commit
dfd7156740
2 changed files with 14 additions and 8 deletions
|
|
@ -42,12 +42,12 @@ Bool ArgCheckChain(Arg arg) {
|
|||
}
|
||||
|
||||
Bool ArgCheckSize(Arg arg) {
|
||||
UNUSED(arg);
|
||||
UNUSED(arg); /* TODO: Add and call SizeCheck */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Bool ArgCheckAddr(Arg arg) {
|
||||
UNUSED(arg);
|
||||
UNUSED(arg); /* TODO: Add and call AddrCheck */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ Bool ArgCheckBool(Arg arg) {
|
|||
}
|
||||
|
||||
Bool ArgCheckCount(Arg arg) {
|
||||
UNUSED(arg);
|
||||
UNUSED(arg); /* TODO: Add and call CountCheck */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -116,6 +116,8 @@ Bool ArgListCheck(ArgList args)
|
|||
}
|
||||
|
||||
|
||||
/* ArgPick -- try to pick an argument out of the argument list by keyword */
|
||||
|
||||
Bool ArgPick(ArgStruct *argOut, ArgList args, Key key) {
|
||||
Index i;
|
||||
|
||||
|
|
@ -136,14 +138,13 @@ found:
|
|||
break;
|
||||
++i;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* C. COPYRIGHT AND LICENSE
|
||||
*
|
||||
* Copyright (C) 2001-2002 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* Copyright (C) 2001-2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* All rights reserved. This is an open source license. Contact
|
||||
* Ravenbrook for commercial licensing options.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -11,9 +11,14 @@
|
|||
|
||||
#include "mpmtypes.h"
|
||||
|
||||
/* KeyStruct -- keyword argument structure */
|
||||
|
||||
/* FIXME: Whether to have a check field should be conditional on variety */
|
||||
/* KeyStruct -- keyword argument structure
|
||||
*
|
||||
* NOTE: Whether or not to have an argument checking field and functions
|
||||
* could be conditional on build variety. Checking arguments isn't on
|
||||
* the critical path, but this might save space if the MPS is being
|
||||
* deployed in a tight memory situation.
|
||||
*/
|
||||
|
||||
#define KeySig ((Sig)0x519CE111) /* SIGnature KEYyy */
|
||||
typedef struct mps_key_s {
|
||||
|
|
@ -49,7 +54,7 @@ extern Bool ArgCheckCount(Arg arg);
|
|||
|
||||
/* C. COPYRIGHT AND LICENSE
|
||||
*
|
||||
* Copyright (C) 2001-2002 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* Copyright (C) 2001-2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* All rights reserved. This is an open source license. Contact
|
||||
* Ravenbrook for commercial licensing options.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue