Skip to content
Snippets Groups Projects
Commit 5d9dcc9e authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Improve semicoma at the end of structs formatting

parent f0f0ed64
Branches
Tags
1 merge request!100allow generating most cdefs for lua
......@@ -43,7 +43,7 @@ grep -v '^#\|^$' | while read ident; do
case "$ident" in
struct\ *|union\ *|enum\ *)
output=$($GDB -iex "set width unlimited" --ex "ptype $ident" \
| sed '0,/^type = /s/^type = /\n/' ; echo ";")
| sed '0,/^type = /s/^type = /\n/; $ s/$/;/')
;;
*)
output=$($GDB -iex "set width unlimited" --ex "info types ^$ident\$" \
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment