Changeset 21d09ac for protocols


Ignore:
Timestamp:
2005-11-09T01:02:05Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2d99c97
Parents:
68b50b5f
Message:

Forgot to modify CHANGES again, and removed some more debugging code we don't
need anymore (and didn't want to have in a release in the first place...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/proxy.c

    r68b50b5f r21d09ac  
    107107}
    108108
    109 #ifdef PROXYPROFILER
    110 struct proxyprofiler
    111 {
    112         GaimInputFunction function;
    113         gpointer data;
    114        
    115         int count;
    116        
    117         struct proxyprofiler *next;
    118 } *pp = NULL;
    119 
    120 void proxyprofiler_dump()
    121 {
    122         struct proxyprofiler *l;
    123         char s[128];
    124         FILE *fp;
    125        
    126         sprintf( s, "proxyprofiler.%d", (int) getpid() );
    127         fp = fopen( s, "w" );
    128        
    129         fprintf( fp, "%-18s  %-18s  %10s\n", "Function", "Data", "Count" );
    130         for( l = pp; l; l = l->next )
    131                 fprintf( fp, "0x%-16x  0x%-16x  %10d\n", (int) l->function, (int) l->data, l->count );
    132        
    133         fclose( fp );
    134 }
    135 #endif
    136 
    137109static gboolean gaim_io_invoke(GIOChannel *source, GIOCondition condition, gpointer data)
    138110{
     
    140112        GaimInputCondition gaim_cond = 0;
    141113
    142 #ifdef PROXYPROFILER
    143         struct proxyprofiler *l;
    144        
    145         for( l = pp; l; l = l->next )
    146         {
    147                 if( closure->function == l->function && closure->data == l->data )
    148                         break;
    149         }
    150         if( l )
    151         {
    152                 l->count ++;
    153         }
    154         else
    155         {
    156                 l = g_new0( struct proxyprofiler, 1 );
    157                 l->function = closure->function;
    158                 l->data = closure->data;
    159                 l->count = 1;
    160                
    161                 l->next = pp;
    162                 pp = l;
    163         }
    164 #endif
    165        
    166114        if (condition & GAIM_READ_COND)
    167115                gaim_cond |= GAIM_INPUT_READ;
Note: See TracChangeset for help on using the changeset viewer.