Skip to content

Commit

Permalink
Mark as many functions static as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Dec 31, 2017
1 parent 562f699 commit 5748dab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 5 additions & 2 deletions xdebug_gc_stats.c
Expand Up @@ -24,6 +24,9 @@

ZEND_EXTERN_MODULE_GLOBALS(xdebug)

static void xdebug_gc_stats_print_run(xdebug_gc_run *run);
static void xdebug_gc_stats_run_free(xdebug_gc_run *run);

int xdebug_gc_collect_cycles(void)
{
int ret;
Expand Down Expand Up @@ -69,7 +72,7 @@ int xdebug_gc_collect_cycles(void)
return ret;
}

void xdebug_gc_stats_run_free(xdebug_gc_run *run)
static void xdebug_gc_stats_run_free(xdebug_gc_run *run)
{
if (run) {
if (run->function_name) {
Expand Down Expand Up @@ -132,7 +135,7 @@ void xdebug_gc_stats_stop()
}
}

void xdebug_gc_stats_print_run(xdebug_gc_run *run)
static void xdebug_gc_stats_print_run(xdebug_gc_run *run)
{
if (!XG(gc_stats_file)) {
return;
Expand Down
7 changes: 2 additions & 5 deletions xdebug_gc_stats.h
Expand Up @@ -30,12 +30,9 @@ typedef struct _xdebug_gc_run {
} xdebug_gc_run;

int (*xdebug_old_gc_collect_cycles)(void);
int xdebug_gc_collect_cycles(void);

int xdebug_gc_stats_init(char *fname, char *script_name);
void xdebug_gc_stats_print_run(xdebug_gc_run *run);
void xdebug_gc_stats_run_free(xdebug_gc_run *run);
void xdebug_gc_stats_stop();

void xdebug_gc_stats_show_report();
int xdebug_gc_collect_cycles(void);

#endif

0 comments on commit 5748dab

Please sign in to comment.