Lines Matching defs:version
238 struct version {
243 static void version_init(struct version *version)
245 version->crc = crc32(0, NULL, 0);
246 type_expansion_init(&version->type);
249 static void version_free(struct version *version)
251 type_expansion_free(&version->type);
254 static void version_add(struct version *version, const char *s)
256 version->crc = crc32(version->crc, (void *)s, strlen(s));
258 type_expansion_append(&version->type, s, NULL);
322 static void __calculate_version(struct version *version,
340 version_add(version, entry->str);
343 __calculate_version(version, e);
346 version_add(version, entry->str);
351 static void calculate_version(struct version *version,
354 version_init(version);
355 __calculate_version(version, type);
520 struct version version;
536 /* If the symbol already has a version, don't calculate it again. */
538 calculate_version(&version, &type);
539 symbol_set_crc(sym, version.crc);
540 debug("%s = %lx", sym->name, version.crc);
545 type_list_write(&version.type.expanded, stderr);
549 version_free(&version);
578 * type_map expansions to calculate a symbol version from the