Commit ac3929f1 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Return a value, ahem... (unregister_allocation): Don't crash, just warn on

2000-01-06  Morten Welinder  <terra@diku.dk>

	* src/parser.y (register_allocation): Return a value, ahem...
	(unregister_allocation): Don't crash, just warn on trouble.
parent 3d3fc5e2
2000-01-06 Morten Welinder <terra@diku.dk>
* src/parser.y (register_allocation): Return a value, ahem...
(unregister_allocation): Don't crash, just warn on trouble.
2000-01-06 Michael Meeks <mmeeks@gnu.org>
* src/sheet.c (sheet_get_extent): stop start.col/row going negative;
......
2000-01-06 Morten Welinder <terra@diku.dk>
* src/parser.y (register_allocation): Return a value, ahem...
(unregister_allocation): Don't crash, just warn on trouble.
2000-01-06 Michael Meeks <mmeeks@gnu.org>
* src/sheet.c (sheet_get_extent): stop start.col/row going negative;
......
......@@ -116,7 +116,7 @@ register_allocation (void *data, ParseDeallocator freer)
/* It's handy to be able to register and unregister NULLs. */
if (!data)
return;
return NULL;
rec = g_new (AllocRec, 1);
rec->data = data;
......@@ -151,10 +151,11 @@ unregister_allocation (const void *data)
g_free (rec);
return;
}
/* fprintf (stderr, "STEP\n"); */
}
/* Not good. */
g_assert (l != NULL);
g_warning ("Unbalanced allocation registration in parser.y");
}
/* ------------------------------------------------------------------------- */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment