X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=scripts%2Fgen_curlinfo.php;fp=scripts%2Fgen_curlinfo.php;h=f9d83f653128008479d4ece2febe7596fb51489a;hp=92bde38a562cbc6d7ccb8d3af923f0399b760078;hb=bdaebfc338f06807fd985f40a38006a968f5b574;hpb=c40902a33546532405c17c6216c347874f8cb8ff diff --git a/scripts/gen_curlinfo.php b/scripts/gen_curlinfo.php index 92bde38..f9d83f6 100644 --- a/scripts/gen_curlinfo.php +++ b/scripts/gen_curlinfo.php @@ -35,7 +35,8 @@ $exclude = array( 'PRIVATE', 'LASTSOCKET', 'FTP_ENTRY_PATH' ); $translate = array( - 'HTTP_CONNECTCODE' => "connect_code" + 'HTTP_CONNECTCODE' => "connect_code", + 'COOKIELIST' => 'cookies', ); $templates = array( @@ -74,8 +75,7 @@ foreach ($infos as $info) { list(, $full, $short, $type) = $info; if (in_array($short, $exclude)) continue; if (isset($ifdefs[$short])) printf("#if HTTP_CURL_VERSION(%s)\n", $ifdefs[$short]); - if (isset($translate[$short])) $short = $translate[$short]; - printf($templates[$type], $full, strtolower($short)); + printf($templates[$type], $full, strtolower((isset($translate[$short])) ? $translate[$short] : $short)); if (isset($ifdefs[$short])) printf("#endif\n"); }