Home
last modified time | relevance | path

Searched refs:place (Results 1 – 25 of 972) sorted by relevance

12345678910>>...39

/openbsd/src/usr.bin/pr/
Degetopt.c66 static char *place = EMSG; /* option letter processing */ in egetopt() local
73 *place = savec; in egetopt()
77 if (!*place) { in egetopt()
82 ((*(place = nargv[eoptind]) != '-') && (*place != '+'))) { in egetopt()
83 place = EMSG; in egetopt()
87 delim = (int)*place; in egetopt()
88 if (place[1] && *++place == '-' && !place[1]) { in egetopt()
93 place = EMSG; in egetopt()
101 if ((eoptopt = (int)*place++) == (int)':' || (eoptopt == (int)'?') || in egetopt()
107 if ((eoptopt == (int)'-') && !*place) in egetopt()
[all …]
/openbsd/src/libexec/tradcpp/
Dplace.h41 struct place { struct
51 void place_setnowhere(struct place *p); argument
52 void place_setbuiltin(struct place *p, unsigned num);
53 void place_setcommandline(struct place *p, unsigned word, unsigned column);
54 void place_setfilestart(struct place *p, const struct placefile *pf);
56 void place_addcolumns(struct place *, unsigned cols);
57 void place_addlines(struct place *, unsigned lines);
59 const char *place_getname(const struct place *);
60 const char *place_getparsedir(const struct place *incplace);
61 bool place_eq(const struct place *, const struct place *);
[all …]
Dplace.c42 struct place includedfrom;
63 placefile_create(const struct place *from, const char *name, in placefile_create()
99 place_getparsedir(const struct place *place) in place_getparsedir() argument
101 if (place->file == NULL) { in place_getparsedir()
104 return place->file->dir; in place_getparsedir()
109 placefile_find(const struct place *incfrom, const char *name) in placefile_find()
126 place_changefile(struct place *p, const char *name) in place_changefile()
144 place_addfile(const struct place *place, const char *file, bool issystem) in place_addfile() argument
148 pf = placefile_create(place, file, issystem); in place_addfile()
151 complain(place, "Maximum include nesting depth exceeded"); in place_addfile()
[all …]
Dmacro.h33 struct place;
38 void macro_define_plain(struct place *, const char *macro,
39 struct place *, const char *expansion);
40 void macro_define_params(struct place *, const char *macro,
41 struct place *, const char *params,
42 struct place *, const char *expansion);
43 void macro_define_magic(struct place *, const char *macro);
47 char *macroexpand(struct place *, const char *buf, size_t len,
50 void macro_sendline(struct place *, const char *buf, size_t len);
51 void macro_sendeof(struct place *);
Dfiles.c180 struct place ptmp; in file_read()
319 mkfilename(struct place *place, const char *dir, const char *file) in mkfilename() argument
326 dir = place_getparsedir(place); in mkfilename()
362 file_search(struct place *place, struct incdirarray *path, const char *name) in file_search() argument
370 assert(place != NULL); in file_search()
375 pf = place_addfile(place, name, true); in file_search()
384 file = mkfilename(place, id->name, name); in file_search()
387 pf = place_addfile(place, file, id->issystem); in file_search()
396 complain(place, "Include file %s not found", name); in file_search()
401 file_readquote(struct place *place, const char *name) in file_readquote() argument
[all …]
Dmain.c91 struct place where;
92 struct place where2;
125 commandline_macro_add(const struct place *p, const char *macro, in commandline_macro_add()
126 const struct place *p2, const char *expansion) in commandline_macro_add()
141 commandline_def(const struct place *p, char *str) in commandline_def()
143 struct place p2; in commandline_def()
168 commandline_undef(const struct place *p, char *str) in commandline_undef()
202 struct place p; in apply_magic_macro()
212 struct place p; in apply_builtin_macro()
259 struct place where;
[all …]
Ddirective.c48 struct place startplace;
111 oneword(const char *what, struct place *p2, char *line) in oneword()
129 ifstate_create(struct ifstate *prev, struct place *p, bool startstate) in ifstate_create()
155 ifstate_push(struct place *p, bool startstate) in ifstate_push()
180 d_if(struct lineplace *lp, struct place *p2, char *line) in d_if()
185 struct place p3 = *p2; in d_if()
213 d_ifdef(struct lineplace *lp, struct place *p2, char *line) in d_ifdef()
231 d_ifndef(struct lineplace *lp, struct place *p2, char *line) in d_ifndef()
249 d_elif(struct lineplace *lp, struct place *p2, char *line) in d_elif()
253 struct place p3 = *p2; in d_elif()
[all …]
Deval.c131 struct place place; member
142 token_create(const struct place *p, enum tokens tok, int val) in token_create()
147 t->place = *p; in token_create()
303 eval_bop(struct place *p, int lv, enum tokens op, int rv) in eval_bop()
448 t2->place = t3->place; in tryreduce()
462 t1->place = t2->place; in tryreduce()
471 complain(&t2->place, "Invalid unary operator"); in tryreduce()
487 t4->val = eval_bop(&t3->place, in tryreduce()
524 complain(&t1->place, "Value expected within ()"); in tryreduce()
536 complain(&t1->place, "Operator expected"); in tryreduce()
[all …]
Dutils.h33 struct place;
66 PF(2, 3) void complain(const struct place *, const char *fmt, ...);
70 void debuglog_open(const struct place *p, /*const*/ char *file);
72 PF(2, 3) void debuglog(const struct place *p, const char *fmt, ...);
73 PF(3, 4) void debuglog2(const struct place *p, const struct place *p2,
Dfiles.h30 struct place;
38 void file_readquote(struct place *, const char *name);
39 void file_readbracket(struct place *, const char *name);
40 void file_readabsolute(struct place *, const char *name);
Dmacro.c59 struct place defplace;
60 struct place expansionplace;
182 macro_create(struct place *p1, const char *name, unsigned hash, in macro_create()
183 struct place *p2) in macro_create()
463 macro_define_common_start(struct place *p1, const char *macro, in macro_define_common_start()
464 struct place *p2) in macro_define_common_start()
517 macro_parse_parameters(struct macro *m, struct place *p, const char *params) in macro_parse_parameters()
605 macro_define_plain(struct place *p1, const char *macro, in macro_define_plain()
606 struct place *p2, const char *expansion) in macro_define_plain()
618 macro_define_params(struct place *p1, const char *macro, in macro_define_params()
[all …]
/openbsd/src/gnu/llvm/lldb/source/Host/common/
DGetOptInc.cpp47 static const char *place = EMSG; /* option letter processing */ variable
119 current_argv = const_cast<char *>(place); in parse_long_options()
257 if (optreset || !*place) { /* update scanning pointer */ in getopt_internal()
260 place = EMSG; in getopt_internal()
275 if (*(place = nargv[optind]) != '-' || in getopt_internal()
276 (place[1] == '\0' && strchr(options, '-') == NULL)) { in getopt_internal()
277 place = EMSG; /* found non-option */ in getopt_internal()
311 if (place[1] != '\0' && *++place == '-' && place[1] == '\0') { in getopt_internal()
313 place = EMSG; in getopt_internal()
333 if (long_options != NULL && place != nargv[optind] && in getopt_internal()
[all …]
/openbsd/src/lib/libc/stdlib/
Dgetopt_long.c91 static char *place = EMSG; /* option letter processing */ variable
171 current_argv = place; in parse_long_options()
323 if (optreset || !*place) { /* update scanning pointer */ in getopt_internal()
326 place = EMSG; in getopt_internal()
343 if (*(place = nargv[optind]) != '-' || in getopt_internal()
344 (place[1] == '\0' && strchr(options, '-') == NULL)) { in getopt_internal()
345 place = EMSG; /* found non-option */ in getopt_internal()
381 if (place[1] != '\0' && *++place == '-' && place[1] == '\0') { in getopt_internal()
383 place = EMSG; in getopt_internal()
404 if (long_options != NULL && place != nargv[optind] && in getopt_internal()
[all …]
/openbsd/src/gnu/usr.bin/binutils/opcodes/
Dia64-opc.c305 opcode_verify (ia64_insn opcode, int place, enum ia64_insn_type type) in opcode_verify() argument
307 if (main_table[place].opcode_type != type) in opcode_verify()
311 if (main_table[place].flags in opcode_verify()
317 if (main_table[place].flags & IA64_OPCODE_F2_EQ_F3) in opcode_verify()
332 o2 = elf64_ia64_operands + main_table[place].operands[2]; in opcode_verify()
474 int place = ia64_dis_names[disent].insn_index; in locate_opcode_ent() local
478 if (opcode_verify (opcode, place, type) in locate_opcode_ent()
528 make_ia64_opcode (ia64_insn opcode, const char *name, int place, int depind) in make_ia64_opcode() argument
533 res->type = main_table[place].opcode_type; in make_ia64_opcode()
534 res->num_outputs = main_table[place].num_outputs; in make_ia64_opcode()
[all …]
Dm68k-dis.c481 register int place = d[1]; local
496 val = fetch_arg (buffer, place, 2, info);
506 reg_names[fetch_arg (buffer, place, 3, info) + 8]);
559 val = fetch_arg (buffer, place, 12, info);
572 val = fetch_arg (buffer, place, 3, info);
580 val = fetch_arg (buffer, place, 3, info);
588 if (place == 'h')
591 val = fetch_arg (buffer, place, 1, info);
596 val = fetch_arg (buffer, place, 8, info);
604 val = fetch_arg (buffer, place, 4, info);
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/opcodes/
Dia64-opc.c305 opcode_verify (ia64_insn opcode, int place, enum ia64_insn_type type) in opcode_verify() argument
307 if (main_table[place].opcode_type != type) in opcode_verify()
311 if (main_table[place].flags in opcode_verify()
317 if (main_table[place].flags & IA64_OPCODE_F2_EQ_F3) in opcode_verify()
332 o2 = elf64_ia64_operands + main_table[place].operands[2]; in opcode_verify()
474 int place = ia64_dis_names[disent].insn_index; in locate_opcode_ent() local
478 if (opcode_verify (opcode, place, type) in locate_opcode_ent()
528 make_ia64_opcode (ia64_insn opcode, const char *name, int place, int depind) in make_ia64_opcode() argument
533 res->type = main_table[place].opcode_type; in make_ia64_opcode()
534 res->num_outputs = main_table[place].num_outputs; in make_ia64_opcode()
[all …]
Dm68k-dis.c577 int place = d[1]; in print_insn_arg() local
592 val = fetch_arg (buffer, place, 2, info); in print_insn_arg()
602 reg_names[fetch_arg (buffer, place, 3, info) + 8]); in print_insn_arg()
655 val = fetch_arg (buffer, place, 12, info); in print_insn_arg()
668 val = fetch_arg (buffer, place, 3, info); in print_insn_arg()
676 val = fetch_arg (buffer, place, 3, info); in print_insn_arg()
684 if (place == 'h') in print_insn_arg()
687 val = fetch_arg (buffer, place, 1, info); in print_insn_arg()
692 val = fetch_arg (buffer, place, 8, info); in print_insn_arg()
700 val = fetch_arg (buffer, place, 4, info); in print_insn_arg()
[all …]
/openbsd/src/sys/dev/pci/drm/i915/
Di915_ttm_buddy_manager.c36 const struct ttm_place *place, in i915_ttm_buddy_man_alloc() argument
47 lpfn = place->lpfn; in i915_ttm_buddy_man_alloc()
55 ttm_resource_init(bo, place, &bman_res->base); in i915_ttm_buddy_man_alloc()
59 if (place->flags & TTM_PL_FLAG_TOPDOWN) in i915_ttm_buddy_man_alloc()
62 if (place->flags & TTM_PL_FLAG_CONTIGUOUS) in i915_ttm_buddy_man_alloc()
65 if (place->fpfn || lpfn != man->size) in i915_ttm_buddy_man_alloc()
92 err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT, in i915_ttm_buddy_man_alloc()
154 const struct ttm_place *place, in i915_ttm_buddy_man_intersects() argument
162 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_intersects()
165 GEM_BUG_ON(!place->lpfn); in i915_ttm_buddy_man_intersects()
[all …]
Dintel_region_ttm.c210 struct ttm_place place = {}; in intel_region_ttm_resource_alloc() local
216 place.flags |= TTM_PL_FLAG_CONTIGUOUS; in intel_region_ttm_resource_alloc()
218 if (WARN_ON(overflows_type(offset >> PAGE_SHIFT, place.fpfn))) { in intel_region_ttm_resource_alloc()
222 place.fpfn = offset >> PAGE_SHIFT; in intel_region_ttm_resource_alloc()
223 if (WARN_ON(overflows_type(place.fpfn + (size >> PAGE_SHIFT), place.lpfn))) { in intel_region_ttm_resource_alloc()
227 place.lpfn = place.fpfn + (size >> PAGE_SHIFT); in intel_region_ttm_resource_alloc()
230 place.flags |= TTM_PL_FLAG_TOPDOWN; in intel_region_ttm_resource_alloc()
232 place.fpfn = 0; in intel_region_ttm_resource_alloc()
233 if (WARN_ON(overflows_type(resource_size(&mem->io) >> PAGE_SHIFT, place.lpfn))) { in intel_region_ttm_resource_alloc()
237 place.lpfn = resource_size(&mem->io) >> PAGE_SHIFT; in intel_region_ttm_resource_alloc()
[all …]
/openbsd/src/sys/dev/pci/drm/ttm/
Dttm_range_manager.c60 const struct ttm_place *place, in ttm_range_man_alloc() argument
70 lpfn = place->lpfn; in ttm_range_man_alloc()
79 if (place->flags & TTM_PL_FLAG_TOPDOWN) in ttm_range_man_alloc()
82 ttm_resource_init(bo, place, &node->base); in ttm_range_man_alloc()
88 place->fpfn, lpfn, mode); in ttm_range_man_alloc()
118 const struct ttm_place *place, in ttm_range_man_intersects() argument
125 if (place->fpfn >= (node->start + num_pages) || in ttm_range_man_intersects()
126 (place->lpfn && place->lpfn <= node->start)) in ttm_range_man_intersects()
134 const struct ttm_place *place, in ttm_range_man_compatible() argument
140 if (node->start < place->fpfn || in ttm_range_man_compatible()
[all …]
/openbsd/src/bin/pax/
Dgetoldopt.c27 char *place; in getoldopt() local
49 place = strchr(optstring, c); in getoldopt()
51 if (place == NULL || c == ':') { in getoldopt()
56 place++; in getoldopt()
57 if (*place == ':') { in getoldopt()
/openbsd/src/gnu/usr.bin/perl/ext/SDBM_File/
Ddbe.c55 char *place; in getopt() local
68 optarg = place = argv[optind++]; in getopt()
69 if (place[0] != '-' || place[1] == '\0') in getopt()
71 if (place[1] == '-' && place[2] == '\0') in getopt()
73 scan = place + 1; in getopt()
77 place = strchr(optstring, c); in getopt()
78 if (place == NULL || c == ':' || c == ';') { in getopt()
84 if (*++place == ':') { in getopt()
104 else if (*place == ';') { in getopt()
/openbsd/src/sys/dev/pci/drm/amd/amdgpu/
Damdgpu_gtt_mgr.c115 const struct ttm_place *place, in amdgpu_gtt_mgr_new() argument
127 ttm_resource_init(tbo, place, &node->base); in amdgpu_gtt_mgr_new()
128 if (!(place->flags & TTM_PL_FLAG_TEMPORARY) && in amdgpu_gtt_mgr_new()
134 if (place->lpfn) { in amdgpu_gtt_mgr_new()
138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new()
217 const struct ttm_place *place, in amdgpu_gtt_mgr_intersects() argument
220 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_intersects()
235 const struct ttm_place *place, in amdgpu_gtt_mgr_compatible() argument
238 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_compatible()
/openbsd/src/gnu/usr.bin/binutils/ld/emultempl/
Dmmo.em82 struct orphan_save *place;
113 place = &hold_text;
159 bfd_section = place->os->bfd_section;
160 if (place->section == NULL && bfd_section == NULL)
161 bfd_section = output_prev_sec_find (place->os);
163 if (place->section != NULL
169 if (place->section == NULL)
171 place->section = &bfd_section->next;
178 /* Now tack it on to the "place->os" section list. */
179 bfd_section_list_insert (output_bfd, place->section, snew);
[all …]
/openbsd/src/games/adventure/
Dvocab.c58 i = place[object]; in juggle()
71 from = place[object]; in move()
94 if (place[object] == -1) in carry()
96 place[object] = -1; in carry()
115 if (place[object] == -1) in drop()
117 place[object] = where; in drop()

12345678910>>...39