summaryrefslogtreecommitdiff
path: root/Src/makepro.awk
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2021-05-16 19:51:11 -0700
committerBart Schaefer <schaefer@ipost.com>2021-05-16 19:51:11 -0700
commitcf5c4828d1cdfd79e369a6b3323466bc961851c4 (patch)
tree5eaf375db11852b23df617ae0a64895e262ec2f2 /Src/makepro.awk
parent93b4ee524df9cee5886785e9a36596af872f95f7 (diff)
downloadzsh-cf5c4828d1cdfd79e369a6b3323466bc961851c4.tar.gz
zsh-cf5c4828d1cdfd79e369a6b3323466bc961851c4.zip
48857: declare "volatile" all globals that may be modified by signal handlers
Diffstat (limited to 'Src/makepro.awk')
-rw-r--r--Src/makepro.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/makepro.awk b/Src/makepro.awk
index 226d3f96b..f69660531 100644
--- a/Src/makepro.awk
+++ b/Src/makepro.awk
@@ -79,7 +79,7 @@ BEGIN {
break
}
sub(/^ */, "", line)
- match(line, /^((const|enum|mod_export|static|struct|union) +)*([_0-9A-Za-z]+ +|((char|double|float|int|long|short|unsigned|void) +)+)((const|static) +)*/)
+ match(line, /^((const|enum|mod_export|static|struct|union|volatile) +)*([_0-9A-Za-z]+ +|((char|double|float|int|long|short|unsigned|void) +)+)((const|static) +)*/)
dtype = substr(line, 1, RLENGTH)
sub(/ *$/, "", dtype)
if(" " dtype " " ~ / static /)