Annotation of cci/sys/stand/vdfmt/cmd.h, revision 1.1.1.1

1.1       root        1: #define        QUIT    -1
                      2: 
                      3: typedef struct {
                      4:        int     cmd_token;
                      5:        char    *cmd_text;
                      6:        char    *cmd_help;
                      7: } cmd_text_element;
                      8: 
                      9: typedef struct {
                     10:        int     cmd_min;
                     11:        int     cmd_max;
                     12: } cmd_digit_element;
                     13: 
                     14: #define ismustmatch(c) ((((c)>' ')&&((c)<'a')) || (((c)>'z')&&((c)<='~')))
                     15: #define isupper(c)     (((c) >= 'A') && ((c) <= 'Z'))
                     16: #define islower(c)     (((c) >= 'a') && ((c) <= 'z'))
                     17: #define toupper(c)     (islower(c) ? ((c) & ~040) : c)
                     18: #define tolower(c)     (isupper(c) ? ((c) | 040) : c)
                     19: 
                     20: 
                     21: #define skipdigits(ptr)        while(is_digit(*ptr)) ptr++
                     22: #define skip_junk(ptr) while(*ptr && !is_digit(*ptr) &&\
                     23:                            (*ptr != '-') && (*ptr != '~')) ptr++
                     24: #define is_digit(c)    (((c) >= '0') && ((c) <= '9'))
                     25: #define        finddigit(ptr)  while(*ptr && !is_digit(*ptr)) ptr++
                     26: 
                     27: #define trim_white(ptr) while((*ptr == ' ') || (*ptr == '\t')) ptr++
                     28: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.