pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:17:   #include "dynamic_buffer.h"   #include "error.h"   #include "operators.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "fsort.h"   #include "threads.h"   #include "stuff.h"   #include "version.h"    - RCSID("$Id: encode.c,v 1.31 1999/04/12 02:24:14 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.32 1999/07/19 00:34:58 hubbe Exp $");      #ifdef _AIX   #include <net/nh.h>   #endif      #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif      #include <math.h>
pike.git/src/encode.c:133:         static void code_number(INT32 num, struct encode_data *data)   {    code_entry(num & 15, num >> 4, data);   }      #ifdef _REENTRANT   static void do_enable_threads(void)   { -  if(!--threads_disabled) -  co_broadcast(&threads_disabled_change); +  exit_threads_disable(NULL);   }   #endif      static int encode_type(char *t, struct encode_data *data)   {    char *q=t;   one_more_type:    addchar(EXTRACT_UCHAR(t));    switch(EXTRACT_UCHAR(t++))    {
pike.git/src/encode.c:924:       case 1:    {    int d;    SIZE_T size=0;    char *dat;    struct program *p;      #ifdef _REENTRANT    ONERROR err; -  threads_disabled++; +  low_init_threads_disable();    SET_ONERROR(err, do_enable_threads, 0);   #endif       p=low_allocate_program();    debug_malloc_touch(p);    tmp.type=T_PROGRAM;    tmp.u.program=p;    mapping_insert(data->decoded, & data->counter, &tmp);    data->counter.u.integer++;    p->refs--;
pike.git/src/encode.c:1095:    fsort((void *)p->identifier_index,    p->num_identifier_index,    sizeof(unsigned short),(fsortfun)program_function_index_compare);    new_program=new_program_save;    }    p->flags |= PROGRAM_FINISHED;    ref_push_program(p);      #ifdef _REENTRANT    UNSET_ONERROR(err); -  if(!--threads_disabled) -  co_broadcast(&threads_disabled_change); +  exit_threads_disable(NULL);   #endif    return;    }       default:    error("Cannot decode program encoding type %d\n",num);    }    break;       default: