From a3d9828c190c86d9984a8e788f16dc10dfb95afa Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 20 Mar 2015 21:12:51 -0700 Subject: 961 - done converting names? I'm making two changes to how I compute field offsets: a) I just replace offset names up front, before I even manage field names. I don't bother disallowing x:integer and x:offset in the same function. Let's see if that leads us astray. Certainly saves code. b) I don't bother canonizing the first arg of a get since we know it has to have a type that is some number of 'address' followed by a record. Just assume that we have the right number of 'deref's. --- cpp/020array | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/020array') diff --git a/cpp/020array b/cpp/020array index 709fd65a..457ed366 100644 --- a/cpp/020array +++ b/cpp/020array @@ -4,6 +4,7 @@ int integer_array = Type_number["integer-array"] = Next_type_number++; Type[integer_array].is_array = true; Type[integer_array].element.push_back(integer); +Type[integer_array].name = "integer-array"; //: Arrays can be copied around with a single instruction just like integers, //: no matter how large they are. -- cgit 1.4.1-2-gfad0