|
@@ -83,21 +83,6 @@ void init_dynload(void)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-static void (*program_exit)(int ret);
|
|
|
-
|
|
|
-void register_exit(void (*cb)(int ret))
|
|
|
-{
|
|
|
- program_exit = cb;
|
|
|
-}
|
|
|
-
|
|
|
-void exit_program(int ret)
|
|
|
-{
|
|
|
- if (program_exit)
|
|
|
- program_exit(ret);
|
|
|
-
|
|
|
- exit(ret);
|
|
|
-}
|
|
|
-
|
|
|
int parse_number(const char *context, const char *numstr, int type,
|
|
|
double min, double max, double *dst)
|
|
|
{
|