Searched refs:token (Results 1 - 25 of 31) sorted by relevance

12

/ast/src/lib/libpp/
H A Dppbuiltin.c46 char* token; local
57 token = pp.token;
58 p = pp.token = pp.tmpbuf;
69 p = pp.token = pp.valbuf;
86 if (op) pp.token = pp.toknxt;
89 *pp.token = 0;
90 pp.token = token;
113 pp.token
[all...]
H A Dppcall.c34 * only the macro token itself has been consumed
105 old_token = pp.token;
107 pp.token = p = oldof(0, char, 0, n);
109 *pp.token++ = ' ';
129 if (streq(pp.token, tp->token))
137 pp.token = old_token;
138 PUSH_TUPLE(sym, tp->token);
148 pp.token = pp.toknxt;
152 if ((pp.token
[all...]
H A Dppmisc.c130 * the first non-space/paren argument token type is returned
148 pptoken = pp.token;
149 pp.token = pp.args;
175 pp.token = pp.toknxt;
186 if (pp.token > pp.args && *(pp.token - 1) == ' ') pp.token--;
187 *pp.token = 0;
194 pp.token = pptoken;
H A Dppcontrol.c141 ppop(op, (flags & TOKOP_DUP) ? strdup(pp.token) : pp.token, n);
156 * return symbol pointer for next token macro (re)definition
166 error(2, "%s: invalid macro name", pptokstr(pp.token, 0));
169 sym = pprefmac(pp.token, REF_CREATE);
207 disable = (c == T_ID && streq(pp.token, pp.pass)) ? 2 : 0;
215 s = pp.token;
330 switch (directive = (int)hashref(pp.dirtab, pp.token))
370 if ((pp.option & ELSEIF) && (c = pplex()) == T_ID && ((n = (int)hashref(pp.dirtab, pp.token)) == IF || n == IFDEF || n == IFNDEF))
422 sym = pprefmac(pp.token, REF_I
[all...]
H A Dppexpr.c35 static int peektoken; /* expression lookahead token */
53 pptoken = pp.token;
54 pp.token = file;
58 pp.token = pptoken;
75 if (pathaccess(pp.token, file, NiL, 0, pp.path, MAXTOKEN + 1))
120 pptoken = pp.token;
121 pp.token = tmp;
124 pp.token = pptoken;
128 c = strcmp(tmp, pp.token);
129 else if ((c = regcomp(&re, pp.token, REG_AUGMENTE
[all...]
H A Dppinput.c300 pptoken = pp.token;
302 pp.token = p = oldof(0, char, 0, n);
308 if ((pp.token = pp.toknxt) > m)
310 c = pp.token - p;
313 pp.token = p + c;
318 *pp.token++ = MARK;
319 *pp.token++ = 'X';
325 *pp.token = 0;
329 pp.token = pptoken;
H A Dpplex.c140 * return next pp token
142 * NOTE: pp.token points to at least MAXTOKEN*2 chars and is
154 #define tp pp.token
155 #define xp &pp.token[MAXTOKEN]
158 #define BACKOUT() (op=pp.token)
161 #define CACHEOUT() (op=pp.token)
278 count(token);
341 count(token);
541 sfprintf(sfstderr, "%7d: emitted tokens\n", pp.counter.token);
1015 pptoken = pp.token;
[all...]
H A Dppargs.c174 strncopy(pp.token, comment, MAXTOKEN);
175 ppprintf("\n#%s %s:%s\n", dirname(PRAGMA), pp.pass, pp.token);
H A Dppop.c117 int token; local
169 switch (token = pplex())
184 if (!token)
186 pathcanon(pp.token, 0, 0);
187 fp = ppsetfile(pp.token);
199 index = token == T_HEADER ? INC_STANDARD : INC_LOCAL;
209 if (streq(pp.token, "all"))
214 else if (streq(pp.token, "hosted"))
219 else if (streq(pp.token, "nohosted"))
226 error(3, "%s unexpected in %s map list", pptokstr(pp.token,
[all...]
H A Dpp.h69 #define PPTOKSIZ ((PPBUFSIZ/2)-1) /* max token size */
225 * (N_PP+30) is the largest valid pp token
236 * NOTE: preserve the token ranges and encodings for is*(x)
282 * identifier and invalid token
362 int value; /* keyword token value */
403 char* token; /* pplex() token name */ member in struct:ppglobals
/ast/src/lib/libtksh/tcl/
H A DtclExpr.c85 int token; /* Type of the last token to be parsed from member in struct:__anon436
92 * The token types are defined below. In addition, there is a table
139 * Precedence table. The values for non-operator token types are ignored.
429 * an error message. In the event of a successful return, the token
432 * token; if the token is a value, then the value is stored at
460 infoPtr->token = END;
466 * First try to parse the token as an integer or floating-point number.
482 infoPtr->token
[all...]
H A DtclEvent.c76 Tcl_TimerToken token; /* Identifies event so it can be member in struct:TimerHandler
150 Tcl_TimerToken token; /* Used to cancel the "after" command. NULL member in struct:AfterInfo
620 * The return value is a token for the timer event, which
668 timerHandlerPtr->token = (Tcl_TimerToken) id;
689 return timerHandlerPtr->token;
707 * token doesn't exist, then nothing happens.
713 Tcl_DeleteTimerHandler(token)
714 Tcl_TimerToken token; /* Result previously returned by
722 if (timerHandlerPtr->token != token) {
[all...]
/ast/src/lib/libexpr/
H A Dexparse.y49 %token MINTOKEN
51 %token CHAR
52 %token INT
53 %token INTEGER
54 %token UNSIGNED
55 %token FLOATING
56 %token STRING
57 %token VOID
58 %token STATIC
60 %token ADDRES
[all...]
/ast/src/cmd/msgcc/
H A Dmsgcpp.c241 if (x > 0 && !strmatch(pp.token, OMIT))
242 sfprintf(sfstdout, "str \"%s\"\n", pp.token);
249 sfprintf(sfstdout, "var %s %s\n", pp.token, s);
270 if (c == '=' && (c = pplex()) == T_STRING && !strmatch(pp.token, OMIT))
272 sfprintf(sfstdout, "def %s \"%s\"\n", s, pp.token);
273 sfprintf(tmp, "#define %s \"%s\"\n", s, pp.token);
/ast/src/lib/libast/regex/
H A Dregcomp.c67 #define eat(p) do{if ((p)->token.push)(p)->token.push=0;else (p)->cursor+=(p)->token.len;}while (0)
125 Token_t token; /* token lookahead */ member in struct:Cenv_s
639 static int token(Cenv_t*);
648 int l = env->token.len;
657 sp = (char*)env->cursor + env->token.len;
685 env->token.min = n;
701 else if (n < env->token
918 token(register Cenv_t* env) function
[all...]
/ast/src/lib/libjcl/
H A Dparse.c59 syntax(Jcl_t* jcl, int level, char* token, char* expected, char* type) argument
64 (*jcl->disc->errorf)(NiL, jcl->disc, level, "%s: %s expected", token ? token : "EOF", expected);
65 else if (token)
66 (*jcl->disc->errorf)(NiL, jcl->disc, level, "%s: unknown %s", token, type ? type : "keyword"); local
73 * push a string on the input token stream
92 * push back one token or entire card if tok==0
222 * set *r to point to the next token in s
268 * set *p to point to the next number token value in s
498 * return the next token
[all...]
/ast/src/cmd/html/
H A Dbb2tok.c85 token(State_t* state, Sfio_t* op, const char* text, const Header_t* head, int push) function
148 #define TOKEN(sp,op,tok,t) do { if (t > tok) { *t = 0; token(sp, op, t = tok, 0, 0); } } while (0)
149 #define PUSH(sp,op,h) token(sp,op,0,h,1)
150 #define POP(sp,op,h) token(sp,op,0,h,0)
/ast/src/cmd/pax/
H A Dnocomment.c75 * get next token on ip
79 token(register Sfio_t* ip) function
261 if (s = token(ip))
284 if ((s = token(ip)) && streq(s, "prototyped"))
/ast/src/lib/libtk/generic/
H A DtkEvent.c168 * mask occurs for token and is processed by Tk_HandleEvent,
176 Tk_CreateEventHandler(token, mask, proc, clientData)
177 Tk_Window token; /* Token for window in which to
186 register TkWindow *winPtr = (TkWindow *) token;
259 Tk_DeleteEventHandler(token, mask, proc, clientData)
260 Tk_Window token; /* Same as corresponding arguments passed */
268 register TkWindow *winPtr = (TkWindow *) token;
/ast/src/cmd/ksh93/include/
H A Dshlex.h40 int token; /* current token number */ member in struct:_shlex_
42 int lasttok; /* previous token number */
43 int digits; /* numerical value with word token */
/ast/src/cmd/cs/vcs_src/
H A Difs_ftp.c251 char token[4], *ptr; local
264 strncpy( token, buf, 3 );
265 token[3] = ' ';
266 while( strncmp( buf, token, 4 ) != 0 ) {
/ast/src/cmd/tksh/
H A DtkMain.c630 Tcl_TimerToken token;
641 token = Tcl_CreateTimerHandler((int)tmout,TmoutProc,&(tFlag));
658 Tcl_DeleteTimerHandler(token);
627 Tcl_TimerToken token; local
/ast/src/cmd/ksh93/sh/
H A Dlex.c181 * If lexd.nocopy is off, then current token is saved on the stack
319 * Returns the token type
336 return(lp->token=LPAREN);
412 lp->token = -1;
418 return(lp->token=EOFSYM);
449 lp->token = EOFSYM;
476 return(lp->token=EOFSYM);
490 lp->token = EOFSYM;
509 return(lp->token='\n');
524 /* return operator token */
[all...]
H A Dparse.c156 eline = lexp->sh->inlineno-(lexp->token==NL);
498 if(lexp->token==NL)
501 lexp->token=';';
505 switch(lexp->token)
529 if(sym && sym!=lexp->token)
531 if(sym!=ELSESYM || (lexp->token!=ELIFSYM && lexp->token!=FISYM))
548 register int token; local
549 while(t && ((token=lexp->token)
562 register int token; local
1653 register int token; local
1667 register int iof = lexp->digits, token=lexp->token; local
1922 register int num,token; local
[all...]
/ast/src/cmd/mailx/
H A Dlist.c274 * Unscan the named token by pushing it onto the regret stack.
277 regret(int token) argument
281 state.regretstack[state.regretp] = token;
771 * scan out a single lexical item and return its token number,

Completed in 335 milliseconds

12