Ignore:
Timestamp:
Oct 18, 2012, 4:39:38 PM (7 years ago)
Author:
lindanl
Message:

Change to static functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/perflib/BOM_Profiler.h

    r2286 r2479  
    5555typedef struct BOM_Table BOM_Table;
    5656
    57 BOM_Table * init_BOM_timer () {
     57static inline BOM_Table * init_BOM_timer () {
    5858  BOM_Table * timer_table = (BOM_Table *) malloc(sizeof(BOM_Table));
    5959  if (!timer_table) {
     
    9090#define SEQ_TIMESTAMP_COUNT 8
    9191
    92 void dump_BOM_table(BOM_Table * timer_table) {
     92static void dump_BOM_table(BOM_Table * timer_table) {
    9393  // an array of counts and timings per binary order of magnitude
    9494  int BOM_count[BIT_COUNT];
     
    182182}
    183183
    184 void destroy_BOM_timer(BOM_Table * timer_table) {
     184static inline void destroy_BOM_timer(BOM_Table * timer_table) {
    185185        if(timer_table) {
    186186                free(timer_table);
Note: See TracChangeset for help on using the changeset viewer.