summaryrefslogtreecommitdiff
path: root/xC-gen-proto.awk
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-27 23:39:53 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-27 23:48:12 +0200
commit4d99690b89bda2814b78f01b88b7833296d47717 (patch)
tree6beac37b188564662c44feee268df73fc196ee5e /xC-gen-proto.awk
parent7c74e6615dcf3d1ec288028ee1e49d2556cafffe (diff)
downloadxK-4d99690b89bda2814b78f01b88b7833296d47717.tar.gz
xK-4d99690b89bda2814b78f01b88b7833296d47717.tar.xz
xK-4d99690b89bda2814b78f01b88b7833296d47717.zip
xS: parse project version from CMakeLists.txt
Diffstat (limited to 'xC-gen-proto.awk')
-rw-r--r--xC-gen-proto.awk4
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
}