Skip to content

Instantly share code, notes, and snippets.

Created November 14, 2012 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4070104 to your computer and use it in GitHub Desktop.
Save anonymous/4070104 to your computer and use it in GitHub Desktop.
Linked Strings declaration
type header;
type string_node;
type Lstring is access header;
type str_link is access string_node;
type header is record
length : natural;
list : str_link;
end record;
string_size : constant := 6;
subtype stringlet is string(1 .. string_size);
type string_node is record
data : stringlet;
next: str_link;
end record;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment