aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:39:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:39:41 +0300
commit49c2589427e0f81bea68ccba1a95c6890e10538d (patch)
tree0633bc052552831b3860d1d4816bbee7b85d6313 /src/ast.c
parent4665a620775da64ec7280762979a9fc6fa37c0bc (diff)
downloadroscha-49c2589427e0f81bea68ccba1a95c6890e10538d.tar.gz
roscha-49c2589427e0f81bea68ccba1a95c6890e10538d.zip
Fix break tag parsing and code formatHEADmaster
auto-formatted the code with clang-format.
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ast.c b/src/ast.c
index 2de718a..f1aa62c 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -8,9 +8,9 @@
static inline sds
subblocks_string(struct vector *subblocks, sds str)
{
- size_t i;
+ size_t i;
struct block *subblk;
- vector_foreach(subblocks, i, subblk) {
+ vector_foreach (subblocks, i, subblk) {
str = block_string(subblk, str);
str = sdscat(str, "\n");
}
@@ -255,9 +255,9 @@ expression_destroy(struct expression *expr)
static inline void
subblocks_destroy(struct vector *subblks)
{
- size_t i;
+ size_t i;
struct block *blk;
- vector_foreach(subblks, i, blk){
+ vector_foreach (subblks, i, blk) {
block_destroy(blk);
}
vector_free(subblks);