pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.27 1998/01/13 22:56:48 hubbe Exp $"); + RCSID("$Id: pike_types.c,v 1.28 1998/01/16 22:33:07 grubba Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:371:    }    else    error("Couldn't parse type. (%s)\n",buf);       while(ISSPACE(**s)) ++*s;   }         static void internal_parse_typeB(char **s)   { -  while(ISSPACE(**s)) ++*s; +  while(ISSPACE(**((unsigned char **)s))) ++*s;    switch(**s)    {    case '!':    ++*s;    internal_parse_typeB(s);    push_type(T_NOT);    break;       case '(':    ++*s;    internal_parse_typeB(s); -  while(ISSPACE(**s)) ++*s; +  while(ISSPACE(**((unsigned char **)s))) ++*s;    if(**s != ')') error("Expecting ')'.\n");    break;       default:       internal_parse_typeA(s);    }   }      static void internal_parse_typeCC(char **s)   {    internal_parse_typeB(s);    -  while(ISSPACE(**s)) ++*s; +  while(ISSPACE(**((unsigned char **)s))) ++*s;       while(**s == '*')    {    ++*s; -  while(ISSPACE(**s)) ++*s; +  while(ISSPACE(**((unsigned char **)s))) ++*s;    push_type(T_ARRAY);    }   }      static void internal_parse_typeC(char **s)   {    type_stack_mark();       type_stack_mark();    internal_parse_typeCC(s);    type_stack_reverse();    -  while(ISSPACE(**s)) ++*s; +  while(ISSPACE(**((unsigned char **)s))) ++*s;       if(**s == '&')    {    ++*s;    type_stack_mark();    internal_parse_typeC(s);    type_stack_reverse();    type_stack_reverse();    push_type(T_AND);    }else{    type_stack_reverse();    }   }      static void internal_parse_type(char **s)   {    internal_parse_typeC(s);    -  while(ISSPACE(**s)) ++*s; +  while(ISSPACE(**((unsigned char **)s))) ++*s;       while(**s == '|')    {    ++*s;    internal_parse_typeC(s);    push_type(T_OR);    }   }      /* This function is used when adding simul efuns so that