Searched refs:sh_lexstates (Results 1 - 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libshell/common/sh/
H A Ddefs.c43 char *sh_lexstates[ST_NONE] = {0}; variable
H A Dmacro.c85 #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];
344 switch(n=sh_lexstates[ST_DOL][c])
357 if(sh_lexstates[ST_NORM][c]==S_BREAK)
429 register const char *state = sh_lexstates[ST_MACRO];
535 if((n==S_DIG || ((paren+ere) && sh_lexstates[ST_DOL][*(unsigned char*)cp]==S_ALP)))
1043 switch(isascii(c)?sh_lexstates[ST_DOL][c]:S_ALP)
1453 if(sh_lexstates[ST_BRACE][c]==S_MOD1 && c!='*' && c!= ':')
1874 if(type==M_BRACE && sh_lexstates[ST_NORM][c]==S_BREAK)
1947 if(!(isescchar(sh_lexstates[ST_QUOT
[all...]
H A Dinit.c407 if(sh_lexstates[ST_BEGIN]!=sh_lexrstates[ST_BEGIN])
408 free((void*)sh_lexstates[ST_BEGIN]);
413 sh_lexstates[ST_BEGIN] = state[0] = (char*)malloc(4*(1<<CHAR_BIT));
415 sh_lexstates[ST_NAME] = state[1] = state[0] + (1<<CHAR_BIT);
417 sh_lexstates[ST_DOL] = state[2] = state[1] + (1<<CHAR_BIT);
419 sh_lexstates[ST_BRACE] = state[3] = state[2] + (1<<CHAR_BIT);
446 sh_lexstates[ST_BEGIN]=(char*)sh_lexrstates[ST_BEGIN];
447 sh_lexstates[ST_NAME]=(char*)sh_lexrstates[ST_NAME];
448 sh_lexstates[ST_DOL]=(char*)sh_lexrstates[ST_DOL];
449 sh_lexstates[ST_BRAC
[all...]
H A Dstring.c351 else if(c==']' || (c!=':' && c<=0xff && (c=sh_lexstates[ST_NORM][c]) && c!=S_EPAT))
487 else if ((c == '#' || c == '~') && cp == vp || c == ']' || c != ':' && (c = sh_lexstates[ST_NORM][c]) && c != S_EPAT)
H A Dlex.c369 state = sh_lexstates[mode];
666 sh_lexstates[ST_DOL][n]==S_DIG
936 if(c=='*' || (n=sh_lexstates[ST_BRACE][c])!=S_MOD1 && n!=S_MOD2)
999 if((n=sh_lexstates[ST_BEGIN][c])==0 || n==S_OP || n==S_NLTOK)
1016 if(lp->lexd.warn && c!='/' && sh_lexstates[ST_NORM][c]!=S_BREAK && (c!='"' || mode==ST_QUOTE))
1170 if(n==RBRACT || sh_lexstates[ST_NORM][n])
1514 if(n==0 && !sh_lexstates[ST_BEGIN][c])
1518 if(sh_lexstates[ST_NAME][c])
1522 if(sh_lexstates[ST_NAME][c]==S_BREAK)
1736 state = sh_lexstates[ST_LI
[all...]
H A Dname.c1178 (c>=0x200 || !(c=sh_lexstates[ST_NORM][c]) || c==S_EPAT || c==S_COLON));
/illumos-gate/usr/src/lib/libshell/common/include/
H A Dlexstates.h110 # 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];
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dcompletion.c42 unsigned char *state = (unsigned char*)sh_lexstates[2];

Completed in 62 milliseconds