diff options
author | Henrique Lacreta Alves <henriquelalves@gmail.com> | 2024-05-05 00:22:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 00:22:12 +0300 |
commit | 72fc0084e45314c7ebfa641f2a20e2ecff358914 (patch) | |
tree | 11b5a5437f8c112beb8bdc39c172a2ff53a34571 /sources/s7/s7.h | |
parent | 510a5d76180f30f1dd75a05927bbcb10bfae8da8 (diff) | |
parent | 02b80cef1ad56565e181ddd30142bd9ddfc10d74 (diff) | |
download | gamejam-slgj-2024-72fc0084e45314c7ebfa641f2a20e2ecff358914.tar.gz gamejam-slgj-2024-72fc0084e45314c7ebfa641f2a20e2ecff358914.tar.bz2 gamejam-slgj-2024-72fc0084e45314c7ebfa641f2a20e2ecff358914.zip |
Merge pull request #2 from gilzoide/standardize-c-indentation
Standardize C indentation
Diffstat (limited to 'sources/s7/s7.h')
-rw-r--r-- | sources/s7/s7.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/sources/s7/s7.h b/sources/s7/s7.h index 97008da..feb5601 100644 --- a/sources/s7/s7.h +++ b/sources/s7/s7.h @@ -16,9 +16,9 @@ typedef double s7_double; #include <stdbool.h> #else #ifndef true - #define bool unsigned char - #define true 1 - #define false 0 + #define bool unsigned char + #define true 1 + #define false 0 #endif #endif #endif @@ -504,7 +504,7 @@ s7_pointer s7_make_function(s7_scheme *sc, const char *name, s7_function fnc, s7 /* safe functions: */ s7_pointer s7_make_safe_function(s7_scheme *sc, const char *name, s7_function fnc, s7_int required_args, s7_int optional_args, bool rest_arg, const char *doc); s7_pointer s7_make_typed_function(s7_scheme *sc, const char *name, s7_function f, - s7_int required_args, s7_int optional_args, bool rest_arg, const char *doc, s7_pointer signature); + s7_int required_args, s7_int optional_args, bool rest_arg, const char *doc, s7_pointer signature); /* arglist or body possibly unsafe: */ s7_pointer s7_define_function(s7_scheme *sc, const char *name, s7_function fnc, s7_int required_args, s7_int optional_args, bool rest_arg, const char *doc); @@ -512,18 +512,18 @@ s7_pointer s7_define_function(s7_scheme *sc, const char *name, s7_function fnc, /* arglist and body safe: */ s7_pointer s7_define_safe_function(s7_scheme *sc, const char *name, s7_function fnc, s7_int required_args, s7_int optional_args, bool rest_arg, const char *doc); s7_pointer s7_define_typed_function(s7_scheme *sc, const char *name, s7_function fnc, - s7_int required_args, s7_int optional_args, bool rest_arg, - const char *doc, s7_pointer signature); + s7_int required_args, s7_int optional_args, bool rest_arg, + const char *doc, s7_pointer signature); /* arglist unsafe or body unsafe: */ s7_pointer s7_define_unsafe_typed_function(s7_scheme *sc, const char *name, s7_function fnc, - s7_int required_args, s7_int optional_args, bool rest_arg, - const char *doc, s7_pointer signature); + s7_int required_args, s7_int optional_args, bool rest_arg, + const char *doc, s7_pointer signature); /* arglist safe, body possibly unsafe: */ s7_pointer s7_define_semisafe_typed_function(s7_scheme *sc, const char *name, s7_function fnc, - s7_int required_args, s7_int optional_args, bool rest_arg, - const char *doc, s7_pointer signature); + s7_int required_args, s7_int optional_args, bool rest_arg, + const char *doc, s7_pointer signature); s7_pointer s7_make_function_star(s7_scheme *sc, const char *name, s7_function fnc, const char *arglist, const char *doc); s7_pointer s7_make_safe_function_star(s7_scheme *sc, const char *name, s7_function fnc, const char *arglist, const char *doc); @@ -611,27 +611,27 @@ s7_pointer s7_call_with_catch(s7_scheme *sc, s7_pointer tag, s7_pointer body, s7 bool s7_is_dilambda(s7_pointer obj); s7_pointer s7_dilambda(s7_scheme *sc, - const char *name, - s7_pointer (*getter)(s7_scheme *sc, s7_pointer args), - s7_int get_req_args, s7_int get_opt_args, - s7_pointer (*setter)(s7_scheme *sc, s7_pointer args), - s7_int set_req_args, s7_int set_opt_args, - const char *documentation); + const char *name, + s7_pointer (*getter)(s7_scheme *sc, s7_pointer args), + s7_int get_req_args, s7_int get_opt_args, + s7_pointer (*setter)(s7_scheme *sc, s7_pointer args), + s7_int set_req_args, s7_int set_opt_args, + const char *documentation); s7_pointer s7_typed_dilambda(s7_scheme *sc, - const char *name, - s7_pointer (*getter)(s7_scheme *sc, s7_pointer args), - s7_int get_req_args, s7_int get_opt_args, - s7_pointer (*setter)(s7_scheme *sc, s7_pointer args), - s7_int set_req_args, s7_int set_opt_args, - const char *documentation, - s7_pointer get_sig, s7_pointer set_sig); + const char *name, + s7_pointer (*getter)(s7_scheme *sc, s7_pointer args), + s7_int get_req_args, s7_int get_opt_args, + s7_pointer (*setter)(s7_scheme *sc, s7_pointer args), + s7_int set_req_args, s7_int set_opt_args, + const char *documentation, + s7_pointer get_sig, s7_pointer set_sig); s7_pointer s7_dilambda_with_environment(s7_scheme *sc, s7_pointer envir, - const char *name, - s7_pointer (*getter)(s7_scheme *sc, s7_pointer args), - s7_int get_req_args, s7_int get_opt_args, - s7_pointer (*setter)(s7_scheme *sc, s7_pointer args), - s7_int set_req_args, s7_int set_opt_args, - const char *documentation); + const char *name, + s7_pointer (*getter)(s7_scheme *sc, s7_pointer args), + s7_int get_req_args, s7_int get_opt_args, + s7_pointer (*setter)(s7_scheme *sc, s7_pointer args), + s7_int set_req_args, s7_int set_opt_args, + const char *documentation); s7_pointer s7_values(s7_scheme *sc, s7_pointer args); /* (values ...) */ bool s7_is_multiple_value(s7_pointer obj); /* is obj the results of (values ...) */ |