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 {
int type;
int size;
int elements;
int alignment;
int undefined;
char typestr[40];
char struct_begin;
......
This diff is collapsed.
......@@ -69,4 +69,4 @@ eof <end of file> /error
undeferr <undefined error> /error
typeundef <undefined type> /error
toolong <qualifier value is too long> /error
nostruct <no struct> /info
......@@ -4167,6 +4167,9 @@ int XNav::show_object_as_struct(
sprintf( attr_str, "_A_ %d %d %d %d", objid.vid, objid.oix,
(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,
e_ptr->type, e_ptr->size, 0,
(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