Lines Matching refs:version
186 struct version { struct
191 static void version_init(struct version *version) in version_init() argument
193 version->crc = crc32(0, NULL, 0); in version_init()
194 type_expansion_init(&version->type); in version_init()
197 static void version_free(struct version *version) in version_free() argument
199 type_expansion_free(&version->type); in version_free()
202 static void version_add(struct version *version, const char *s) in version_add() argument
204 version->crc = crc32(version->crc, (void *)s, strlen(s)); in version_add()
206 type_expansion_append(&version->type, s, NULL); in version_add()
270 static void __calculate_version(struct version *version, struct list_head *list) in __calculate_version() argument
285 version_add(version, entry->str); in __calculate_version()
288 __calculate_version(version, &e->expanded); in __calculate_version()
291 version_add(version, entry->str); in __calculate_version()
296 static void calculate_version(struct version *version, struct list_head *list) in calculate_version() argument
298 version_init(version); in calculate_version()
299 __calculate_version(version, list); in calculate_version()
412 struct version version; in expand_symbol() local
430 calculate_version(&version, &type.expanded); in expand_symbol()
431 symbol_set_crc(sym, version.crc); in expand_symbol()
432 debug("%s = %lx", sym->name, version.crc); in expand_symbol()
437 type_list_write(&version.type.expanded, stderr); in expand_symbol()
441 version_free(&version); in expand_symbol()