Replace some typedef names by enum tags.

Also get rid of some mildly silly manual packing of enum types.
This commit is contained in:
Markus Armbruster 2008-03-05 06:09:48 +01:00
parent 7ec0f0c0d0
commit 06a0036c63
13 changed files with 39 additions and 41 deletions

View file

@ -483,10 +483,10 @@ cond_type_mismatch(char *str)
* messages if it is a null pointer.
*/
int
nstr_coerce_val(struct valstr *val, nsc_type to, char *str)
nstr_coerce_val(struct valstr *val, enum nsc_type to, char *str)
{
/* FIXME get rid of promotion? */
nsc_type from = nstr_promote(val->val_type);
enum nsc_type from = nstr_promote(val->val_type);
if (from == NSC_NOTYPE)
return 0;

View file

@ -55,7 +55,7 @@
*
* or 0 for none of the above.
*/
ns_seltype
enum ns_seltype
sarg_type(char *str)
{
int c;