pike.git / src / operators.c

version» Context lines:

pike.git/src/operators.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h"   #include <math.h> - RCSID("$Id: operators.c,v 1.84 1999/12/29 17:55:05 grubba Exp $"); + RCSID("$Id: operators.c,v 1.85 2000/02/03 19:09:12 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"   #include "mapping.h"   #include "array.h"   #include "stralloc.h"   #include "opcodes.h"   #include "operators.h"   #include "language.h"   #include "pike_memory.h"
pike.git/src/operators.c:247:    case T_FLOAT:    sprintf(buffer,"%f",(double)sp[e].u.float_number);    append_buffer:    switch(max_shift)    {    case 0:    convert_0_to_0((p_wchar0 *)buf.ptr,buffer,strlen(buffer));    break;       case 1: -  convert_0_to_1((p_wchar1 *)buf.ptr,buffer,strlen(buffer)); +  convert_0_to_1((p_wchar1 *)buf.ptr,(p_wchar0 *)buffer, +  strlen(buffer));    break;       case 2: -  convert_0_to_2((p_wchar2 *)buf.ptr,buffer,strlen(buffer)); +  convert_0_to_2((p_wchar2 *)buf.ptr,(p_wchar0 *)buffer, +  strlen(buffer));    break;       }    INC_PCHARP(buf,strlen(buffer));    }    }    r->len=SUBTRACT_PCHARP(buf,MKPCHARP_STR(r));    low_set_index(r,r->len,0);    r=end_shared_string(r);    pop_n_elems(args);