Home
last modified time | relevance | path

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

12345678910>>...28

/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/uboot/u-boot-2020.01/scripts/kconfig/
Dsymbol.c38 static 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
57 sym = sym_lookup("UNAME_RELEASE", 0); in sym_init()
58 sym->type = S_STRING; in sym_init()
59 sym->flags |= SYMBOL_AUTO; in sym_init()
60 sym_add_default(sym, uts.release); in sym_init()
63 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument
65 enum symbol_type type = sym->type; in sym_get_type()
68 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type()
[all …]
Dconfdata.c86 struct symbol *sym; in conf_expand_value() local
100 sym = sym_lookup(name, 0); in conf_expand_value()
101 sym_calc_value(sym); in conf_expand_value()
102 strcat(res_value, sym_get_string_value(sym)); in conf_expand_value()
126 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument
130 switch (sym->type) { in conf_set_sym_val()
133 sym->def[def].tri = mod; in conf_set_sym_val()
134 sym->flags |= def_flags; in conf_set_sym_val()
140 sym->def[def].tri = yes; in conf_set_sym_val()
141 sym->flags |= def_flags; in conf_set_sym_val()
[all …]
Dmenu.c47 void menu_add_entry(struct symbol *sym) in menu_add_entry() argument
53 menu->sym = sym; in menu_add_entry()
61 if (sym) in menu_add_entry()
62 menu_add_symbol(P_SYMBOL, sym, NULL); in menu_add_entry()
97 if (e->left.sym == &symbol_mod) in rewrite_m()
113 struct symbol *sym = current_entry->sym; in menu_set_type() local
115 if (sym->type == type) in menu_set_type()
117 if (sym->type == S_UNKNOWN) { in menu_set_type()
118 sym->type = type; in menu_set_type()
123 sym->name ? sym->name : "<choice>", in menu_set_type()
[all …]
Dexpr.c17 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument
21 e->left.sym = sym; in expr_alloc_symbol()
46 e->left.sym = s1; in expr_alloc_comp()
47 e->right.sym = s2; in expr_alloc_comp()
87 e->left.sym = org->left.sym; in expr_copy()
88 e->right.sym = org->right.sym; in expr_copy()
167 e1->left.sym == e2->left.sym && in __expr_eliminate_eq()
168 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq()
264 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
266 return e1->left.sym == e2->left.sym; in expr_eq()
[all …]
Dconf.c84 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
86 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
88 if (!sym_has_value(sym)) in conf_askvalue()
94 if (!sym_is_changable(sym)) { in conf_askvalue()
104 if (sym_has_value(sym)) { in conf_askvalue()
132 struct symbol *sym = menu->sym; in conf_string() local
137 printf("(%s) ", sym->name); in conf_string()
138 def = sym_get_string_value(sym); in conf_string()
139 if (sym_get_string_value(sym)) in conf_string()
141 if (!conf_askvalue(sym, def)) in conf_string()
[all …]
Dlkc.h103 void menu_add_entry(struct symbol *sym);
108 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep);
141 struct symbol *sym_choice_default(struct symbol *sym);
142 const char *sym_get_string_default(struct symbol *sym);
143 struct symbol *sym_check_deps(struct symbol *sym);
144 struct property *prop_alloc(enum prop_type type, struct symbol *sym);
146 struct property *sym_get_env_prop(struct symbol *sym);
148 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument
150 return sym->curr.tri; in sym_get_tristate_value()
154 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument
[all …]
Dexpr.h39 struct symbol *sym; member
52 for (e = (l); e && (s = e->right.sym); e = e->left.expr)
134 #define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sy… argument
191 struct symbol *sym; /* the symbol for which the property is associated */ member
203 #define for_all_properties(sym, st, tok) \ argument
204 for (st = sym->prop; st; st = st->next) \
206 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument
207 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument
208 #define for_all_prompts(sym, st) \ argument
209 for (st = sym->prop; st; st = st->next) \
[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/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/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/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/libxkbcommon/src/
Dkeysym.c241 XConvertCase(xkb_keysym_t sym, xkb_keysym_t *lower, xkb_keysym_t *upper);
659 XConvertCase(xkb_keysym_t sym, xkb_keysym_t *lower, xkb_keysym_t *upper) in XConvertCase() argument
662 if (sym < 0x100) { in XConvertCase()
663 UCSConvertCase(sym, lower, upper); in XConvertCase()
668 if ((sym & 0xff000000) == 0x01000000) { in XConvertCase()
669 UCSConvertCase((sym & 0x00ffffff), lower, upper); in XConvertCase()
677 *lower = sym; in XConvertCase()
678 *upper = sym; in XConvertCase()
680 switch(sym >> 8) { in XConvertCase()
683 if (sym == XKB_KEY_Aogonek) in XConvertCase()
[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/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>>...28