Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Oct 22, 2024
1 parent 4a55c9c commit 211f97f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion cognac_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,11 @@ EOF
}
EOF
else
# no type check are made here, the aditional stuff is assumed to be a string
# no type checks are made here, the additional stuff is assumed to be a string
cat <<EOF
{
struct additional_strings *elem = malloc(sizeof *elem);
TRY(!elem, "Memory allocation failed");
(void)aret;
ptr_array_append(pa, elem);
Expand Down
2 changes: 1 addition & 1 deletion construct_data.c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
aditional=$(json-search -n additionalProperties <<< $base)

if [ "$aditional" != "null" -a "$aditional" != "false" ]; then
# no type check are made here, the aditional stuff is assumed to be a string
# no type checks are made here, the additional stuff is assumed to be a string
cat <<EOF
struct additional_strings **elems = args->additional_strs;
Expand Down
5 changes: 2 additions & 3 deletions main-helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ struct ptr_array {
*/
#define OBJ_SIZE 8

/* a is an array of "flexible size", v is the value to push, and pa
* is use to store the pointer somewhere so we can free everything
* esilly
/* a is an array with a flexible size, v is the value to push,
* and pa is used to store the pointer so that we can easily free everything later.
*/
#define SET_NEXT(a,v,pa) do { \
int cnt; \
Expand Down
2 changes: 1 addition & 1 deletion mk_args.c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ write_struct() {
aditional=$(json-search -n additionalProperties <<< $st_info)

if [ "$aditional" != "null" -a "$aditional" != "false" ]; then
# no type check are made here, the aditional stuff is assumed to be a string
# no type checks are made here, the additional stuff is assumed to be a string
echo -e '\tstruct additional_strings **additional_strs;'
fi

Expand Down

0 comments on commit 211f97f

Please sign in to comment.