pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: las.c,v 1.410 2008/05/17 22:48:32 grubba Exp $ + || $Id: las.c,v 1.411 2008/05/18 11:43:50 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"
pike.git/src/las.c:4111:    INT32 argno = 0;    if (CAAR(n)->u.sval.u.integer & SSCANF_FLAG_76_COMPAT) {    MAKE_CONST_STRING(sscanf_name, "sscanf_76");    add_ref(sscanf_type = sscanf_76_type_string);    } else {    MAKE_CONST_STRING(sscanf_name, "sscanf");    add_ref(sscanf_type = sscanf_type_string);    }    args = mknode(F_ARG_LIST, CDAR(n), CDR(n));    add_ref(CDAR(n)); -  add_ref(CDR(n)); +  if (CDR(n)) add_ref(CDR(n));    sscanf_type = new_check_call(sscanf_name, sscanf_type, args, &argno, 0);    free_node(args);    if (sscanf_type) {    n->type = new_get_return_type(sscanf_type, 0);    free_type(sscanf_type);    } else {    MAKE_CONSTANT_TYPE(n->type, tIntPos);    }    }    break;