Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
6e37dc39
Commit
6e37dc39
authored
29 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
Rev: src/main.c:1.7 Rev: src/main.h:1.2
parent
fa188ec9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main.c
+7
-18
7 additions, 18 deletions
src/main.c
src/main.h
+5
-0
5 additions, 0 deletions
src/main.h
with
12 additions
and
18 deletions
src/main.c
+
7
−
18
View file @
6e37dc39
...
...
@@ -23,18 +23,7 @@
#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,11 +39,11 @@ int l_flag=0;
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,7 +153,7 @@ void main(int argc, char **argv, char **env)
}
#endif
current_time
=
get_
current_time
(
);
GETTIMEOFDAY
(
&
current_time
);
init_modules_efuns
();
master
();
...
...
@@ -214,6 +203,7 @@ void main(int argc, char **argv, char **env)
void
init_main_efuns
()
{
init_interpreter
();
init_lex
();
init_types
();
init_builtin_efuns
();
...
...
@@ -228,7 +218,6 @@ void init_main_programs()
void
exit_main
()
{
void
cleanup_added_efuns
();
void
free_all_call_outs
();
void
cleanup_lpc_types
();
void
cleanup_program
();
...
...
@@ -238,9 +227,9 @@ void exit_main()
exit_lex
();
cleanup_interpret
();
cleanup_added_efuns
();
free_all_call_outs
();
cleanup_lpc_types
();
cleanup_shared_string_table
();
cleanup_program
();
exit_interpreter
();
}
This diff is collapsed.
Click to expand it.
src/main.h
+
5
−
0
View file @
6e37dc39
...
...
@@ -6,9 +6,14 @@
#ifndef MAIN_H
#define MAIN_H
#include
"callback.h"
extern
int
d_flag
,
t_flag
,
a_flag
,
l_flag
,
c_flag
;
/* Prototypes begin here */
struct
callback
*
add_post_master_callback
(
callback_func
call
,
void
*
arg
,
callback_func
free_func
);
void
main
(
int
argc
,
char
**
argv
,
char
**
env
);
void
init_main_efuns
();
void
init_main_programs
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment