--- gforth/fi2c.fs 2007/03/25 21:30:59 1.18 +++ gforth/fi2c.fs 2007/12/31 17:34:58 1.21 @@ -1,6 +1,6 @@ \ Convert image to C include file -\ Copyright (C) 1998,1999,2002,2003 Free Software Foundation, Inc. +\ Copyright (C) 1998,1999,2002,2003,2007 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -82,7 +82,7 @@ s" NULL" groups @ cell+ $! IF 11 /string $has? 0= IF r@ scan-ifs THEN ELSE 2dup s" #else" prefix? - IF r@ scan-ifs + IF 2drop r@ scan-ifs ELSE 2dup s" GROUP(" prefix? IF 2drop drop 1+ 0 ELSE 2dup s" INST_ADDR(" prefix? @@ -199,7 +199,8 @@ Variable bitmap-chars : fi2c ( addr u -- ) base @ >r hex read-image - ." static void* image[" .imagesize ." ] = {" cr .image ." };" cr + \ .\" const static __attribute__ ((__section__ (\".rodata\"))) void* image[" .imagesize ." ] = {" cr .image ." };" cr + .\" static void* image[" .imagesize ." ] = {" cr .image ." };" cr ." #ifdef USE_RELOC" cr ." const char reloc_bits[" .relocsize ." ] = {" cr .reloc ." };" cr ." #endif" cr