create bsd12 branch

This commit is contained in:
ziggi
2019-12-26 07:26:06 +00:00
commit 5cfdab6bfe
14432 changed files with 2272620 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
--- ./src/names.c.orig 2000-12-06 21:41:29.000000000 +0200
+++ ./src/names.c 2016-12-04 20:40:12.417572000 +0200
@@ -101,6 +101,21 @@
return strcmp (first->name, second->name) == 0;
}
+static void
+alias_freer (void *param)
+{
+ RECODE_ALIAS alias = param;
+ struct recode_surface_list *next = alias->implied_surfaces;
+ struct recode_surface_list *p;
+ while (next)
+ {
+ p = next->next;
+ free(next);
+ next = p;
+ }
+ free(alias);
+}
+
bool
prepare_for_aliases (RECODE_OUTER outer)
{
@@ -108,7 +123,7 @@
outer->number_of_symbols = 0;
outer->alias_table
- = hash_initialize (800, NULL, alias_hasher, alias_comparator, free);
+ = hash_initialize (800, NULL, alias_hasher, alias_comparator, alias_freer);
if (!outer->alias_table)
return false;