|
|
1.1 ! root 1: /* cmd.h 1.1 86/07/05 */ ! 2: ! 3: #define QUIT -1 ! 4: ! 5: typedef struct { ! 6: int cmd_token; ! 7: char *cmd_text; ! 8: char *cmd_help; ! 9: } cmd_text_element; ! 10: ! 11: typedef struct { ! 12: int cmd_min; ! 13: int cmd_max; ! 14: } cmd_digit_element; ! 15: ! 16: #define ismustmatch(c) ((((c)>' ')&&((c)<'a')) || (((c)>'z')&&((c)<='~'))) ! 17: #define isupper(c) (((c) >= 'A') && ((c) <= 'Z')) ! 18: #define islower(c) (((c) >= 'a') && ((c) <= 'z')) ! 19: #define toupper(c) (islower(c) ? ((c) & ~040) : c) ! 20: #define tolower(c) (isupper(c) ? ((c) | 040) : c) ! 21: ! 22: ! 23: #define skipdigits(ptr) while(is_digit(*ptr)) ptr++ ! 24: #define skip_junk(ptr) while(*ptr && !is_digit(*ptr) &&\ ! 25: (*ptr != '-') && (*ptr != '~')) ptr++ ! 26: #define is_digit(c) (((c) >= '0') && ((c) <= '9')) ! 27: #define finddigit(ptr) while(*ptr && !is_digit(*ptr)) ptr++ ! 28: ! 29: #define trim_white(ptr) while((*ptr == ' ') || (*ptr == '\t')) ptr++ ! 30:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.