diff --git a/public/_layout.ejs b/public/_layout.ejs index dbea4bd..4216c70 100644 --- a/public/_layout.ejs +++ b/public/_layout.ejs @@ -44,15 +44,11 @@ - + + + + + +

Segments

@@ -82,7 +82,7 @@ e.g. \_\_DATA or \_\_TEXT

The code exposes some more details about segment commands, but should be easy enough to follow.

- +

Sections

@@ -105,7 +105,7 @@ two underscores, e.g. \_\_bss or \_\_text

Finally, the Ruby code describing section structs:

- +

macho.rb

diff --git a/public/posts/2010/01/working-with-c-style-structs-in-ruby.md b/public/posts/2010/01/working-with-c-style-structs-in-ruby.md index ff73f07..1b9da3d 100644 --- a/public/posts/2010/01/working-with-c-style-structs-in-ruby.md +++ b/public/posts/2010/01/working-with-c-style-structs-in-ruby.md @@ -28,11 +28,11 @@ supported by Array#pack is fairly easy to add though. First a quick example and then we'll get into the CStruct class itself. In C you may write the following to have one struct "inherit" from another: - + With CStruct in Ruby that translates to: - + CStructs act like Ruby's built-in Struct to a certain extent. They are instantiated the same way, by passing values to #new in the same order they