]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/image.hpp
VM: Refactor image.cpp/hpp to Factor style
[factor.git] / vm / image.hpp
index 21cf8944d1282f6827ce2fa4bccdde62b5c4cdb9..efc0c828561723ca9c874e3e2c01e676b4b1e3e9 100644 (file)
@@ -1,49 +1,48 @@
-namespace factor
-{
+namespace factor {
 
 static const cell image_magic = 0x0f0e0d0c;
 static const cell image_version = 4;
 
 struct embedded_image_footer {
-       cell magic;
-       cell image_offset;
+  cell magic;
+  cell image_offset;
 };
 
 struct image_header {
-       cell magic;
-       cell version;
-       /* base address of data heap when image was saved */
-       cell data_relocation_base;
-       /* size of heap */
-       cell data_size;
-       /* base address of code heap when image was saved */
-       cell code_relocation_base;
-       /* size of code heap */
-       cell code_size;
-       /* tagged pointer to t singleton */
-       cell true_object;
-       /* tagged pointer to bignum 0 */
-       cell bignum_zero;
-       /* tagged pointer to bignum 1 */
-       cell bignum_pos_one;
-       /* tagged pointer to bignum -1 */
-       cell bignum_neg_one;
-       /* Initial user environment */
-       cell special_objects[special_object_count];
+  cell magic;
+  cell version;
+  /* base address of data heap when image was saved */
+  cell data_relocation_base;
+  /* size of heap */
+  cell data_size;
+  /* base address of code heap when image was saved */
+  cell code_relocation_base;
+  /* size of code heap */
+  cell code_size;
+  /* tagged pointer to t singleton */
+  cell true_object;
+  /* tagged pointer to bignum 0 */
+  cell bignum_zero;
+  /* tagged pointer to bignum 1 */
+  cell bignum_pos_one;
+  /* tagged pointer to bignum -1 */
+  cell bignum_neg_one;
+  /* Initial user environment */
+  cell special_objects[special_object_count];
 };
 
 struct vm_parameters {
-       bool embedded_image;
-       const vm_char *image_path;
-       const vm_char *executable_path;
-       cell datastack_size, retainstack_size, callstack_size;
-       cell young_size, aging_size, tenured_size;
-       cell code_size;
-       bool fep;
-       bool console;
-       bool signals;
-       cell max_pic_size;
-       cell callback_size;
+  bool embedded_image;
+  const vm_char* image_path;
+  const vm_char* executable_path;
+  cell datastack_size, retainstack_size, callstack_size;
+  cell young_size, aging_size, tenured_size;
+  cell code_size;
+  bool fep;
+  bool console;
+  bool signals;
+  cell max_pic_size;
+  cell callback_size;
 };
 
 }