[Jifty-commit] r5585 - Runops-Trace/trunk

Jifty commits jifty-commit at lists.jifty.org
Sat Jul 26 13:40:06 EDT 2008


Author: nothingmuch
Date: Sat Jul 26 13:40:05 2008
New Revision: 5585

Modified:
   Runops-Trace/trunk/Trace.xs

Log:
make internal functions static

Modified: Runops-Trace/trunk/Trace.xs
==============================================================================
--- Runops-Trace/trunk/Trace.xs	(original)
+++ Runops-Trace/trunk/Trace.xs	Sat Jul 26 13:40:05 2008
@@ -76,7 +76,7 @@
   Runops_Trace_enabled = 0;
 }
 
-SV *
+STATIC SV *
 Runops_Trace_op_to_BOP (pTHX_ OP *op) {
   dSP;
   /* this assumes Runops_Trace_load_B() has already been called */
@@ -101,7 +101,7 @@
   return POPs;
 }
 
-IV
+STATIC IV
 Runops_Trace_op_arity (pTHX_ OP *o) {
   switch (o->op_type) {
     case OP_SASSIGN:
@@ -307,7 +307,7 @@
   SvSetSV(Runops_Trace_perl_hook, &PL_sv_undef );
 }
 
-void
+STATIC void
 Runops_Trace_load_B (pTHX) {
   if (!Runops_Trace_loaded_B) {
     load_module( PERL_LOADMOD_NOIMPORT, newSVpv("B", 0), (SV *)NULL );
@@ -333,12 +333,12 @@
   Runops_Trace_set_hook(Runops_Trace_perl);
 }
 
-UV
+STATIC UV
 Runops_Trace_get_threshold () {
   return Runops_Trace_threshold;
 }
 
-void
+STATIC void
 Runops_Trace_set_threshold (UV t) {
   Runops_Trace_threshold = t;
 }
@@ -363,6 +363,7 @@
   }
 }
 
+STATIC void
 Runops_Trace_mask_all () {
   if (!Runops_Trace_mask) {
     Newxz(Runops_Trace_mask, MAXO_BIT_OCTETS, char);
@@ -371,6 +372,7 @@
   }
 }
 
+STATIC void
 Runops_Trace_mask_none () {
   if (!Runops_Trace_mask) {
     Runops_Trace_mask_autocreate();
@@ -394,17 +396,17 @@
   }
 }
 
-void
+STATIC void
 Runops_Trace_unmask_op_type (unsigned op_type) {
   Runops_Trace_mask_set_op_type(op_type, 1);
 }
 
-void
+STATIC void
 Runops_Trace_mask_op_type (unsigned op_type) {
   Runops_Trace_mask_set_op_type(op_type, 0);
 }
 
-void
+STATIC void
 Runops_Trace_clear_op_mask () {
   Safefree(Runops_Trace_mask);
   Runops_Trace_mask = NULL;


More information about the Jifty-commit mailing list