/ast/src/lib/libpp/ |
H A D | ppmacref.c | 25 * common preprocessor macro reference handler 42 if (sym->macro && sym->macro->value) 43 sum = strsum(sym->macro->value, (long)sym->macro->arity);
|
H A D | ppbuiltin.c | 25 * preprocessor builtin macro support 33 * process a #(...) builtin macro call 119 if ((c = pplex()) != T_ID || !(sym = ppsymref(pp.symtab, pp.token)) || !sym->macro || sym->macro->arity != 1 || (c = pplex()) != ',') 121 error(2, "#(%s <macro(x)>, ...) expected", p); 246 p = (sym = pprefmac(a, REF_NORMAL)) ? sym->macro->value : "";
|
H A D | ppcontrol.c | 156 * return symbol pointer for next token macro (re)definition 166 error(2, "%s: invalid macro name", pptokstr(pp.token, 0)); 174 error(2, "%s: macro is %s", sym->name, (sym->flags & SYM_READONLY) ? "readonly" : "active"); 177 if (!sym->macro) sym->macro = newof(0, struct ppmacro, 1, 0); 439 error(1, "%s: invalid macro name", pptokstr(pp.token, 0)); 655 mac = sym->macro; 768 error(1, "%s: macro formal argument expected", sym->name); 777 error(2, "%s: %s: duplicate macro formal argument", sym->name, pp.token); 785 error(2, "%s: %s: macro forma [all...] |
H A D | ppinput.c | 345 * macro definition dump 357 if ((mac = sym->macro) && !(sym->flags & (SYM_BUILTIN|SYM_PREDEFINED))) 386 * dump macro definitions for quick loading via ppload() 410 * output macro definitions 449 * load text and macro definitions from a previous ppdump() 515 * get the macro and index offsets 624 error(3, "checkpoint macro seek error"); 626 error(3, "checkpoint macro read error"); 652 if (sym->macro) 660 if (pp.test & 0x1000) error(2, "checkpoint SKIP %s=%s [%s]", sym->name, s, sym->macro [all...] |
H A D | ppmisc.c | 31 * macro symbol def|ref 48 if (!sym->macro) sym = 0;
|
H A D | ppcall.c | 25 * preprocessor macro call 33 * call a macro by pushing its value on the input stream 34 * only the macro token itself has been consumed 35 * -1 returned if macro disabled 63 if (mac = sym->macro) 65 count(macro); 67 error(1, "%s: macro definition overrides assertion: use #%s ...", sym->name, sym->name); 76 error(1, "%s: macro recursion inhibited", sym->name); 98 debug((-5, "macro %s = %s", sym->name, mac->value)); 216 error(1, "%s: macro argument [all...] |
H A D | pplib.h | 48 #define MACKEYARGS _BLD_DEBUG /* name=value macro formals and actuals */ 147 struct ppsymbol* symbol; /* macro info */ 161 struct ppkeyarg /* pp macro keyword arg info */ 183 struct ppmacro* macro; /* saved macro info */ member in struct:pphide 184 unsigned long flags; /* saved symbol flags if macro */ 188 struct ppmacstk /* macro invocation stack frame */ 205 int candidate; /* macro candidates */ 207 int macro; /* macro hit member in struct:counter [all...] |
H A D | pp.h | 106 #define REF_DELETE (REF_NORMAL+2) /* macro definition (internal) */ 107 #define REF_NORMAL 0 /* normal macro reference */ 111 #define SYM_ACTIVE (1L<<0) /* active macro lock */ 112 #define SYM_BUILTIN (1L<<1) /* builtin macro */ 113 #define SYM_DISABLED (1L<<2) /* macro expansion disabled */ 116 #define SYM_FUNCTION (1L<<5) /* macro with args */ 117 #define SYM_INIT (1L<<6) /* initialization macro */ 121 #define SYM_MULTILINE (1L<<10) /* multi-line macro */ 122 #define SYM_NOEXPAND (1L<<11) /* no identifiers in macro body */ 124 #define SYM_PREDEFINED (1L<<13) /* predefined macro */ 380 struct ppmacro* macro; /* macro info */ member in struct:ppsymbol [all...] |
H A D | pplex.c | 543 sfprintf(sfstderr, "%7d: macro candidates\n", pp.counter.candidate); 544 sfprintf(sfstderr, "%7d: macro expansions\n", pp.counter.macro); 1356 ip = sym->macro->value; 1357 c = sym->macro->size; 1745 error(1, "directives in macro call arguments are not portable"); 2011 if (!*(s = pp.macp->arg[c]) && (pp.in->symbol->flags & SYM_VARIADIC) && pp.in->symbol->macro->arity == (c + 1))
|
H A D | ppop.c | 310 * reset macro definition 316 struct ppmacro* mac = ((struct ppsymbol*)p)->macro; 719 * fixed macro stack size -- room for improvement 1247 error(3, "preprocessor not compiled with macro keyword arguments enabled [MACKEYARGS]"); 1424 key->sym.macro = tmp.macro;
|
H A D | ppexpr.c | 221 else if ((sym = pprefmac(args, REF_IF)) && sym->macro) return 1;
|
H A D | ppsearch.c | 85 if (status == INC_TEST || status->macro)
|
/ast/src/cmd/pax/ |
H A D | options.h | 173 char* macro; member in struct:Option_s
|
H A D | misc.c | 485 op->macro = getenv(fmt->t_str + 1); 489 if (op->macro && !(op->flags & OPT_DISABLE)) 494 sfkeyprintf(state.tmp.mac, handle, op->macro, listlookup, NiL); 567 if (!(s = op->macro))
|
H A D | pax.c | 1009 op->macro = strdup(s); 1013 op->macro = 0;
|
/ast/src/cmd/std/ |
H A D | ls.c | 318 short disable; /* macro being expanded */ 319 char* macro; /* macro definition */ member in struct:__anon230 502 kp->macro = getenv(fp->t_str + 1); 506 if (kp->macro && !kp->disable) 511 sfkeyprintf(mp, handle, kp->macro, key, NiL); 589 if (!(s = kp->macro)) 852 if (keys[KEY_header].macro && ftw->level >= 0) 853 sfkeyprintf(sfstdout, lp, keys[KEY_header].macro, key, NiL); 1035 if (keys[KEY_trailer].macro [all...] |
H A D | df.c | 134 short disable; /* macro being expanded */ 135 char* macro; /* macro definition */ member in struct:__anon227 319 Sfio_t* mac; /* temporary macro stream */ 411 kp->macro = getenv(fp->t_str + 1); 416 if (kp->macro && !kp->disable) 419 sfkeyprintf(state.mac, handle, kp->macro, key, NiL); 476 if (!(s = kp->macro)) 729 error(ERROR_SYSTEM|3, "out of space [macro]"); 733 if (kp->macro [all...] |
H A D | ps.c | 180 short disable; /* macro being expanded */ 182 char* macro; /* macro value */ member in struct:Key_s 584 kp->macro = getenv(fp->t_str + 1); 591 if (kp->macro && !kp->disable) 594 sfkeyprintf(state.mac, handle, kp->macro, key, NiL); 1622 if (kp->macro = s)
|
/ast/src/cmd/ksh93/sh/ |
H A D | lex.c | 296 char *quoted, *macro, *split, *expand; local 299 quoted = macro = split = expand = ""; 303 macro = "macro:"; 310 macro, split, expand, fmttoken(lp,tok,tokstr));
|
/ast/src/lib/libast/port/ |
H A D | lcgen.c | 195 macro(FILE* f, char* p1, char* p2, char* p3) function 197 macro(f, p1, p2, p3) 546 macro(lf, "SUBLANG", lp->name, b); 733 macro(lf, "LANG", lp->name, (char*)0); 761 macro(lf, "CTRY", tp->name, (char*)0); 767 macro(lf, "SUBLANG", ll->language->name, tp->name);
|
/ast/src/cmd/ie/ |
H A D | edit.c | 101 static char macro[] = "_??"; variable 658 * look for edit macro named _i 659 * if found, puts the macro definition into lookahead buffer and returns 1 669 macro[1] = i; 672 macro[2] = ed_getchar(); 674 macro[2] = 0; 675 if (isalnum(i)&&(np=nam_search(macro,sh.alias_tree,N_NOSCOPE))&&(out=nam_strval(np)))
|
/ast/src/cmd/html/ |
H A D | troff2html.c | 53 "[m:macros?Locates and reads the macro package file \apackage\a. In order" 74 " macro package magic that went way past the author's willingness" 306 error(ERROR_SYSTEM|3, "out of space [macro call]"); 930 * call a macro 934 macro(Tag_t* tp, Arg_t* ap) function 941 * set macro value 965 mp->call = macro; 973 error(2, "set macro %s `%s'", mp->name + 1, mp->body); 977 * return macro pointer given name 1132 error(ERROR_SYSTEM|3, "-m%s: cannot find macro packag [all...] |
/ast/src/cmd/INIT/ |
H A D | proto.c | 264 struct ppmacro* macro; member in struct:pphide 288 int macro; member in struct:counter 353 struct ppmacro* macro; member in struct:ppsymbol
|