Skip to content

Commit 9d36838

Browse files
committed
Fix pyconf_check_define parameter order in AWK runtime.
The AWK pyconf_check_define(macro, headers) had swapped parameters compared to the Python check_define(header, define_name).
1 parent 2afbb44 commit 9d36838

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Tools/configure/configure.awk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ function pyconf_check_c_const( source) {
10121012
pyconf_define("const", "", 1, "Define to empty if const does not conform to ANSI C.")
10131013
}
10141014

1015-
function pyconf_check_define(macro, headers, source, inc, cv, rc, n, arr, i) {
1015+
function pyconf_check_define(headers, macro, source, inc, cv, rc, n, arr, i) {
10161016
cv = "ac_cv_define_" macro
10171017
if (cv in CACHE)
10181018
return (CACHE[cv] == "yes")

Tools/configure/transpiler/pyconf.awk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ function pyconf_check_c_const( source) {
977977
pyconf_define("const", "", 1, "Define to empty if const does not conform to ANSI C.")
978978
}
979979

980-
function pyconf_check_define(macro, headers, source, inc, cv, rc, n, arr, i) {
980+
function pyconf_check_define(headers, macro, source, inc, cv, rc, n, arr, i) {
981981
cv = "ac_cv_define_" macro
982982
if (cv in CACHE)
983983
return (CACHE[cv] == "yes")

0 commit comments

Comments
 (0)