pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:10:   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "pike_error.h"   #include "gc.h"   #include "stuff.h"   #include "bignum.h"   #include "interpret.h"   #include "operators.h"   #include "pike_float.h" + #include "pike_types.h"   #include "block_allocator.h"      #include <errno.h>   #include <float.h>   #include <ctype.h>   #include <math.h>      #define SET_HSIZE(X) htable_mask=(htable_size=(1<<(X)))-1   #define HMODULO(X) ((X) & (htable_mask))   
pike.git/src/stralloc.c:2927:    } else {    flags |= APPEND_WIDTH_LONG;    }    continue;       case 't': /* ptrdiff_t */    case 'z': /* size_t */    flags = (flags & ~APPEND_WIDTH_MASK) | APPEND_WIDTH_PTR;    continue;    +  case 'T': /* struct pike_type */ +  { +  /* FIXME: Doesn't care about field or integer widths yet. */ +  dynamic_buffer old_buf; +  init_buf(&old_buf); +  my_describe_type(va_arg(args, struct pike_type *)); +  string_builder_binary_strcat(s, pike_global_buffer.s.str, +  pike_global_buffer.s.len); +  toss_buffer(&pike_global_buffer); +  restore_buffer(&old_buf); +  } +  break; +     case 'O':    {    /* FIXME: Doesn't care about field or integer widths yet. */    dynamic_buffer old_buf;    init_buf(&old_buf);    describe_svalue(va_arg(args, struct svalue *), 0, NULL);    string_builder_binary_strcat(s, pike_global_buffer.s.str,    pike_global_buffer.s.len);    toss_buffer(&pike_global_buffer);    restore_buffer(&old_buf);