Skip to content

Commit

Permalink
Mark all variables as static.
Browse files Browse the repository at this point in the history
Since the whole interface required by Ruby is the Init_* function, the
variables can easily not be exposed as symbols, which reduce the chance of
symbol collisions, the size of the symbol table a the number of resolutions
to the PLT.
  • Loading branch information
Flameeyes committed Dec 24, 2011
1 parent c2ba858 commit cf262a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/system_timer/system_timer_native.c
Expand Up @@ -15,15 +15,15 @@
#define MICRO_SECONDS 1000000.0
#define MINIMUM_TIMER_INTERVAL_IN_SECONDS 0.2

VALUE rb_cSystemTimer;
static VALUE rb_cSystemTimer;

// Ignore most of this for Rubinius
#ifndef RUBINIUS

sigset_t original_mask;
sigset_t sigalarm_mask;
struct sigaction original_signal_handler;
struct itimerval original_timer_interval;
static sigset_t original_mask;
static sigset_t sigalarm_mask;
static struct sigaction original_signal_handler;
static struct itimerval original_timer_interval;
static int debug_enabled = 0;

static void clear_pending_sigalrm_for_ruby_threads();
Expand Down

0 comments on commit cf262a3

Please sign in to comment.