Home
last modified time | relevance | path

Searched refs:macro (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_nospec.c42 char *macro; in is_nospec() local
50 macro = get_macro_name(expr->pos); in is_nospec()
51 if (macro && strcmp(macro, "array_index_nospec") == 0) in is_nospec()
178 char *macro; in is_nospec_asm() local
185 if (!macro || strcmp(macro, "CALL_NOSPEC") != 0) in is_nospec_asm()
223 char *macro; in match_barrier() local
225 macro = get_macro_name(stmt->pos); in match_barrier()
226 if (!macro) in match_barrier()
228 if (strcmp(macro, "rmb") != 0 && in match_barrier()
229 strcmp(macro, "smp_rmb") != 0 && in match_barrier()
[all …]
H A Dcheck_macro_side_effects.c83 static int is_ignored_macro(const char *macro) in is_ignored_macro() argument
88 if (!strcmp(tmp, macro)) in is_ignored_macro()
97 char *macro, *name; in match_unop() local
102 macro = get_macro_name(raw_expr->pos); in match_unop()
103 if (!macro) in match_unop()
111 if (is_ignored_macro(macro)) in match_unop()
125 macro, name); in match_unop()
138 char *macro; in register_ignored_macros() local
152 macro = alloc_string(show_ident(token->ident)); in register_ignored_macros()
153 add_ptr_list(&ignored_macros, macro); in register_ignored_macros()
H A Dcheck_or_vs_and.c83 char *macro; in is_kernel_min_macro() local
87 macro = get_macro_name(expr->pos); in is_kernel_min_macro()
88 if (!macro) in is_kernel_min_macro()
90 if (strcmp(macro, "min") == 0 || in is_kernel_min_macro()
91 strcmp(macro, "min_t") == 0 || in is_kernel_min_macro()
92 strcmp(macro, "max") == 0 || in is_kernel_min_macro()
93 strcmp(macro, "max_t") == 0) in is_kernel_min_macro()
131 char *macro; in is_unconstant_macro() local
133 macro = get_macro_name(expr->pos); in is_unconstant_macro()
134 if (!macro) in is_unconstant_macro()
[all …]
H A Dcheck_return_negative_var.c26 char *macro; in match_return() local
34 macro = get_macro_name(expr->unop->pos); in match_return()
35 if (macro && !strcmp(macro, "PTR_ERR")) { in match_return()
36 sm_warning("returning -%s()", macro); in match_return()
H A Dcheck_sizeof.c100 char *macro, *tmp; in check_sizeof_number() local
104 macro = get_macro_name(expr->pos); in check_sizeof_number()
106 if (macro && strcmp(tmp, macro) == 0) in check_sizeof_number()
128 char *macro; in register_macro_takes_sizeof_argument() local
142 macro = alloc_string(show_ident(token->ident)); in register_macro_takes_sizeof_argument()
143 add_ptr_list(&macro_takes_sizeof_argument, macro); in register_macro_takes_sizeof_argument()
H A Dcheck_min_t.c24 const char *macro; in match_assign() local
31 macro = get_macro_name(expr->pos); in match_assign()
32 if (!macro) in match_assign()
34 if (strcmp(macro, "min_t")) in match_assign()
H A Dcheck_test_bit.c26 char *macro; in match_test_bit() local
35 macro = get_macro_name(arg->pos); in match_test_bit()
36 if (macro && strstr(macro, "cpu_has")) in match_test_bit()
H A Dcheck_indenting.c26 const char *macro; in in_ignored_macro() local
29 macro = get_macro_name(stmt->pos); in in_ignored_macro()
30 if (!macro) in in_ignored_macro()
34 if (!strcmp(tmp, macro)) in in_ignored_macro()
210 char *macro; in register_ignored_macros() local
224 macro = alloc_string(show_ident(token->ident)); in register_ignored_macros()
225 add_ptr_list(&ignored_macros, macro); in register_ignored_macros()
H A Dcheck_kmalloc_to_bugon.c39 char *macro; in match_condition() local
44 macro = get_macro_name(expr->pos); in match_condition()
45 if (!macro || strcmp(macro, "BUG_ON") != 0) in match_condition()
H A Dcheck_implicit_dependencies_tester.c51 char *macro; in match_syscall_definition() local
55 macro = get_macro_name(sym->pos); in match_syscall_definition()
56 if (macro && in match_syscall_definition()
57 (strncmp("SYSCALL_DEFINE", macro, strlen("SYSCALL_DEFINE")) == 0 || in match_syscall_definition()
58 strncmp("COMPAT_SYSCALL_DEFINE", macro, strlen("COMPAT_SYSCALL_DEFINE")) == 0)) in match_syscall_definition()
H A Dcheck_index_overflow.c126 char *macro; in common_false_positives() local
135 macro = get_macro_name(array->pos); in common_false_positives()
136 if (macro && max.uvalue < 4 && in common_false_positives()
137 (strcmp(macro, "strcmp") == 0 || in common_false_positives()
138 strcmp(macro, "strncmp") == 0 || in common_false_positives()
139 strcmp(macro, "streq") == 0 || in common_false_positives()
140 strcmp(macro, "strneq") == 0 || in common_false_positives()
141 strcmp(macro, "strsep") == 0)) { in common_false_positives()
H A Dcheck_unreachable.c232 char *macro; in register_turn_off_macros() local
249 macro = alloc_string(show_ident(token->ident)); in register_turn_off_macros()
250 add_ptr_list(&turn_off_names, macro); in register_turn_off_macros()
259 char *macro; in register_ignored_macros() local
276 macro = alloc_string(show_ident(token->ident)); in register_ignored_macros()
277 add_ptr_list(&ignore_names, macro); in register_ignored_macros()
/illumos-gate/usr/src/cmd/mandoc/
H A Ddba.c67 struct ohash *macro; in dba_new() local
74 macro = mandoc_malloc(sizeof(*macro)); in dba_new()
75 mandoc_ohash_init(macro, 4, in dba_new()
86 struct ohash *macro; in dba_free() local
96 ohash_delete(macro); in dba_free()
97 free(macro); in dba_free()
353 ohash_insert(macro, slot, entry); in get_macro_entry()
406 struct ohash *macro; in dba_macros_write() local
411 dba_array_FOREACH(macros, macro) { in dba_macros_write()
413 dba_macro_write(macro); in dba_macros_write()
[all …]
H A Ddbm.c44 struct macro { struct
66 static struct macro *macros[MACRO_MAX]; argument
117 macros[im] = (struct macro *)++ep; in dbm_open()
407 static struct dbm_macro macro; in dbm_macro_get() local
413 macro.value = dbm_get(macros[im][iv].value); in dbm_macro_get()
414 macro.pp = dbm_get(macros[im][iv].pages); in dbm_macro_get()
415 return &macro; in dbm_macro_get()
/illumos-gate/usr/src/cmd/make/lib/mksh/
H A Dmacro.cc627 if ((macro != NULL) && macro->body.macro.is_conditional) { in expand_macro()
640 if ((macro == NULL) || (macro->body.macro.value == NULL)) { in expand_macro()
1013 switch (macro->body.macro.daemon) { in expand_value_with_daemon()
1016 expand_value(macro->body.macro.value, destination, cmd); in expand_value_with_daemon()
1030 for (chain = (Chain) macro->body.macro.value; in expand_value_with_daemon()
1091 macro->body.macro.read_only) { in setvar_daemon()
1118 val = macro->body.macro.value; in setvar_daemon()
1201 macro->body.macro.value = value; in setvar_daemon()
1202 macro->body.macro.daemon = daemon; in setvar_daemon()
1223 if (macro->body.macro.exported) { in setvar_daemon()
[all …]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dfind.c112 *macro = '\0'; in findsymbol()
162 s = macro; in findsymbol()
169 *macro = '\0'; in findsymbol()
229 if (*macro != '\0' && s != macro) { in findsymbol()
283 *macro = '\0'; in finddef()
307 s = macro; in finddef()
314 *macro = '\0'; in finddef()
347 if (*macro != '\0' && s != macro) { in finddef()
500 *macro = '\0'; in findcalling()
523 *macro = '\0'; in findcalling()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dpp.tab122 COLLECTING # collecting macro call arguments
126 DEFINITION # processing macro definition
128 DISABLE # disable macro evaluation
136 NOEXPAND # no macro expansions or disables
144 SKIPMACRO # disable next macro
157 BUILTIN # mark macro definitions builtin
172 MARKMACRO # mark macro to disable later
180 DEFINITIONS # output macro definitions
182 FINAL # final hosted macro value
186 INITIAL # initial hosted macro value
[all …]
H A Dppmacref.c42 if (sym->macro && sym->macro->value) in ppmacref()
43 sum = strsum(sym->macro->value, (long)sym->macro->arity); in ppmacref()
H A DHISTORY23 add space before macro actual in replacement text
37 03/15/89 fix PP_TRUNCATE macro id bit table checks
45 01/24/89 fix #undef of SYM_READONLY macro message
93 fix COMPATIBILITY macro arg /**/ pasting bug
110 fix COMPATIBILITY macro recursion bug
130 07/09/87 fix `macro("@*")' bug in expand_special()
147 add #(<sym>=<expr>) to dynamically evaluate macro values
155 fix macro actual arg count test
174 03/22/87 warn about null macro args for STRICT
185 fixed macro stack frame bug during recursive macro arg expansion
[all …]
H A DRELEASE130 01-02-14 ppcall.c: fix macro(tuple*) bug that truncated macro arg expand buffer
137 ppcall.c: handle trailing \ in macro args
165 00-05-09 ppcontrol: fix C++ macro >+> invalid fuse
206 ppcall: fix macro actual arg error checks
223 96-08-11 fix transition macro expansion
249 fix pp:reguard ## macro output
316 proto: int fun xxx((yyy)) is macro call, not decl
324 94-01-01 fix STANDALONE+PP_TRUNCATE fsm macro bug
352 93-01-22 fix ansi macro args recursion bug
363 92-11-11 fix COMPATIBILITY EOF in macro arg list and # in macro body
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Drefer6.c18 #define dsde (macro? "de" : "ds")
19 #define ifnl (macro? sep : ' ')
35 int nauth = 0, i, lastype = 0, cch, macro = 0, la; in putref() local
44 if (lastype && macro) in putref()
49 macro = 1; in putref()
53 macro = 0; in putref()
69 if (macro) in putref()
90 if (macro) in putref()
109 if (macro) in putref()
125 if (lastype && macro) in putref()
H A Droffbib.sh23 macro=-mbib
35 macro="-m$1"
52 $xroff $flags $macro
54 (echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr") | $xroff $flags $macro
/illumos-gate/usr/src/cmd/make/bin/
H A Dmain.cc2112 temp = (Boolean) macro->body.macro.read_only; in read_files_and_state()
2113 macro->body.macro.read_only = false; in read_files_and_state()
2141 macro->body.macro.read_only = temp; in read_files_and_state()
2331 (IS_EQUAL(macro->body.macro.value->string_mb, in read_files_and_state()
2351 macro->body.macro.exported) { in read_files_and_state()
2355 if (macro == NULL) { in read_files_and_state()
2359 macro->body.macro.exported = true; in read_files_and_state()
2451 Property macro; in enter_argv_values() local
2630 macro->body.macro.exported = true; in enter_argv_values()
2755 maybe_append_prop(macro, macro_prop)->body.macro.exported = in read_environment()
[all …]
H A Dmacro.cc59 register Property macro = get_prop(name->prop, macro_prop); in setvar_append() local
68 if(macro != NULL) { in setvar_append()
69 macro_apx->body.macro_appendix.value = macro->body.macro.value; in setvar_append()
/illumos-gate/usr/src/tools/ndrgen/
H A Dndr_gen.c251 generate_member_macro(char *memkind, char *macro, ndr_member_t *mem, in generate_member_macro() argument
256 if (!macro) in generate_member_macro()
257 macro = ""; in generate_member_macro()
265 memkind, macro, fname_type, mem->name); in generate_member_macro()
268 macro, fname_type, mem->name, mem->pdu_offset); in generate_member_macro()
273 generate_member_macro_with_arg(char *memkind, char *macro, in generate_member_macro_with_arg() argument
278 if (!macro) in generate_member_macro_with_arg()
279 macro = "_WITH_ARG"; in generate_member_macro_with_arg()
287 memkind, macro, fname_type, mem->name); in generate_member_macro_with_arg()
290 macro, fname_type, mem->name, mem->pdu_offset); in generate_member_macro_with_arg()

12345678910>>...14