Branch: Tag:

2009-08-17

2009-08-17 11:42:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now uses low_add_many_to_program().

Rev: src/encode.c:1.289

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: encode.c,v 1.288 2009/08/09 13:09:58 grubba Exp $ + || $Id: encode.c,v 1.289 2009/08/17 11:42:15 grubba Exp $   */      #include "global.h"
3986:    if (data->ptr + (int)local_num_program >= data->len) {    Pike_error("Failed to decode program. (string too short)\n");    } -  for (e=0; e<(int)local_num_program; e++) { -  PIKE_OPCODE_T opcode; -  MEMCPY(&opcode, data->data + data->ptr, sizeof(PIKE_OPCODE_T)); -  data->ptr += sizeof(PIKE_OPCODE_T); -  add_to_program(opcode); -  } +  low_add_many_to_program(Pike_compiler, +  (PIKE_OPCODE_T *)data->data + data->ptr, +  local_num_program);       /* Decode relocations */    for (e=0; e<(int)local_num_relocations; e++) {