| /plan9/sys/src/cmd/spin/ |
| H A D | sym.c | 21 Symbol *context = ZS; variable 84 && samename(sp->context, context) in lookup() 92 && samename(sp->context, context) in lookup() 106 if (context) /* in proctype, refers to global */ in lookup() 109 && !sp->context in lookup() 119 sp->context = context; in lookup() 176 if (now->sym != parnm->context) in checkrun() 207 parnm->context?parnm->context->name:"", buf, parnm->name); in checkrun() 292 && strcmp(sp->xup[t-1]->name, context->name)) in setonexu() 294 sp->xup[t-1]->name, context->name); in setonexu() [all …]
|
| H A D | vars.c | 48 if (s->context && s->type) in getval() 61 if (v->sym->context && v->sym->type) in setval() 75 && ( (!i->sym->context && !s->context) in rm_selfrefs() 76 || ( i->sym->context && s->context in rm_selfrefs() 77 && strcmp(i->sym->context->name, s->context->name) == 0))) in rm_selfrefs() 215 if (!sp->type || sp->context || sp->owner in dumpglobals()
|
| H A D | spin.y | 28 extern Symbol *context, *owner; 120 context = $3->sym; 121 context->ini = $2; /* linenr and file */ 149 context = ZS; 178 init : INIT { context = $1->sym; } 181 rl = ready(context, ZN, $4->sq, 0, ZN, I_PROC); 184 context = ZS; 202 context = $1->sym; 209 context = ZS; 231 events : TRACE { context = $1->sym; [all …]
|
| H A D | pangen1.c | 458 && strcmp(l->s->context->name, s->name) == 0) in end_labs() 484 n = (s->context != ZS)?s->context->ini:s->ini; in prehint() 521 if (sp->context) in checktype() 533 if (sp->context) in checktype() 553 if (sp->context in dolocal() 555 && strcmp(s, sp->context->name) == 0) in dolocal() 568 if (sp->context in dolocal() 573 && strcmp(s, sp->context->name) == 0) in dolocal() 712 if (!sp->context in c_splurge_any() 714 || strcmp(sp->context->name, p->n->name) != 0 in c_splurge_any() [all …]
|
| H A D | flow.c | 139 extern Symbol *context; in prune_opts() 143 || (context && claimproc && strcmp(context->name, claimproc) == 0)) in prune_opts() 586 { Label *l; extern Symbol *context; in set_lab() 593 && l->c == context in set_lab() 601 l->c = context; in set_lab() 620 && s->context == l->s->context) in get_labspec() 680 { Label *l; extern Symbol *context; in fix_dest() 697 if (context == a) in fix_dest()
|
| H A D | main.c | 30 extern Symbol *context; 607 if (a->who == context in setaccess() 614 a->who = context; in setaccess() 649 if (!context) return n; in nn() 656 if (context->name == claimproc) in nn()
|
| H A D | sched.c | 19 extern Symbol *Fname, *context; 563 { context = X->n; in sched() 670 context = ZS; in sched() 754 t->context = r->n; in addsymbol() 789 && sp->context in setlocals() 790 && strcmp(sp->context->name, r->n->name) == 0 in setlocals()
|
| H A D | pangen6.c | 129 { if (s->context && s->type) in AST_var() 130 printf(":%s:L:", s->context->name); in AST_var() 387 && sp->context in AST_par_chans() 388 && strcmp(sp->context->name, p->n->name) == 0 in AST_par_chans() 496 if (toplevel && as->context != bs->context) in AST_mutual() 712 && u->n->sym->context in AST_relpar() 713 && strcmp(u->n->sym->context->name, s) == 0) in AST_relpar() 1826 && !sp->context /* globals */ in AST_var_init() 1842 && sp->context in AST_var_init() 1843 && strcmp(sp->context->name, a->p->n->name) == 0 in AST_var_init()
|
| H A D | pangen2.c | 29 extern Symbol *Fname, *oFname, *context; 630 { if (s->context) in dolen() 779 j = find_id(s->context); in genconditionals() 790 { if (s->context) in genconditionals() 1486 oc = context; /* remember */ in lab_transfer() 1493 context = s->context; in lab_transfer() 1497 context = oc; /* restore */ in lab_transfer() 2114 if (n->sym->context in has_global() 2989 if (s->context && context && s->type) in putname() 3010 { if (s->context in putname() [all …]
|
| H A D | spinlex.c | 42 extern Symbol *context, *owner; 742 if (!p->nm->context in plunk_reverse() 1031 s->context = context; in prep_inline() 1128 if (context) in set_cur_scope() 1463 if (context) owner = ZS; in yylex()
|
| /plan9/sys/src/ape/cmd/diff/ |
| H A D | context.c | 152 first0 = max (first0 - context, i); 153 first1 = max (first1 - context, i); 154 last0 = min (last0 + context, files[0].valid_lines - 1); 155 last1 = min (last1 + context, files[1].valid_lines - 1); 285 first0 = max (first0 - context, i); 286 first1 = max (first1 - context, i); 287 last0 = min (last0 + context, files[0].valid_lines - 1); 288 last1 = min (last1 + context, files[1].valid_lines - 1); 382 ? context 383 : 2 * context + 1);
|
| H A D | diff.c | 253 context = -1; 276 if (context == -1) 277 context = 0; 284 context = context * 10 + c - '0'; 309 if (context >= 0) 312 if (ck_atoi (optarg, &context)) 612 context = 0; 613 else if (context == -1) 615 context = 3;
|
| H A D | io.c | 367 if (context <= i && no_diff_means_no_output) 555 for (prefix_count = 1; prefix_count < context + 1; prefix_count *= 2) 561 + context; 591 buffered_prefix = prefix_count && context < lines ? context : lines; 599 + context); 606 linbuf1[i] = linbuf0[(lines - context + i) & prefix_mask];
|
| H A D | mkfile | 16 context.$O\
|
| H A D | diff.texi | 524 without any surrounding context. Sometimes such output is the clearest 526 unchanged lines (although you can get similar results with the context 527 or unified formats by using 0 lines of context). However, this format 529 context format (@pxref{Context Format}) and the unified format 608 @cindex context output format 614 files are called the @dfn{context}. 616 GNU @code{diff} provides two output formats that show context around the 617 differing lines: @dfn{context format} and @dfn{unified format}. It can 623 that show context so that they can apply the diffs even if they have 626 context around the differing lines; if those lines are actually a few [all …]
|
| H A D | ChangeLog | 180 * context.c (print_context_label): Check whether ctime yields 0. 470 * context.c (print_context_label): 760 * context.c (print_context_script, find_function): Context 835 * context.c (find_hunk): Glue together two non-ignorable changes that 919 * context.c (pr_context_hunk): Likewise. 1004 * analyze.c, context.c, util.c: Test whether the lists, not 1006 * util.c (analyze_hunk), context.c (find_function): Compare 1097 * context.c: Align context with tab if -T is given. Tune. 1167 Print the special headers for context format here. 1169 * context.c (pr_context_hunk, pr_unidiff_hunk): Call begin_output. [all …]
|
| /plan9/sys/src/ape/cmd/patch/ |
| H A D | pch.c | 760 register LINENUM context = 0; local 849 context = 0; 887 ptrn_prefix_context = context; 888 ptrn_suffix_context = context; 921 repl_context = context; 959 || context != 0 962 context = 0; 983 ptrn_prefix_context = context; 988 repl_prefix_context = context; 999 context = 0; [all …]
|
| H A D | NEWS | 16 * `patch' can now recognize context diffs that have been encapsulated 53 `Index:' lines are normally ignored for context diffs, 66 nonexistent files if the input is a context diff. 67 A file is assumed to not exist if its context diff header 127 --- line of context diffs; then from Index: line; /dev/tty is
|
| H A D | patch.c | 218 LINENUM context = (prefix_context < suffix_context local 220 LINENUM mymaxfuzz = (maxfuzz < context ? maxfuzz : context); 809 LINENUM context = (prefix_context < suffix_context local 811 LINENUM prefix_fuzz = fuzz + prefix_context - context; 812 LINENUM suffix_fuzz = fuzz + suffix_context - context;
|
| H A D | ChangeLog | 68 * patch.c (locate_hunk): Fix bug when locating context diff hunks 98 (intuit_diff_type): Missing context diff headers are now warnings, 263 or context diff. 365 Fix bug with computing size of prefix and suffix context 366 with ordinary context diffs. Report malformed patch if a unified diff 367 has nothing but context. 436 handle it more precisely: context diffs with partial contexts 437 can only match file ends, since the partial context can occur 528 Avoid stating the same file twice in common case of context diffs. 564 Suggest diff -a. Include caveats about what context diffs cannot represent. [all …]
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gp_vms.c | 59 uint context, length; member 298 LIB$FIND_FILE_END(&pfen->context); in gp_free_enumeration() 366 pfen->context = 0; in gp_enumerate_files_init() 394 i = LIB$FIND_FILE(&pfen->pattern, &result, &pfen->context, in gp_enumerate_files_next()
|
| H A D | gdevpdfu.c | 667 pdf_open_contents(gx_device_pdf * pdev, pdf_context_t context) in pdf_open_contents() argument 671 while ((proc = context_procs[pdev->context][context]) != 0) { in pdf_open_contents() 676 pdev->context = (pdf_context_t) code; in pdf_open_contents() 678 pdev->context = context; in pdf_open_contents() 686 if (pdev->context == PDF_IN_NONE) in pdf_close_contents() 1302 pdf_open_page(gx_device_pdf * pdev, pdf_context_t context) in pdf_open_page() argument 1314 return pdf_open_contents(pdev, context); in pdf_open_page() 1332 if (pdev->context > PDF_IN_STREAM) { in pdf_unclip()
|
| H A D | gdevpdfi.c | 258 pdf_typed_image_context_t context) in pdf_begin_typed_image() argument 322 in_line = context == PDF_IMAGE_DEFAULT && in pdf_begin_typed_image() 418 pinfo, context); in pdf_begin_typed_image() 484 if (context == PDF_IMAGE_TYPE3_MASK) { in pdf_begin_typed_image() 515 (context == PDF_IMAGE_TYPE3_MASK ? in pdf_begin_typed_image() 518 context == PDF_IMAGE_TYPE3_MASK ? in pdf_begin_typed_image() 520 context == PDF_IMAGE_TYPE3_DATA ? in pdf_begin_typed_image()
|
| H A D | gdevpdfx.h | 371 pdf_context_t context; member 515 pdf_context_t context; member 749 int pdf_open_contents(gx_device_pdf * pdev, pdf_context_t context); 895 int pdf_open_page(gx_device_pdf * pdev, pdf_context_t context);
|
| /plan9/sys/src/cmd/unix/drawterm/gui-osx/ |
| H A D | screen.c | 58 static CGContextRef context; variable 729 QDBeginCGContext( GetWindowPort(theWindow), &context); in screenload() 736 CGContextDrawImage(context, rbounds, subimg); in screenload() 737 CGContextFlush(context); in screenload() 739 QDEndCGContext( GetWindowPort(theWindow), &context); in screenload()
|