mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 07:44:45 -08:00
correct formatting in singleheader.cpp
This commit is contained in:
parent
e15ac22132
commit
8d436fe546
@ -3,7 +3,7 @@
|
|||||||
# include "debug.cpp"
|
# include "debug.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#pragma region StrBuilder Ops
|
#pragma region String Ops
|
||||||
|
|
||||||
internal
|
internal
|
||||||
ssize _scan_zpl_i64( const char* text, s32 base, s64* value )
|
ssize _scan_zpl_i64( const char* text, s32 base, s64* value )
|
||||||
@ -211,4 +211,4 @@ f64 c_str_to_f64( const char* str, char** end_ptr )
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma endregion StrBuilder Ops
|
#pragma endregion String Ops
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# include "memory.hpp"
|
# include "memory.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#pragma region StrBuilder Ops
|
#pragma region String Ops
|
||||||
|
|
||||||
const char* char_first_occurence( const char* str, char c );
|
const char* char_first_occurence( const char* str, char c );
|
||||||
|
|
||||||
@ -284,4 +284,4 @@ void c_str_to_upper( char* str )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma endregion StrBuilder Ops
|
#pragma endregion String Ops
|
||||||
|
@ -173,7 +173,7 @@ word PrintF_Buffer, gen_PrintF_Buffer
|
|||||||
word Msg_Invalid_Value, gen_Msg_Invalid_Value
|
word Msg_Invalid_Value, gen_Msg_Invalid_Value
|
||||||
word log_fmt, gen_log_fmt
|
word log_fmt, gen_log_fmt
|
||||||
|
|
||||||
// StrBuilder Ops
|
// String Ops
|
||||||
|
|
||||||
namespace char_, gen_char_
|
namespace char_, gen_char_
|
||||||
|
|
||||||
|
@ -105,6 +105,7 @@ int gen_main()
|
|||||||
header.print( scan_file( path_base "dependencies/parsing.hpp" ) );
|
header.print( scan_file( path_base "dependencies/parsing.hpp" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header.print(fmt_newline);
|
||||||
header.print_fmt( "GEN_NS_END\n" );
|
header.print_fmt( "GEN_NS_END\n" );
|
||||||
header.print_fmt( roll_own_dependencies_guard_end );
|
header.print_fmt( roll_own_dependencies_guard_end );
|
||||||
header.print( fmt_newline );
|
header.print( fmt_newline );
|
||||||
@ -155,7 +156,11 @@ int gen_main()
|
|||||||
if ( generate_builder ) {
|
if ( generate_builder ) {
|
||||||
header.print( scan_file( path_base "auxillary/builder.hpp" ) );
|
header.print( scan_file( path_base "auxillary/builder.hpp" ) );
|
||||||
}
|
}
|
||||||
|
if ( generate_scanner ) {
|
||||||
|
header.print( scan_file( path_base "auxillary/scanner.hpp" ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
header.print(fmt_newline);
|
||||||
header.print_fmt( "GEN_NS_END\n" );
|
header.print_fmt( "GEN_NS_END\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,7 +182,8 @@ int gen_main()
|
|||||||
|
|
||||||
header.print_fmt( roll_own_dependencies_guard_start );
|
header.print_fmt( roll_own_dependencies_guard_start );
|
||||||
header.print( impl_start );
|
header.print( impl_start );
|
||||||
header.print_fmt( "GEN_NS_BEGIN\n\n");
|
header.print( fmt_newline );
|
||||||
|
header.print_fmt( "GEN_NS_BEGIN\n");
|
||||||
|
|
||||||
header.print( debug );
|
header.print( debug );
|
||||||
header.print( string_ops );
|
header.print( string_ops );
|
||||||
@ -230,21 +236,17 @@ int gen_main()
|
|||||||
header.print( parsing_interface );
|
header.print( parsing_interface );
|
||||||
header.print_fmt( "\n#pragma endregion Parsing\n" );
|
header.print_fmt( "\n#pragma endregion Parsing\n" );
|
||||||
header.print( untyped );
|
header.print( untyped );
|
||||||
header.print_fmt( "\n#pragma endregion Interface\n\n");
|
header.print_fmt( "\n#pragma endregion Interface\n");
|
||||||
|
|
||||||
if ( generate_builder ) {
|
if ( generate_builder ) {
|
||||||
header.print( scan_file( path_base "auxillary/builder.cpp" ) );
|
header.print( scan_file( path_base "auxillary/builder.cpp" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scanner header depends on implementation
|
|
||||||
if ( generate_scanner ) {
|
|
||||||
header.print( scan_file( path_base "auxillary/scanner.hpp" ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( generate_scanner ) {
|
if ( generate_scanner ) {
|
||||||
header.print( scan_file( path_base "auxillary/scanner.cpp" ) );
|
header.print( scan_file( path_base "auxillary/scanner.cpp" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header.print( fmt_newline);
|
||||||
header.print_fmt( "GEN_NS_END\n");
|
header.print_fmt( "GEN_NS_END\n");
|
||||||
|
|
||||||
header.print_fmt( "%s\n", (char const*) implementation_guard_end );
|
header.print_fmt( "%s\n", (char const*) implementation_guard_end );
|
||||||
|
Loading…
Reference in New Issue
Block a user