Skip to content

Commit

Permalink
misc/enumstr: assume both .h AND .c is for C header file
Browse files Browse the repository at this point in the history
This fixes a bug I introduced in daefdc4.

Signed-off-by: Masatake YAMATO <[email protected]>
  • Loading branch information
masatake committed Jul 9, 2022
1 parent 7f2dece commit 9f4db32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/enumstr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ printf '{ /* Generated by misc/enumstr.sh with cmdline:\n'
printf ' %s */\n' "$*"
echo ' switch (e)'
echo ' {'
./ctags --quiet --options=NONE --sort=no -o - --languages=C --kinds-C=e --map-C=.h -x --_xformat="%N enum:%s" $1 | grep $2 | while read N S; do
./ctags --quiet --options=NONE --sort=no -o - --languages=C --kinds-C=e --map-C=+.h -x --_xformat="%N enum:%s" $1 | grep $2 | while read N S; do
n=$N
if [ -n "$4" ]; then
n=${N#$4}
Expand Down

0 comments on commit 9f4db32

Please sign in to comment.