Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bugfix: segfault when processing ap203 schema
  • Loading branch information
tpaviot committed Feb 22, 2012
commit 575c77dda91082b7f6db08db4b651908d51e6f16
21 changes: 11 additions & 10 deletions src/fedex_python/src/multpass_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,16 +642,17 @@ static void addAggrTypedefs( Schema schema, FILE * classes )
// the only types which had to wait for their underlying type.
// 2D aggr's and higher only need type GenericAggr defined
// which is built-in. */
if( firsttime ) {
fprintf( classes, "\n// Aggregate types (from all sche" );
fprintf( classes, "mas) which depend on other types:\n" );
firsttime = FALSE;
}
strncpy( nm, ClassName( TYPEget_name( t ) ), BUFSIZ );
fprintf( classes, "typedef %s\t%s;\n",
TYPEget_ctype( t ), nm );
fprintf( classes, "typedef %s *\t%sH;\n", nm, nm );
fprintf( classes, "typedef %s *\t%s_ptr;\n", nm, nm );
printf("in addAggrTypedefs. %s is enum or select.\n",TYPEget_name(t));
//if( firsttime ) {
// fprintf( classes, "\n// Aggregate types (from all sche" );
// fprintf( classes, "mas) which depend on other types:\n" );
// firsttime = FALSE;
//}
//strncpy( nm, ClassName( TYPEget_name( t ) ), BUFSIZ );
//fprintf( classes, "typedef %s\t%s;\n",
// TYPEget_ctype( t ), nm );
//fprintf( classes, "typedef %s *\t%sH;\n", nm, nm );
//fprintf( classes, "typedef %s *\t%s_ptr;\n", nm, nm );
}
}
SCOPEod
Expand Down