pike.git/
src/
main.c
Branch:
Tag:
Non-build tags
All tags
No tags
1996-06-21
1996-06-21 19:40:15 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
6e37dc39181872ef95c81165e1b921b0465fcd84 (
26
lines) (+
8
/-
18
)
[
Show
|
Annotate
]
Branch:
branches/E-12
small fixes
Rev: src/main.c:1.7
Rev: src/main.h:1.2
23:
#include <locale.h> #endif
-
#
if TIME_WITH_SYS_TIME
-
#
include
<sys/
time
.h>
-
# include <time.h>
-
#else
-
# if HAVE
_
SYS_TIME_H
-
# include <sys/time
.h
>
-
# else
-
# if HAVE_TIME_H
-
# include <time.h>
-
# endif
-
# endif
-
#endif
+
#include
"
time_
stuff
.h
"
#ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h>
50:
static struct callback *post_master_callbacks =0;
-
struct callback *add_post_master_callback(callback call,
+
struct callback *add_post_master_callback(callback
_func
call,
void *arg,
-
callback free_func)
+
callback
_func
free_func)
{
-
return add_to_callback
_list
(&post_master_callbacks, call, arg, free_func);
+
return add_to_callback(&post_master_callbacks, call, arg, free_func);
}
164:
} #endif
-
current_time
= get_current_time(
);
+
GETTIMEOFDAY(&
current_time);
init_modules_efuns(); master();
214:
void init_main_efuns() {
+
init_interpreter();
init_lex(); init_types(); init_builtin_efuns();
228:
void exit_main() { void cleanup_added_efuns();
-
void free_all_call_outs();
+
void cleanup_lpc_types(); void cleanup_program();
238:
exit_lex(); cleanup_interpret(); cleanup_added_efuns();
-
free_all_call_outs();
+
cleanup_lpc_types(); cleanup_shared_string_table(); cleanup_program();
-
+
exit_interpreter();
}