mirror of https://github.com/flysand7/ciabatta.git
Fix formatting on ciabatta.c
This commit is contained in:
parent
e65506babb
commit
9119be8e24
5
build.py
5
build.py
|
@ -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']
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue