pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:2267:    a=allocate_array_no_init(args,0);    if (args) {    memcpy(ITEM(a),Pike_sp-args,args*sizeof(struct svalue));    array_fix_type_field (a);    Pike_sp-=args;    DO_IF_DMALLOC(while(args--) dmalloc_touch_svalue(Pike_sp + args));    }    return a;   }    - /** Add an element to the end of an array by resizing the array. + /** +  * Add an element to the end of an array by resizing the array.    *    * @param a the array to be appended    * @param s the value to be added to the new element in the array    */   PMOD_EXPORT struct array *append_array(struct array *a, struct svalue *s)   {    INT32 size = a->size;    a=resize_array(a, size+1);    array_set_index(a, size, s);    return a;   }    - /** Automap assignments + /** +  * Automap assignments    * This implements X[*] = ...[*]..    * Assign elements in a at @level to elements from b at the same @level.    * This will not actually modify any of the arrays, only change the    * values in them.    */   void assign_array_level( struct array *a, struct array *b, int level )   {    if( a->size != b->size )    /* this should not really happen. */    Pike_error("Source and destination differs in size in automap?!\n");