/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_nospec.c | 42 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 184 macro = get_macro_name(stmt->asm_string->pos); in is_nospec_asm() 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() [all …]
|
H A D | check_macro_side_effects.c | 83 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 D | check_or_vs_and.c | 83 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 D | check_return_negative_var.c | 26 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 D | check_sizeof.c | 100 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(¯o_takes_sizeof_argument, macro); in register_macro_takes_sizeof_argument()
|
H A D | check_indenting.c | 26 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 D | check_min_t.c | 24 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 D | check_test_bit.c | 26 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 D | check_kmalloc_to_bugon.c | 39 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 D | check_implicit_dependencies_tester.c | 51 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 D | check_index_overflow.c | 126 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 D | check_unreachable.c | 232 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 D | dba.c | 67 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() 77 dba_array_set(dba->macros, im, macro); in dba_new() 86 struct ohash *macro; in dba_free() local 90 dba_array_FOREACH(dba->macros, macro) { in dba_free() 91 for (entry = ohash_first(macro, &slot); entry != NULL; in dba_free() 92 entry = ohash_next(macro, &slot)) { in dba_free() 96 ohash_delete(macro); in dba_free() 97 free(macro); in dba_free() [all …]
|
H A D | dbm.c | 44 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 ¯o; in dbm_macro_get()
|
/illumos-gate/usr/src/cmd/make/lib/mksh/ |
H A D | macro.cc | 48 static void expand_value_with_daemon(Name, Property macro, String destination, Boolean cmd); 93 expand_value(maybe_append_prop(name, macro_prop)->body.macro.value, in getvar() 276 Property macro = NULL; in expand_macro() local 626 macro = get_prop(name->prop, macro_prop); in expand_macro() 627 if ((macro != NULL) && macro->body.macro.is_conditional) { in expand_macro() 640 if ((macro == NULL) || (macro->body.macro.value == NULL)) { in expand_macro() 650 expand_value_with_daemon(name, macro, &string, cmd); in expand_macro() 659 expand_value_with_daemon(name, macro, &string, cmd); in expand_macro() 823 expand_value_with_daemon(name, macro, destination, cmd); in expand_macro() 854 if (macro_to_add->prop->body.macro.value != NULL) { in add_macro_to_global_list() [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | find.c | 86 char macro[PATLEN + 1]; /* macro name */ in findsymbol() local 110 *macro = '\0'; in findsymbol() 160 s = macro; in findsymbol() 167 *macro = '\0'; in findsymbol() 227 if (*macro != '\0' && s != macro) { in findsymbol() 228 putref(file, macro); in findsymbol() 252 char macro[PATLEN + 1]; /* macro name */ in finddef() local 281 *macro = '\0'; in finddef() 305 s = macro; in finddef() 312 *macro = '\0'; in finddef() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | pp.tab | 122 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 174 READONLY # mark macro definitions readonly 180 DEFINITIONS # output macro definitions 182 FINAL # final hosted macro value [all …]
|
H A D | ppmacref.c | 42 if (sym->macro && sym->macro->value) in ppmacref() 43 sum = strsum(sym->macro->value, (long)sym->macro->arity); in ppmacref()
|
H A D | HISTORY | 23 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 72 05/11/88 T_MOREARGS -> T_VARIADIC; add SYM_VARIADIC for ... last macro arg 79 02/18/88 ignore malformed #'s in COMPATIBILITY macro definitions 86 01/11/88 complete 12/11/87 COMPATIBILITY macro arg /**/ pasting bug fix 93 fix COMPATIBILITY macro arg /**/ pasting bug 110 fix COMPATIBILITY macro recursion bug 120 09/17/87 fix macro formal bug that didn't update pointers after realloc() 130 07/09/87 fix `macro("@*")' bug in expand_special() [all …]
|
H A D | RELEASE | 2 12-02-29 pp.probe: handle predefined function-like macro definitions 15 09-01-06 ppcall.c: fix macro definition overwrite bug -- I know 27 07-03-11 add -D-Y pp:pedantic, PP_WARN macro formal parenthesis checks 62 03-12-12 ppcall.c: missing macro actual warned but expanded 75 03-02-18 pplex.c: handle COMPATIBILITY \" and \' in macro actuals 107 02-01-23 probe.win32: add more msvc predefined macro candidates 124 01-04-25 pp.probe: split macro probe files for compilers that have #line limits 130 01-02-14 ppcall.c: fix macro(tuple*) bug that truncated macro arg expand buffer 137 ppcall.c: handle trailing \ in macro args 148 pp.probe: filter out invalid symbols for predefined macro scan, duh [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | refer6.c | 16 #define dsde (macro? "de" : "ds") 17 #define ifnl (macro? sep : ' ') 33 int nauth = 0, i, lastype = 0, cch, macro = 0, la; in putref() local 42 if (lastype && macro) in putref() 47 macro = 1; in putref() 51 macro = 0; in putref() 67 if (macro) in putref() 88 if (macro) in putref() 107 if (macro) in putref() 123 if (lastype && macro) in putref()
|
H A D | roffbib.sh | 19 macro=-mbib 31 macro="-m$1" 48 $xroff $flags $macro 50 (echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr") | $xroff $flags $macro
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | main.cc | 406 dmake_value2 = prop2->body.macro.value; in main() 449 dmake_value2 = prop2->body.macro.value; in main() 524 body.macro.exported = true; in main() 527 body.macro.exported = false; in main() 1793 Property macro; in read_files_and_state() local 1867 (IS_EQUAL(def_make_macro->body.macro.value->string_mb, in read_files_and_state() 1886 ->body.macro.exported = true; in read_files_and_state() 2077 body.macro.exported = true; in read_files_and_state() 2111 macro = maybe_append_prop(makeflags, macro_prop); in read_files_and_state() 2112 temp = (Boolean) macro->body.macro.read_only; in read_files_and_state() [all …]
|
H A D | macro.cc | 59 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 D | ndr_gen.c | 252 generate_member_macro(char *memkind, char *macro, ndr_member_t *mem, in generate_member_macro() argument 257 if (!macro) in generate_member_macro() 258 macro = ""; in generate_member_macro() 266 memkind, macro, fname_type, mem->name); in generate_member_macro() 269 macro, fname_type, mem->name, mem->pdu_offset); in generate_member_macro() 274 generate_member_macro_with_arg(char *memkind, char *macro, in generate_member_macro_with_arg() argument 279 if (!macro) in generate_member_macro_with_arg() 280 macro = "_WITH_ARG"; in generate_member_macro_with_arg() 288 memkind, macro, fname_type, mem->name); in generate_member_macro_with_arg() 291 macro, fname_type, mem->name, mem->pdu_offset); in generate_member_macro_with_arg()
|