Descriptiongo/types: fix sizeof computations
Context.Alignof/Offsetsof/Sizeof now provide means
to customize the type checker for a given platform.
- provide Context.Offsetsof to specify the
offsets of struct fields
- use the correct sizes for ints, uint, uintptrs
in constant computations
- moved all size computations into separate file
(sizes.go)
- fixed a bug with string constant slicing
Patch Set 1 #Patch Set 2 : diff -r 33d3e7bbd3ef https://code.google.com/p/go #Patch Set 3 : diff -r a3c0a11b128a https://code.google.com/p/go #Patch Set 4 : diff -r ce2fa85dd306 https://code.google.com/p/go #Patch Set 5 : diff -r 2b17033f6f17 https://code.google.com/p/go #Patch Set 6 : diff -r a7ea286f5569 https://code.google.com/p/go #Patch Set 7 : diff -r a7ea286f5569 https://code.google.com/p/go #
Total comments: 12
Patch Set 8 : diff -r 6cc3df6d98e3 https://code.google.com/p/go #
MessagesTotal messages: 5
|