Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Dec 24, 2024
1 parent 4c051fa commit 47e3d59
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion bin/get_path_description.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ int main(int ac, char **av)
if (!post_or_get)
goto err;

dprintf(2, "%s\n", element);
printf("\"\"\n");
func_ret = 0;
goto out;
Expand Down
9 changes: 1 addition & 8 deletions cognac_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,20 +242,13 @@ replace_args()
st_info=$(json-search "${x}${FUNCTION_SUFFIX}" < osc-api.json)
A_LST=$(bin/get_argument_list osc-api.json ${x}${FUNCTION_SUFFIX})

#debug "st info: $st_info"
echo -en $D1
for a in $A_LST; do
local t=$(get_type3 "$st_info" "$a")
local snake_n=$(bin/path_to_snakecase $a)
echo "\"--$a: $t\\n\""
PATH_DESC=$(bin/get_path_description "$st_info" "$a")
local PATH_RET=$?

if [[ "$PATH_RET" == "0" ]]; then
echo $PATH_DESC
else
get_type_description "$st_info" "$a" | sed 's/<br \/>//g;s/\\"/\&quot;/g' | tr -d '"' | fold -s -w92 | sed 's/^/\t" /;s/$/\\n"/;s/\&quot;/\\"/g'
fi
get_type_description "$st_info" "$a" | sed 's/<br \/>//g;s/\\"/\&quot;/g' | tr -d '"' | fold -s -w92 | sed 's/^/\t" /;s/$/\\n"/;s/\&quot;/\\"/g'
done
echo -en $D2
done
Expand Down
1 change: 0 additions & 1 deletion mk_args.c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ for l in $CALL_LIST ;do
echo " /* Required: $required"
echo " */"

debug "descriptions now"
for x in $ARGS_LIST ;do
snake_name=$(to_snakecase <<< "$x")

Expand Down

0 comments on commit 47e3d59

Please sign in to comment.