pike.git / src / post_modules / Shuffler / a_source_system_memory.c

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_system_memory.c:57:   static void free_source( struct source *src )   {    free_object(((struct sm_source *)src)->obj);   }      struct source *source_system_memory_make( struct svalue *s,    INT64 start, INT64 len )   {    struct sm_source *res;    -  if( s->type != PIKE_T_OBJECT ) +  if( TYPEOF(*s) != PIKE_T_OBJECT )    return 0;       if (!shm_program) {    push_text("System.Memory");    SAFE_APPLY_MASTER("resolv", 1);    shm_program = program_from_svalue(Pike_sp - 1);    if (!shm_program) {    pop_stack();    return 0;    }