Commit bc33b8d2 authored by Claes Sjofors's avatar Claes Sjofors

Remote buffer include file parser, support for alignment in classes (refs #138)

parent 2d6dc9a1
...@@ -138,6 +138,7 @@ typedef struct s_element { ...@@ -138,6 +138,7 @@ typedef struct s_element {
int type; int type;
int size; int size;
int elements; int elements;
int alignment;
int undefined; int undefined;
char typestr[40]; char typestr[40];
char struct_begin; char struct_begin;
......
This diff is collapsed.
...@@ -69,4 +69,4 @@ eof <end of file> /error ...@@ -69,4 +69,4 @@ eof <end of file> /error
undeferr <undefined error> /error undeferr <undefined error> /error
typeundef <undefined type> /error typeundef <undefined type> /error
toolong <qualifier value is too long> /error toolong <qualifier value is too long> /error
nostruct <no struct> /info
...@@ -4167,6 +4167,9 @@ int XNav::show_object_as_struct( ...@@ -4167,6 +4167,9 @@ int XNav::show_object_as_struct(
sprintf( attr_str, "_A_ %d %d %d %d", objid.vid, objid.oix, sprintf( attr_str, "_A_ %d %d %d %d", objid.vid, objid.oix,
(int)(parameter_ptr - object_ptr), e_ptr->size); (int)(parameter_ptr - object_ptr), e_ptr->size);
if ( e_ptr->alignment)
parameter_ptr = (char *)pwr_Align( (size_t)parameter_ptr, e_ptr->alignment);
new ItemObjectStruct( brow, e_ptr->name, attr_str, new ItemObjectStruct( brow, e_ptr->name, attr_str,
e_ptr->type, e_ptr->size, 0, e_ptr->type, e_ptr->size, 0,
(void *) parameter_ptr, objid, subid, NULL, flow_eDest_IntoLast); (void *) parameter_ptr, objid, subid, NULL, flow_eDest_IntoLast);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment