Lines Matching refs:version
238 struct version { struct
243 static void version_init(struct version *version) in version_init() argument
245 version->crc = crc32(0, NULL, 0); in version_init()
246 type_expansion_init(&version->type); in version_init()
249 static void version_free(struct version *version) in version_free() argument
251 type_expansion_free(&version->type); in version_free()
254 static void version_add(struct version *version, const char *s) in version_add() argument
256 version->crc = crc32(version->crc, (void *)s, strlen(s)); in version_add()
258 type_expansion_append(&version->type, s, NULL); in version_add()
322 static void __calculate_version(struct version *version, in __calculate_version() argument
340 version_add(version, entry->str); in __calculate_version()
343 __calculate_version(version, e); in __calculate_version()
346 version_add(version, entry->str); in __calculate_version()
351 static void calculate_version(struct version *version, in calculate_version() argument
354 version_init(version); in calculate_version()
355 __calculate_version(version, type); in calculate_version()
520 struct version version; in expand_symbol() local
538 calculate_version(&version, &type); in expand_symbol()
539 symbol_set_crc(sym, version.crc); in expand_symbol()
540 debug("%s = %lx", sym->name, version.crc); in expand_symbol()
545 type_list_write(&version.type.expanded, stderr); in expand_symbol()
549 version_free(&version); in expand_symbol()