Fix formatting on ciabatta.c

This commit is contained in:
flysand7 2023-07-28 20:55:41 +11:00
parent e65506babb
commit 9119be8e24
2 changed files with 5 additions and 1 deletions

View File

@ -138,7 +138,9 @@ try:
ciabatta_header.write('\n')
# Write main include
ciabatta_header.write('#include <cia-def.h>\n')
ciabatta_header.write('\n')
# Write platform includes
ciabatta_header.write('// Platform-dependent sources\n')
platform_config = None
for platform in library_config['platforms']:
if platform['name'] == target:
@ -152,12 +154,13 @@ try:
ciabatta_header.write(f'#include <tinyrt.h>\n')
for tinyrt_source in platform_config['tinyrt']:
ciabatta_header.write(f'#include "{target}/{tinyrt_source}"\n')
ciabatta_header.write('\n')
# Write module includes
ciabatta_header.write('// Forward declarations')
for include in library_config['includes']:
ciabatta_header.write(f'#include <{include}>\n')
ciabatta_header.write('\n')
# Write module sources
ciabatta_header.write('\n')
for api in library_config['apis']:
api_name = api['name']
api_path = api['path']

View File

@ -44,6 +44,7 @@ static _RT_Status _rt_deinit();
[[noreturn]] static void _rt_program_exit(int code);
#endif
// Environment API
#if _RT_API_ENVIRONMENT == 1
static _RT_Status _rt_shell_exec(char const *cmd);
static _RT_Status _rt_env_get(char const *name);