pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.642 2007/11/18 19:04:24 nilsson Exp $ + || $Id: builtin_functions.c,v 1.643 2007/11/20 18:06:23 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:9394:    /* function(array:array(int)) */    ADD_FUNCTION2("longest_ordered_sequence", f_longest_ordered_sequence,    tFunc(tArray,tArr(tInt)), 0, OPT_TRY_OPTIMIZE);      #define tMapStuff(IN,SUB,OUTFUN,OUTSET,OUTPROG,OUTMIX,OUTARR,OUTMAP) \    tOr6( tFuncV(IN tFuncV(SUB,tSetvar(0,tAnd(tMix,tZero)),tSetvar(2,tAny)),tVar(0), \    OUTFUN), \    tFuncV(IN tSet(tMix),tMix,OUTSET), \    tFuncV(IN tMap(tMix, tSetvar(2,tMix)), tMix, OUTMAP), \    tFuncV(IN tArray, tMix, OUTARR), \ -  tFuncV(IN tInt0, tMix, OUTMIX), \ +  tIfnot(tFuncV(IN, tNot(tMix), tMix), \ +  tFuncV(IN, tMix, OUTMIX)), \    tFuncV(IN, tVoid, OUTMIX) )       ADD_EFUN2("map", f_map,    tOr7(tMapStuff(tArr(tSetvar(1,tMix)),tVar(1),    tArr(tVar(2)),    tArr(tInt01),    tArr(tObj),    tArr(tMix),    tArr(tArr(tMix)),    tArr(tOr(tInt0,tVar(2)))),