MCPcopy Create free account
hub / github.com/coreboot/coreboot / init_syntax_once

Function init_syntax_once

util/kconfig/regex.c:95–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93static char re_syntax_table[CHAR_SET_SIZE];
94
95static void
96init_syntax_once ()
97{
98 register int c;
99 static int done = 0;
100
101 if (done)
102 return;
103
104 bzero (re_syntax_table, sizeof re_syntax_table);
105
106 for (c = 'a'; c <= 'z'; c++)
107 re_syntax_table[c] = Sword;
108
109 for (c = 'A'; c <= 'Z'; c++)
110 re_syntax_table[c] = Sword;
111
112 for (c = '0'; c <= '9'; c++)
113 re_syntax_table[c] = Sword;
114
115 re_syntax_table['_'] = Sword;
116
117 done = 1;
118}
119
120#endif /* not SYNTAX_TABLE */
121

Callers 1

regex_compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected