Branch: Tag:

2008-05-15

2008-05-15 15:13:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added flags parameter to o_sscanf().
langauge.yacc now knows how to pass flags along to o_sscanf().
Updated F_SSCANF opcode to allow for passing of flags to o_sscanf().

Rev: src/docode.c:1.200
Rev: src/interpret_functions.h:1.203
Rev: src/language.yacc:1.422
Rev: src/las.c:1.408
Rev: src/sscanf.c:1.177
Rev: src/sscanf.h:1.3
Rev: src/treeopt.in:1.96

2:   || 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: docode.c,v 1.199 2008/05/13 17:11:18 grubba Exp $ + || $Id: docode.c,v 1.200 2008/05/15 15:13:04 grubba Exp $   */      #include "global.h"
2332:    }       case F_SSCANF: -  tmp1=do_docode(CAR(n),DO_NOT_COPY); +  tmp1=do_docode(CDAR(n),DO_NOT_COPY);    tmp2=do_docode(CDR(n),DO_NOT_COPY | DO_LVALUE); -  emit1(F_SSCANF, DO_NOT_WARN((INT32)(tmp1+tmp2))); +  emit2(F_SSCANF, DO_NOT_WARN((INT32)(tmp1+tmp2)), CAAR(n)->u.sval.u.integer);    return 1;       case F_CATCH: {