diff options
Diffstat (limited to 'xC-gen-proto.awk')
-rw-r--r-- | xC-gen-proto.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xC-gen-proto.awk b/xC-gen-proto.awk index ad375af..9b65a74 100644 --- a/xC-gen-proto.awk +++ b/xC-gen-proto.awk @@ -100,12 +100,12 @@ function nexttoken() { Token = substr($0, 1, RLENGTH) $0 = substr($0, RLENGTH + 1) return Token - } else if (/./) { + } else if ($0) { Token = substr($0, 1, 1) $0 = substr($0, 2) return Token } - } while (/./ || getline > 0) + } while ($0 || getline > 0) Token = "" return Token } |