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.27 1999/03/07 20:07:09 grubba Exp $"); + RCSID("$Id: encode.c,v 1.28 1999/03/07 20:11:04 grubba 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:173:    t+=encode_type(t, data);       case T_ARRAY:    case T_MULTISET:    case T_NOT:    goto one_more_type;       case T_INT:    {    int i; +  /* FIXME: I assume the type is saved in network byte order. Is it? +  * /grubba 1999-03-07 +  */    for(i = 0; i < 2*sizeof(INT32); i++) {    addchar(EXTRACT_UCHAR(t++));    }    }    break;       case '0':    case '1':    case '2':    case '3':
pike.git/src/encode.c:621:    case T_MAPPING:    case T_OR:    case T_AND:    low_decode_type(data);       case T_ARRAY:    case T_MULTISET:    case T_NOT:    goto one_more_type;    +  case T_INT: +  { +  int i; +  /* FIXME: I assume the type is saved in network byte order. Is it? +  * /grubba 1999-03-07 +  */ +  for(i=0; i < 2*sizeof(INT32); i++) { +  push_type(GETC()); +  } +  } +  break; +     case '0':    case '1':    case '2':    case '3':    case '4':    case '5':    case '6':    case '7':    case '8':    case '9': -  case T_INT: +     case T_FLOAT:    case T_STRING:    case T_PROGRAM:    case T_MIXED:    case T_VOID:    case T_UNKNOWN:    break;       case T_OBJECT:    {