mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 07:44:45 -08:00
fixes
This commit is contained in:
parent
a33b3644d9
commit
e8bb381520
@ -1371,7 +1371,7 @@ void var_to_strbuilder_ref(CodeVar self, StrBuilder* result )
|
|||||||
|
|
||||||
strbuilder_append_str( result, self->Name );
|
strbuilder_append_str( result, self->Name );
|
||||||
|
|
||||||
if ( self->ValueType->ArrExpr )
|
if ( self->ValueType && self->ValueType->ArrExpr )
|
||||||
{
|
{
|
||||||
strbuilder_append_fmt( result, "[ %SB ]", code_to_strbuilder(self->ValueType->ArrExpr) );
|
strbuilder_append_fmt( result, "[ %SB ]", code_to_strbuilder(self->ValueType->ArrExpr) );
|
||||||
|
|
||||||
@ -1454,7 +1454,7 @@ void var_to_strbuilder_ref(CodeVar self, StrBuilder* result )
|
|||||||
if ( self->BitfieldSize )
|
if ( self->BitfieldSize )
|
||||||
strbuilder_append_fmt( result, "%SB %S : %SB", typename_to_strbuilder(self->ValueType), self->Name, code_to_strbuilder(self->BitfieldSize) );
|
strbuilder_append_fmt( result, "%SB %S : %SB", typename_to_strbuilder(self->ValueType), self->Name, code_to_strbuilder(self->BitfieldSize) );
|
||||||
|
|
||||||
else if ( self->ValueType->ArrExpr )
|
else if ( self->ValueType && self->ValueType->ArrExpr )
|
||||||
{
|
{
|
||||||
strbuilder_append_fmt( result, "%SB %S[ %SB ]", typename_to_strbuilder(self->ValueType), self->Name, code_to_strbuilder(self->ValueType->ArrExpr) );
|
strbuilder_append_fmt( result, "%SB %S[ %SB ]", typename_to_strbuilder(self->ValueType), self->Name, code_to_strbuilder(self->ValueType->ArrExpr) );
|
||||||
|
|
||||||
|
@ -599,7 +599,7 @@ void strbuilder_skip_line(StrBuilder str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
void strip_space(StrBuilder str)
|
void strbuilder_strip_space(StrBuilder str)
|
||||||
{
|
{
|
||||||
char* write_pos = str;
|
char* write_pos = str;
|
||||||
char* read_pos = str;
|
char* read_pos = str;
|
||||||
|
@ -1466,7 +1466,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \
|
|||||||
Code rf_header_parsing = refactor_and_format(header_parsing);
|
Code rf_header_parsing = refactor_and_format(header_parsing);
|
||||||
|
|
||||||
Code rf_types = refactor_and_format(types);
|
Code rf_types = refactor_and_format(types);
|
||||||
Code rf_parser_types = refactor_and_format(parser_types);
|
Code rf_parser_types = refactor_and_format(parser_types);
|
||||||
Code rf_ecode = refactor_and_format(ecode);
|
Code rf_ecode = refactor_and_format(ecode);
|
||||||
Code rf_eoperator = refactor_and_format(eoperator);
|
Code rf_eoperator = refactor_and_format(eoperator);
|
||||||
Code rf_especifier = refactor_and_format(especifier);
|
Code rf_especifier = refactor_and_format(especifier);
|
||||||
@ -1534,7 +1534,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \
|
|||||||
header.print( r_header_macros );
|
header.print( r_header_macros );
|
||||||
header.print( header_generic_macros );
|
header.print( header_generic_macros );
|
||||||
|
|
||||||
header.print_fmt( "GEN_API_C_BEGIN\n" );
|
header.print_fmt( "\nGEN_API_C_BEGIN\n" );
|
||||||
|
|
||||||
header.print( r_header_basic_types );
|
header.print( r_header_basic_types );
|
||||||
header.print( r_header_debug );
|
header.print( r_header_debug );
|
||||||
|
Loading…
Reference in New Issue
Block a user