New functions sk_set, sk_value and sk_num to replace existing macros: this is

to minimise the effects on existing code.
This commit is contained in:
Dr. Stephen Henson
1999-05-19 12:45:16 +00:00
parent 054810ec0e
commit e84240d422
11 changed files with 61 additions and 18 deletions

View File

@@ -284,3 +284,20 @@ void sk_free(STACK *st)
Free((char *)st);
}
int sk_num(STACK *st)
{
if(st == NULL) return -1;
return st->num;
}
char *sk_value(STACK *st, int i)
{
if(st == NULL) return NULL;
return st->data[i];
}
char *sk_set(STACK *st, int i, char *value)
{
if(st == NULL) return NULL;
return (st->data[i] = value);
}