Skip to content

Commit 1e54e70

Browse files
committed
Fix formatting
1 parent 08be374 commit 1e54e70

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.clang-format

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ SpaceAfterCStyleCast: true
2828
PenaltyReturnTypeOnItsOwnLine: 240
2929
AttributeMacros:
3030
ForEachMacros:
31-
- GGL_LIST_FOREACH
32-
- GGL_MAP_FOREACH
33-
- GGL_BUF_LIST_FOREACH
31+
- GG_LIST_FOREACH
32+
- GG_MAP_FOREACH
33+
- GG_BUF_LIST_FOREACH
3434
Macros:
3535
- CBMC_CONTRACT(x)=[[cbmc::contract(x)]]
3636
- NODISCARD=[[nodiscard]]
37-
- GGL_EXPORT=[[gnu::visibility(protected)]]
37+
- GG_EXPORT=[[gnu::visibility(protected)]]
3838
- VISIBILITY(x)=[[gnu::visibility(x)]]
3939
- FORMAT(x,y,z)=[[gnu::format(x,y,z)]]
4040
- UNUSED=[[gnu::unused]]

src/list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <gg/object.h>
99

1010
GgError gg_list_type_check(GgList list, GgObjectType type) {
11-
GG_LIST_FOREACH(elem, list) {
11+
GG_LIST_FOREACH (elem, list) {
1212
if (gg_obj_type(*elem) != type) {
1313
GG_LOGE("List element is of invalid type.");
1414
return GG_ERR_PARSE;

src/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ GgObject *gg_kv_val(GgKV *kv) {
6767
}
6868

6969
bool gg_map_get(GgMap map, GgBuffer key, GgObject **result) {
70-
GG_MAP_FOREACH(pair, map) {
70+
GG_MAP_FOREACH (pair, map) {
7171
if (gg_buffer_eq(key, gg_kv_key(*pair))) {
7272
if (result != NULL) {
7373
*result = gg_kv_val(pair);

src/vector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void gg_buf_vec_chain_push(GgError *err, GgBufVec *vector, GgBuffer buf) {
143143
}
144144

145145
GgError gg_buf_vec_append_list(GgBufVec *vector, GgList list) {
146-
GG_LIST_FOREACH(item, list) {
146+
GG_LIST_FOREACH (item, list) {
147147
if (gg_obj_type(*item) != GG_TYPE_BUF) {
148148
return GG_ERR_INVALID;
149149
}

0 commit comments

Comments
 (0)