3 * Keyword-argument support functions requiring a hosted implementation
5 * (c) 2015 Straylight/Edgeware
8 /*----- Licensing notice --------------------------------------------------*
10 * This file is part of the Sensible Object Design, an object system for C.
12 * SOD is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Library General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
17 * SOD is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with SOD; if not, write to the Free
24 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
28 /*----- Header files ------------------------------------------------------*/
33 /*----- Main code ---------------------------------------------------------*/
35 /* --- @kw_defunknown@ --- *
37 * Arguments: @const char *set@ = keyword set name
38 * @const char *kw@ = the offending keyword name
42 * Use: This is the default @kw_unkhook@ hook function.
44 * In a hosted implementation, this function reports an internal
45 * error to stderr about the unknown keyword and calls @abort@.
46 * It is an implementation responsibility for freestanding
47 * implementations wanting to use this keyword argument
51 void kw_defunknown(const char *set
, const char *kw
)
53 fprintf(stderr
, "INTERNAL ERROR: unknown `%s' keyword argument `%s'\n",
58 /* --- @kw__hookfailed@ --- *
64 * Use: Called by @kw_unknown@ if the @kw_unkhook@ hook function
67 * User code is not expected to call this function. It exists
68 * as an implementation respensibility for freestanding
69 * implementations wanting to use this keyword argument
73 void kw__hookfailed(void)
75 fprintf(stderr
, "INTERNAL ERROR: `kw_unkhook' hook function returned\n");
79 /*----- That's all, folks -------------------------------------------------*/