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

/ast/src/cmd/ksh93/sh/
H A Ddefs.c44 char *sh_lexstates[ST_NONE] = {0}; variable
H A Dmacro.c95 #define isbracechar(c) ((c)==RBRACE || (_c_=sh_lexstates[ST_BRACE][c])==S_MOD1 ||_c_==S_MOD2)
272 register const char *state = sh_lexstates[ST_QUOTE];
355 switch(n=sh_lexstates[ST_DOL][c])
369 if(sh_lexstates[ST_NORM][c]==S_BREAK)
441 register const char *state = sh_lexstates[ST_MACRO];
549 if((n==S_DIG || ((paren+ere) && (sh_lexstates[ST_DOL][nc]==S_ALP) || nc=='<' || nc=='>')))
1104 switch(isascii(c)?sh_lexstates[ST_DOL][c]:S_ALP)
1549 if(isascii(c) &&sh_lexstates[ST_BRACE][c]==S_MOD1 && c!='*' && c!= ':')
2000 if(type==M_BRACE && sh_lexstates[ST_NORM][c]==S_BREAK)
2082 if(!(isescchar(sh_lexstates[ST_QUOT
[all...]
H A Dstring.c368 else if(c==']' || c=='=' || (c!=':' && c<=0x7f && (c=sh_lexstates[ST_NORM][c]) && c!=S_EPAT))
514 else if ((c == '#' || c == '~') && cp == vp || c == ']' || c != ':' && (c = sh_lexstates[ST_NORM][c]) && c != S_EPAT)
H A Dinit.c455 if(sh_lexstates[ST_BEGIN]!=sh_lexrstates[ST_BEGIN])
456 free((void*)sh_lexstates[ST_BEGIN]);
462 sh_lexstates[ST_BEGIN] = state[0] = (char*)malloc(4*(1<<CHAR_BIT));
464 sh_lexstates[ST_NAME] = state[1] = state[0] + (1<<CHAR_BIT);
466 sh_lexstates[ST_DOL] = state[2] = state[1] + (1<<CHAR_BIT);
468 sh_lexstates[ST_BRACE] = state[3] = state[2] + (1<<CHAR_BIT);
495 sh_lexstates[ST_BEGIN]=(char*)sh_lexrstates[ST_BEGIN];
496 sh_lexstates[ST_NAME]=(char*)sh_lexrstates[ST_NAME];
497 sh_lexstates[ST_DOL]=(char*)sh_lexrstates[ST_DOL];
498 sh_lexstates[ST_BRAC
[all...]
H A Dlex.c386 state = sh_lexstates[mode];
691 sh_lexstates[ST_DOL][n]==S_DIG
985 if(c=='*' || (n=sh_lexstates[ST_BRACE][c])!=S_MOD1 && n!=S_MOD2)
1049 if((n=sh_lexstates[ST_BEGIN][c])==0 || n==S_OP || n==S_NLTOK)
1068 if(lp->lexd.warn && c!='/' && sh_lexstates[ST_NORM][c]!=S_BREAK && (c!='"' || mode==ST_QUOTE))
1238 if(n==RBRACT || sh_lexstates[ST_NORM][n])
1601 if(n==0 && !sh_lexstates[ST_BEGIN][c])
1605 if(sh_lexstates[ST_NAME][c])
1609 if(sh_lexstates[ST_NAME][c]==S_BREAK)
1668 while(!sh_lexstates[ST_BEGI
[all...]
H A Dname.c1392 (c>=0x200 || !(c=sh_lexstates[ST_NORM][c]) || c==S_EPAT || c==S_COLON));
/ast/src/cmd/ksh93/include/
H A Dlexstates.h110 # define isaname(c) ((c)>0x7f?isalpha(c): sh_lexstates[ST_NAME][(c)]==0)
111 # define isaletter(c) ((c)>0x7f?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];
/ast/src/cmd/ksh93/edit/
H A Dcompletion.c42 unsigned char *state = (unsigned char*)sh_lexstates[2];

Completed in 36 milliseconds