Searched refs:sh_lexstates (Results 1 – 8 of 8) sorted by relevance
110 # define isaname(c) ((c)>0xff?isalpha(c): sh_lexstates[ST_NAME][(c)]==0)111 # define isaletter(c) ((c)>0xff?isalpha(c): sh_lexstates[ST_DOL][(c)]==S_ALP && (c)!='.')116 # define isaname(c) (sh_lexstates[ST_NAME][c]==0)117 # define isaletter(c) (sh_lexstates[ST_DOL][c]==S_ALP && (c)!='.')120 #define isadigit(c) (sh_lexstates[ST_DOL][c]==S_DIG)122 #define isexp(c) (sh_lexstates[ST_MACRO][c]==S_PAT||(c)=='$'||(c)=='`')123 #define ismeta(c) (sh_lexstates[ST_NAME][c]==S_BREAK)125 extern char *sh_lexstates[ST_NONE];
43 char *sh_lexstates[ST_NONE] = {0}; variable
369 state = sh_lexstates[mode]; in sh_lex()666 sh_lexstates[ST_DOL][n]==S_DIG in sh_lex()936 if(c=='*' || (n=sh_lexstates[ST_BRACE][c])!=S_MOD1 && n!=S_MOD2) in sh_lex()999 if((n=sh_lexstates[ST_BEGIN][c])==0 || n==S_OP || n==S_NLTOK) in sh_lex()1016 if(lp->lexd.warn && c!='/' && sh_lexstates[ST_NORM][c]!=S_BREAK && (c!='"' || mode==ST_QUOTE)) in sh_lex()1170 if(n==RBRACT || sh_lexstates[ST_NORM][n]) in sh_lex()1514 if(n==0 && !sh_lexstates[ST_BEGIN][c]) in comsub()1518 if(sh_lexstates[ST_NAME][c]) in comsub()1522 if(sh_lexstates[ST_NAME][c]==S_BREAK) in comsub()1736 state = sh_lexstates[ST_LIT]; in here_copy()[all …]
407 if(sh_lexstates[ST_BEGIN]!=sh_lexrstates[ST_BEGIN]) in put_lang()408 free((void*)sh_lexstates[ST_BEGIN]); in put_lang()413 sh_lexstates[ST_BEGIN] = state[0] = (char*)malloc(4*(1<<CHAR_BIT)); in put_lang()415 sh_lexstates[ST_NAME] = state[1] = state[0] + (1<<CHAR_BIT); in put_lang()417 sh_lexstates[ST_DOL] = state[2] = state[1] + (1<<CHAR_BIT); in put_lang()419 sh_lexstates[ST_BRACE] = state[3] = state[2] + (1<<CHAR_BIT); in put_lang()446 sh_lexstates[ST_BEGIN]=(char*)sh_lexrstates[ST_BEGIN]; in put_lang()447 sh_lexstates[ST_NAME]=(char*)sh_lexrstates[ST_NAME]; in put_lang()448 sh_lexstates[ST_DOL]=(char*)sh_lexrstates[ST_DOL]; in put_lang()449 sh_lexstates[ST_BRACE]=(char*)sh_lexrstates[ST_BRACE]; in put_lang()[all …]
85 #define isbracechar(c) ((c)==RBRACE || (_c_=sh_lexstates[ST_BRACE][c])==S_MOD1 ||_c_==S_MOD2)261 register const char *state = sh_lexstates[ST_QUOTE]; in sh_machere()344 switch(n=sh_lexstates[ST_DOL][c]) in sh_machere()357 if(sh_lexstates[ST_NORM][c]==S_BREAK) in sh_machere()429 register const char *state = sh_lexstates[ST_MACRO]; in copyto()535 if((n==S_DIG || ((paren+ere) && sh_lexstates[ST_DOL][*(unsigned char*)cp]==S_ALP))) in copyto()1043 switch(isascii(c)?sh_lexstates[ST_DOL][c]:S_ALP) in varsub()1453 if(sh_lexstates[ST_BRACE][c]==S_MOD1 && c!='*' && c!= ':') in varsub()1874 if(type==M_BRACE && sh_lexstates[ST_NORM][c]==S_BREAK) in varsub()1947 if(!(isescchar(sh_lexstates[ST_QUOTE][c]) || in comsubst()[all …]
351 else if(c==']' || (c!=':' && c<=0xff && (c=sh_lexstates[ST_NORM][c]) && c!=S_EPAT)) in sh_fmtq()487 …else if ((c == '#' || c == '~') && cp == vp || c == ']' || c != ':' && (c = sh_lexstates[ST_NORM][… in sh_fmtqf()
1178 (c>=0x200 || !(c=sh_lexstates[ST_NORM][c]) || c==S_EPAT || c==S_COLON)); in nv_open()
42 unsigned char *state = (unsigned char*)sh_lexstates[2]; in fmtx()