3 void c_to_factor_toplevel(CELL quot
)
8 void init_signals(void)
13 void early_init(void) { }
15 #define SUFFIX ".image"
18 const char *default_image_path(void)
20 const char *path
= vm_executable_path();
23 return "factor.image";
25 /* We can't call strlen() here because with gcc 4.1.2 this
26 causes an internal compiler error. */
28 const char *iter
= path
;
29 while(*iter
) { len
++; iter
++; }
31 char *new_path
= safe_malloc(PATH_MAX
+ SUFFIX_LEN
+ 1);
32 memcpy(new_path
,path
,len
+ 1);
33 memcpy(new_path
+ len
,SUFFIX
,SUFFIX_LEN
+ 1);