diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-10-02 18:19:40 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-10-02 18:19:40 +0300 |
commit | 596cc4b1cbe9c0db6cf3bfe1f2910d3883ac8ae8 (patch) | |
tree | 3a4588354ce6a4beb991af0a74f4fe0a33a3eec0 /contrib | |
parent | e25a7fa283e01510c5dbd52219d911b29080835f (diff) | |
download | libmicrohttpd-596cc4b1cbe9c0db6cf3bfe1f2910d3883ac8ae8.tar.gz libmicrohttpd-596cc4b1cbe9c0db6cf3bfe1f2910d3883ac8ae8.zip |
Helper scripts: minor simplification
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gen_http_methods_insert.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gen_http_methods_insert.sh b/contrib/gen_http_methods_insert.sh index 49e25fef..e1c5143f 100755 --- a/contrib/gen_http_methods_insert.sh +++ b/contrib/gen_http_methods_insert.sh | |||
@@ -89,7 +89,7 @@ FNR > 1 { | |||
89 | { indem_m = "Idempotent. " } | 89 | { indem_m = "Idempotent. " } |
90 | else | 90 | else |
91 | { indem_m = "Not idempotent." } | 91 | { indem_m = "Not idempotent." } |
92 | idx_str = gensub(/[^0-9A-Za-z]+/, " ", "g", reference_m) | 92 | idx_str = reference_m |
93 | main_methods[idx_str] = sprintf ("%s\n", "/* " safe_m " " indem_m " " reference_m ". */") | 93 | main_methods[idx_str] = sprintf ("%s\n", "/* " safe_m " " indem_m " " reference_m ". */") |
94 | mthd_tkn = gensub(/\*/, "ASTERISK", "g", mthd_m) | 94 | mthd_tkn = gensub(/\*/, "ASTERISK", "g", mthd_m) |
95 | gsub(/[^a-zA-Z0-9_]/, "_", mthd_tkn) | 95 | gsub(/[^a-zA-Z0-9_]/, "_", mthd_tkn) |