diff options
author | Mattias Andrée <maandree@kth.se> | 2017-11-05 14:50:38 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-11-05 14:50:38 +0100 |
commit | 9ed21175ac00f57f6abf3da84e82098e68fa3e94 (patch) | |
tree | 6235ac14c78fe0bbc074eb5146a641ba0e08fb5f /src/mds-kbdc/variables.h | |
parent | Update year and e-mail address (diff) | |
download | mds-9ed21175ac00f57f6abf3da84e82098e68fa3e94.tar.gz mds-9ed21175ac00f57f6abf3da84e82098e68fa3e94.tar.bz2 mds-9ed21175ac00f57f6abf3da84e82098e68fa3e94.tar.xz |
Work on changing style
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc/variables.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mds-kbdc/variables.h b/src/mds-kbdc/variables.h index 485961b..a175ab7 100644 --- a/src/mds-kbdc/variables.h +++ b/src/mds-kbdc/variables.h @@ -52,7 +52,8 @@ void variables_stack_pop(void); * @param variable The variable index * @return Whether a let will override the variable */ -int variables_let_will_override(size_t variable) __attribute__((pure)); +__attribute__((pure)) +int variables_let_will_override(size_t variable); /** * Assign a value to a variable, and define or shadow it in the process @@ -61,7 +62,7 @@ int variables_let_will_override(size_t variable) __attribute__((pure)); * @param value The variable's new value * @return Zero on success, -1 on error */ -int variables_let(size_t variable, mds_kbdc_tree_t* restrict value); +int variables_let(size_t variable, mds_kbdc_tree_t *restrict value); /** * Get the value currently assigned to a variable @@ -72,7 +73,8 @@ int variables_let(size_t variable, mds_kbdc_tree_t* restrict value); * @param variable The variable index * @return The variable's value, `NULL` if not defined */ -mds_kbdc_tree_t* variables_get(size_t variable) __attribute__((pure)); +__attribute__((pure)) +mds_kbdc_tree_t *variables_get(size_t variable); /** * Mark a variable as having been unsed in a for-loop in the current scope @@ -88,8 +90,8 @@ int variables_was_used_in_for(size_t variable); * @param variable The variable index, must already be defined * @return Whether `variables_was_used_in_for` has been unused on the variable */ -int variables_has_been_used_in_for(size_t variable) __attribute__((pure)); +__attribute__((pure)) +int variables_has_been_used_in_for(size_t variable); #endif - |