Branch: Tag:

1999-12-13

1999-12-13 12:08:13 by Martin Stjernholm <mast@lysator.liu.se>

Added "dynamic type" macros to easily specify types from C that have e.g.
objects with inherit/implement info or integers with arbitrary ranges.

Rev: src/constants.h:1.11
Rev: src/pike_types.c:1.92
Rev: src/pike_types.h:1.29
Rev: src/program.h:1.69

5:   \*/   /**/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.91 1999/12/12 18:31:33 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.92 1999/12/13 12:08:12 mast Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"
238:    push_type( (i>>(e*8)) & 0xff );   }    + void push_type_int_backwards(INT32 i) + { +  int e; +  for(e=(int)sizeof(i);e-->0;) +  push_type( (i>>(e*8)) & 0xff ); + } +    INT32 extract_type_int(char *p)   {    int e;