Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 25 of 728) sorted by relevance

12345678910>>...30

/third_party/toybox/kconfig/
Dsymbol.c38 void sym_add_default(struct symbol *sym, const char *def) in sym_add_default() argument
40 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default()
47 struct symbol *sym; in sym_init() local
67 sym = sym_lookup("KERNELVERSION", 0); in sym_init()
68 sym->type = S_STRING; in sym_init()
69 sym->flags |= SYMBOL_AUTO; in sym_init()
72 sym_add_default(sym, p); in sym_init()
74 sym = sym_lookup("UNAME_RELEASE", 0); in sym_init()
75 sym->type = S_STRING; in sym_init()
76 sym->flags |= SYMBOL_AUTO; in sym_init()
[all …]
Dconfdata.c54 struct symbol *sym; in conf_expand_value() local
68 sym = sym_lookup(name, 0); in conf_expand_value()
69 sym_calc_value(sym); in conf_expand_value()
70 strcat(res_value, sym_get_string_value(sym)); in conf_expand_value()
99 struct symbol *sym; in conf_read_simple() local
119 name = conf_expand_value(prop->expr->left.sym->name); in conf_read_simple()
139 for_all_symbols(i, sym) { in conf_read_simple()
140 sym->flags |= SYMBOL_CHANGED; in conf_read_simple()
141 sym->flags &= ~(def_flags|SYMBOL_VALID); in conf_read_simple()
142 if (sym_is_choice(sym)) in conf_read_simple()
[all …]
Dconf.c67 static void conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
69 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
72 if (!sym_has_value(sym)) in conf_askvalue()
78 if (!sym_is_changable(sym)) { in conf_askvalue()
90 if (sym_has_value(sym)) { in conf_askvalue()
97 if (sym_has_value(sym)) { in conf_askvalue()
124 if (sym_tristate_within_range(sym, yes)) { in conf_askvalue()
132 if (sym_tristate_within_range(sym, mod)) { in conf_askvalue()
139 if (sym_tristate_within_range(sym, yes)) { in conf_askvalue()
147 if (sym_tristate_within_range(sym, no)) { in conf_askvalue()
[all …]
Dmenu.c44 void menu_add_entry(struct symbol *sym) in menu_add_entry() argument
50 menu->sym = sym; in menu_add_entry()
93 if (e->left.sym == &symbol_mod) in menu_check_dep()
109 struct symbol *sym = current_entry->sym; in menu_set_type() local
111 if (sym->type == type) in menu_set_type()
113 if (sym->type == S_UNKNOWN) { in menu_set_type()
114 sym->type = type; in menu_set_type()
118 sym->name ? sym->name : "<choice>", in menu_set_type()
119 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type()
124 struct property *prop = prop_alloc(type, current_entry->sym); in menu_add_prop()
[all …]
Dexpr.c15 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument
20 e->left.sym = sym; in expr_alloc_symbol()
48 e->left.sym = s1; in expr_alloc_comp()
49 e->right.sym = s2; in expr_alloc_comp()
85 e->left.sym = org->left.sym; in expr_copy()
86 e->right.sym = org->right.sym; in expr_copy()
148 e1->left.sym == e2->left.sym && in __expr_eliminate_eq()
149 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq()
203 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
205 return e1->left.sym == e2->left.sym; in expr_eq()
[all …]
Dmconf.c347 if (menu->sym) { in get_prompt_str()
348 str_printf(r, " (%s [=%s])", menu->sym->name ? in get_prompt_str()
349 menu->sym->name : "<choice>", in get_prompt_str()
350 sym_get_string_value(menu->sym)); in get_prompt_str()
357 static void get_symbol_str(struct gstr *r, struct symbol *sym) in get_symbol_str() argument
362 str_printf(r, "Symbol: %s [=%s]\n", sym->name, in get_symbol_str()
363 sym_get_string_value(sym)); in get_symbol_str()
364 for_all_prompts(sym, prop) in get_symbol_str()
367 for_all_properties(sym, prop, P_SELECT) { in get_symbol_str()
377 if (sym->rev_dep.expr) { in get_symbol_str()
[all …]
/third_party/boost/tools/quickbook/test/unit/
Dsymbols_tests.cpp35 SymbolsT const& sym, in docheck() argument
41 parse_info<CharT const*> info = parse(candidate, sym); in docheck()
100 nsymbols sym; in narrow_match_tests() local
101 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_match_tests()
103 docheck(sym, "pineapple", true, "", 9); in narrow_match_tests()
104 docheck(sym, "orange", true, "", 6); in narrow_match_tests()
105 docheck(sym, "banana", true, "", 6); in narrow_match_tests()
106 docheck(sym, "apple", true, "", 5); in narrow_match_tests()
107 docheck(sym, "pizza", false, "pizza", -1); in narrow_match_tests()
108 docheck(sym, "steak", false, "steak", -1); in narrow_match_tests()
[all …]
/third_party/boost/libs/spirit/classic/test/
Dsymbols_tests.cpp39 SymbolsT const &sym, in docheck() argument
46 parse_info<CharT const*> info = parse(candidate, sym); in docheck()
114 symbols<> sym; in narrow_match_tests() local
115 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_match_tests()
117 docheck(sym, "pineapple", true, "", 9); in narrow_match_tests()
118 docheck(sym, "orange", true, "", 6); in narrow_match_tests()
119 docheck(sym, "banana", true, "", 6); in narrow_match_tests()
120 docheck(sym, "apple", true, "", 5); in narrow_match_tests()
121 docheck(sym, "pizza", false, "pizza", -1); in narrow_match_tests()
122 docheck(sym, "steak", false, "steak", -1); in narrow_match_tests()
[all …]
/third_party/boost/libs/spirit/test/qi/
Dsymbols2.cpp51 symbols<char, int> sym(syms); in main() local
53 BOOST_TEST((test("Joel", sym))); in main()
54 BOOST_TEST((test("Ruby", sym))); in main()
55 BOOST_TEST((test("Tenji", sym))); in main()
56 BOOST_TEST((test("Tutit", sym))); in main()
57 BOOST_TEST((test("Kim", sym))); in main()
58 BOOST_TEST((test("Joey", sym))); in main()
59 BOOST_TEST((!test("XXX", sym))); in main()
66 symbols<char, int> sym(syms, data); in main() local
69 BOOST_TEST((test_attr("Joel", sym, i))); in main()
[all …]
Dsymbols1.cpp47 symbols<char, int> sym; in main() local
49 sym.add in main()
61 BOOST_TEST((test("Joel", sym))); in main()
62 BOOST_TEST((test("Ruby", sym))); in main()
63 BOOST_TEST((test("Tenji", sym))); in main()
64 BOOST_TEST((test("Tutit", sym))); in main()
65 BOOST_TEST((test("Kim", sym))); in main()
66 BOOST_TEST((test("Joey", sym))); in main()
67 BOOST_TEST((test("Joeyboy", sym))); in main()
68 BOOST_TEST((!test("XXX", sym))); in main()
[all …]
/third_party/boost/libs/spirit/test/x3/
Dsymbols2.cpp40 symbols<int> sym(syms); in main() local
42 BOOST_TEST((test("Joel", sym))); in main()
43 BOOST_TEST((test("Ruby", sym))); in main()
44 BOOST_TEST((test("Tenji", sym))); in main()
45 BOOST_TEST((test("Tutit", sym))); in main()
46 BOOST_TEST((test("Kim", sym))); in main()
47 BOOST_TEST((test("Joey", sym))); in main()
48 BOOST_TEST((!test("XXX", sym))); in main()
55 symbols<int> sym(syms, data); in main() local
58 BOOST_TEST((test_attr("Joel", sym, i))); in main()
[all …]
Dsymbols1.cpp34 symbols<int> sym; in main() local
36 sym.add in main()
46 BOOST_TEST((test("Joel", sym))); in main()
47 BOOST_TEST((test("Ruby", sym))); in main()
48 BOOST_TEST((test("Tenji", sym))); in main()
49 BOOST_TEST((test("Tutit", sym))); in main()
50 BOOST_TEST((test("Kim", sym))); in main()
51 BOOST_TEST((test("Joey", sym))); in main()
52 BOOST_TEST((test("Joeyboy", sym))); in main()
53 BOOST_TEST((!test("XXX", sym))); in main()
[all …]
/third_party/ltp/tools/sparse/sparse-src/
Dctags.c37 static void examine_symbol(struct symbol *sym);
68 static inline void show_symbol_tag(FILE *fp, struct symbol *sym) in show_symbol_tag() argument
70 fprintf(fp, "%s\t%s\t%d;\"\t%c\tfile:\n", show_ident(sym->ident), in show_symbol_tag()
71 stream_name(sym->pos.stream), sym->pos.line, (int)sym->kind); in show_symbol_tag()
76 struct symbol *sym; in show_tags() local
91 FOR_EACH_PTR(list, sym) { in show_tags()
92 if (ident == sym->ident && pos.line == sym->pos.line && in show_tags()
93 !strcmp(filename, stream_name(sym->pos.stream))) in show_tags()
96 show_symbol_tag(fp, sym); in show_tags()
97 ident = sym->ident; in show_tags()
[all …]
Dsymbol.c50 void access_symbol(struct symbol *sym) in access_symbol() argument
52 if (sym->ctype.modifiers & MOD_INLINE) { in access_symbol()
53 if (!sym->accessed) { in access_symbol()
54 add_symbol(&translation_unit_used_list, sym); in access_symbol()
55 sym->accessed = 1; in access_symbol()
62 struct symbol *sym; in lookup_symbol() local
64 for (sym = ident->symbols; sym; sym = sym->next_id) { in lookup_symbol()
65 if (sym->namespace & ns) { in lookup_symbol()
66 sym->used = 1; in lookup_symbol()
67 return sym; in lookup_symbol()
[all …]
Dc2xml.c44 static void examine_symbol(struct symbol *sym, xmlNodePtr node);
65 static xmlNodePtr new_sym_node(struct symbol *sym, const char *name, xmlNodePtr parent) in new_sym_node() argument
68 const char *ident = show_ident(sym->ident); in new_sym_node()
71 assert(sym != NULL); in new_sym_node()
80 if (sym->ident && ident) in new_sym_node()
82 newProp(node, "file", stream_name(sym->pos.stream)); in new_sym_node()
84 newNumProp(node, "start-line", sym->pos.line); in new_sym_node()
85 newNumProp(node, "start-col", sym->pos.pos); in new_sym_node()
87 if (sym->endpos.type) { in new_sym_node()
88 newNumProp(node, "end-line", sym->endpos.line); in new_sym_node()
[all …]
Dtest-dissect.c19 static void print_usage(struct position *pos, struct symbol *sym, unsigned mode) in print_usage() argument
38 static char symscope(struct symbol *sym) in symscope() argument
40 if (sym_is_local(sym)) { in symscope()
42 warning(sym->pos, "no context"); in symscope()
48 static void r_symbol(unsigned mode, struct position *pos, struct symbol *sym) in r_symbol() argument
50 print_usage(pos, sym, mode); in r_symbol()
52 if (!sym->ident) in r_symbol()
53 sym->ident = built_in_ident("__asm__"); in r_symbol()
56 symscope(sym), sym->kind, sym->ident->len, sym->ident->name, in r_symbol()
57 show_typename(sym->ctype.base_type)); in r_symbol()
[all …]
Dscope.c44 void set_current_scope(struct symbol *sym) in set_current_scope() argument
46 sym->scope = block_scope; in set_current_scope()
49 void bind_scope(struct symbol *sym, struct scope *scope) in bind_scope() argument
51 sym->scope = scope; in bind_scope()
52 add_symbol(&scope->symbols, sym); in bind_scope()
56 void rebind_scope(struct symbol *sym, struct scope *new) in rebind_scope() argument
58 struct scope *old = sym->scope; in rebind_scope()
64 delete_ptr_list_entry((struct ptr_list**) &old->symbols, sym, 1); in rebind_scope()
66 bind_scope(sym, new); in rebind_scope()
100 static void remove_symbol_scope(struct symbol *sym) in remove_symbol_scope() argument
[all …]
Dshow-parse.c44 static int show_symbol_expr(struct symbol *sym);
47 static void do_debug_symbol(struct symbol *sym, int indent) in do_debug_symbol() argument
71 if (!sym) in do_debug_symbol()
74 indent, indent_string, typestr[sym->type], in do_debug_symbol()
75 sym->bit_size, sym->ctype.alignment, in do_debug_symbol()
76 modifier_string(sym->ctype.modifiers), show_ident(sym->ident), in do_debug_symbol()
77 show_as(sym->ctype.as), in do_debug_symbol()
78 sym, stream_name(sym->pos.stream), sym->pos.line, sym->pos.pos, in do_debug_symbol()
79 builtin_typename(sym) ?: ""); in do_debug_symbol()
81 FOR_EACH_PTR(sym->ctype.contexts, context) { in do_debug_symbol()
[all …]
/third_party/ltp/pan/
Dsymbol.c95 h->sym = NULL; in newsym()
100 static struct sym *mknode(struct sym *next, char *key, void *data) in mknode()
102 struct sym *n; in mknode()
104 if ((n = malloc(sizeof(struct sym))) == NULL) { in mknode()
124 static struct sym *find_key1(struct sym *sym, char *key) in find_key1() argument
126 while (sym != NULL) in find_key1()
127 if (strcmp(sym->key, key) == 0) in find_key1()
128 return (sym); in find_key1()
130 sym = sym->next; in find_key1()
137 static int add_key(SYM sym, char *key, void *data) in add_key() argument
[all …]
/third_party/mesa3d/src/mesa/program/
Dsymbol_table.c90 struct symbol *sym = scope->symbols; in _mesa_symbol_table_pop_scope() local
97 while (sym != NULL) { in _mesa_symbol_table_pop_scope()
98 struct symbol *const next = sym->next_with_same_scope; in _mesa_symbol_table_pop_scope()
100 sym->name); in _mesa_symbol_table_pop_scope()
101 if (sym->next_with_same_name) { in _mesa_symbol_table_pop_scope()
105 hte->key = sym->next_with_same_name->name; in _mesa_symbol_table_pop_scope()
106 hte->data = sym->next_with_same_name; in _mesa_symbol_table_pop_scope()
109 free(sym->name); in _mesa_symbol_table_pop_scope()
112 free(sym); in _mesa_symbol_table_pop_scope()
113 sym = next; in _mesa_symbol_table_pop_scope()
[all …]
/third_party/boost/libs/spirit/test/karma/
Dsymbols3.cpp43 symbols<char, rule<output_iterator_type, char()> > sym; in main() local
46 sym.add in main()
57 BOOST_TEST((test("J", sym, make_vector('j', 'J')))); in main()
58 BOOST_TEST((test("H", sym, make_vector('h', 'H')))); in main()
59 BOOST_TEST((test("T", sym, make_vector('t', 'T')))); in main()
60 BOOST_TEST((test("K", sym, make_vector('k', 'K')))); in main()
61 BOOST_TEST((!test("", sym, 'x'))); in main()
65 sym2 = sym; in main()
73 BOOST_TEST((test("Jyo", sym << "yo", make_vector('j', 'J')))); in main()
75 sym.remove in main()
[all …]
Dsymbols1.cpp37 symbols<char, std::string> sym; in main() local
39 sym.add in main()
50 BOOST_TEST((test("Joel", sym, 'j'))); in main()
51 BOOST_TEST((test("Hartmut", sym, 'h'))); in main()
52 BOOST_TEST((test("Tom", sym, 't'))); in main()
53 BOOST_TEST((test("Kim", sym, 'k'))); in main()
54 BOOST_TEST((!test("", sym, 'x'))); in main()
58 sym2 = sym; in main()
66 BOOST_TEST((test("Joelyo", sym << "yo", 'j'))); in main()
68 sym.remove in main()
[all …]
Dsymbols2.cpp42 symbols<char, rule<output_iterator_type> > sym; in main() local
49 sym.add in main()
60 BOOST_TEST((test("Joel", sym, 'j'))); in main()
61 BOOST_TEST((test("Hartmut", sym, 'h'))); in main()
62 BOOST_TEST((test("Tom", sym, 't'))); in main()
63 BOOST_TEST((test("Kim", sym, 'k'))); in main()
64 BOOST_TEST((!test("", sym, 'x'))); in main()
68 sym2 = sym; in main()
76 BOOST_TEST((test("Joelyo", sym << "yo", 'j'))); in main()
78 sym.remove in main()
[all …]
/third_party/ltp/tools/sparse/
Dsparse-ltp.c92 static bool check_symbol_deprecated(const struct symbol *const sym) in check_symbol_deprecated() argument
95 const struct ident *id = sym->ident; in check_symbol_deprecated()
105 warning(sym->pos, in check_symbol_deprecated()
116 static void check_symbol_visibility(const struct symbol *const sym) in check_symbol_visibility() argument
118 const unsigned long mod = sym->ctype.modifiers; in check_symbol_visibility()
119 const char *const name = show_ident(sym->ident); in check_symbol_visibility()
129 warning(sym->pos, in check_symbol_visibility()
139 warning(sym->pos, in check_symbol_visibility()
145 if (sym->same_symbol) in check_symbol_visibility()
148 if (sym->ident == &main_ident) in check_symbol_visibility()
[all …]
/third_party/FreeBSD/sys/sys/
Dlinker_set.h54 #define __GLOBL1(sym) __asm__(".globl " #sym) argument
55 #define __GLOBL(sym) __GLOBL1(sym) argument
71 #define __MAKE_SET_QV(set, sym, qv) \ argument
75 __set_##set##_sym_##sym __section(".set_" #set) \
77 __used = &(sym)
78 #define __MAKE_SET(set, sym) __MAKE_SET_QV(set, sym, __MAKE_SET_CONST) argument
86 #define TEXT_SET(set, sym) __MAKE_SET(set, sym) argument
87 #define DATA_SET(set, sym) __MAKE_SET(set, sym) argument
88 #define DATA_WSET(set, sym) __MAKE_SET_QV(set, sym, ) argument
89 #define BSS_SET(set, sym) __MAKE_SET(set, sym) argument
[all …]

12345678910>>...30