about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-03-10 15:55:11 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-03-10 15:55:11 -0800
commita445f8f1aab68a9665673af839e109dc277d43f4 (patch)
tree651917a6326cc3667a80b6ee7fda71df55b792e4
parent9be4a67f426a7cec62cb00d1ecd5021def9afb3a (diff)
downloadmu-a445f8f1aab68a9665673af839e109dc277d43f4.tar.gz
3786
https://www.reddit.com/r/badcode/comments/5xo3qv/its_better_to_have_it_all_on_one_line_right/delodzn
-rw-r--r--036refcount.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/036refcount.cc b/036refcount.cc
index 6fd0cfc2..10d451ab 100644
--- a/036refcount.cc
+++ b/036refcount.cc
@@ -213,8 +213,17 @@ def main [
 
 :(before "End type_tree Definition")
 struct address_element_info {
-  int offset;  // where inside a container type (after flattening nested containers!) the address lies
-  const type_tree* payload_type;  // all the information we need to compute sizes of items inside an address inside a container. Doesn't need to be a full-scale reagent, since an address inside a container can never be an array, and arrays are the only type that need to know their location to compute their size.
+  // Where inside a container type (after flattening nested containers!) the
+  // address lies
+  int offset;
+
+  // All the information we need to compute sizes of items inside an address
+  // inside a container. `payload_type` Doesn't need to be a full-scale
+  // reagent, since an address inside a container can never be an array, and
+  // arrays are the only type that need to know their location to compute their
+  // size.
+  const type_tree* payload_type;
+
   address_element_info(int o, const type_tree* p);
   address_element_info(const address_element_info& other);
   ~address_element_info();