| 2970 | } |
| 2971 | |
| 2972 | static void RegisterFunctions() |
| 2973 | { |
| 2974 | // Add functions to XLisp. Do this only once, |
| 2975 | // before the first call to nyx_init. |
| 2976 | static bool firstTime = true; |
| 2977 | if (firstTime) |
| 2978 | { |
| 2979 | firstTime = false; |
| 2980 | |
| 2981 | // All function names must be UP-CASED |
| 2982 | static const FUNDEF functions[] = { |
| 2983 | { "_", SUBR, gettext }, { "_C", SUBR, gettextc }, |
| 2984 | { "NGETTEXT", SUBR, ngettext }, { "NGETTEXTC", SUBR, ngettextc }, |
| 2985 | { "AUD-DO", SUBR, xlc_aud_do }, |
| 2986 | }; |
| 2987 | |
| 2988 | xlbindfunctions(functions, WXSIZEOF(functions)); |
| 2989 | } |
| 2990 | } |
no test coverage detected