]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/image.hpp
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / image.hpp
index c43e8e9fc740951652f1c32f7d40bf704d960a51..8e5d94a68addcf85e1caf6c55ce4322d31332ad0 100644 (file)
@@ -13,13 +13,13 @@ struct embedded_image_footer {
 struct image_header {
   cell magic;
   cell version;
-  /* base address of data heap when image was saved */
+  // base address of data heap when image was saved
   cell data_relocation_base;
-  /* size of heap */
+  // size of heap
   cell data_size;
-  /* base address of code heap when image was saved */
+  // base address of code heap when image was saved
   cell code_relocation_base;
-  /* size of code heap */
+  // size of code heap
   cell code_size;
 
   cell reserved_1;
@@ -27,7 +27,7 @@ struct image_header {
   cell reserved_3;
   cell reserved_4;
 
-  /* Initial user environment */
+  // Initial user environment
   cell special_objects[special_object_count];
 };
 
@@ -43,6 +43,10 @@ struct vm_parameters {
   bool signals;
   cell max_pic_size;
   cell callback_size;
+
+  vm_parameters();
+  ~vm_parameters();
+  void init_from_args(int argc, vm_char** argv);
 };
 
 }