Add support for comments in assembly code

This commit is contained in:
Pierre Pronchery 2017-12-29 03:04:04 +01:00
parent c542458aff
commit 4e7a3df481

View File

@ -60,6 +60,9 @@ _fixme()
for filename in $($FIND "../$subdir" -type f | $SORT); do
callback=
case "$filename" in
*.asm|*.S)
callback="_fixme_asm"
;;
*.c|*.h|*.js)
callback="_fixme_c"
;;
@ -78,6 +81,18 @@ _fixme()
return $ret
}
_fixme_asm()
{
retc=0
filename="$1"
#warnings
$GREP -nH '/\*.*\(TODO\|XXX\)' "$filename"
#failures
$GREP -nH '/\*.*FIXME' "$filename" && retc=2
return $retc
}
_fixme_c()
{
retc=0