提交 a303e9a6 编写于 作者: F FdaSilvaYY 提交者: Rich Salz
上级 2e38091c
...@@ -33,7 +33,7 @@ extern "C" { ...@@ -33,7 +33,7 @@ extern "C" {
/* /*
* Format specifier for printing size_t. Original conundrum was to * Format specifier for printing size_t. Original conundrum was to
* get it working with -Wformat [-Werror], which can be considered * get it working with -Wformat [-Werror], which can be considered
* overzelaous, especially in multi-platform context, but it's * overzealous, especially in multi-platform context, but it's
* conscious choice... * conscious choice...
*/ */
# if defined(_WIN64) # if defined(_WIN64)
...@@ -531,7 +531,7 @@ struct servent *PASCAL getservbyname(const char *, const char *); ...@@ -531,7 +531,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
/* /*
* NOTE: these are implemented by helpers in database app! if the database is * NOTE: these are implemented by helpers in database app! if the database is
* not linked, we need to implement them elswhere * not linked, we need to implement them elsewhere
*/ */
struct hostent *gethostbyname(const char *name); struct hostent *gethostbyname(const char *name);
struct hostent *gethostbyaddr(const char *addr, int length, int type); struct hostent *gethostbyaddr(const char *addr, int length, int type);
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
# The semantics for the platforms is that every item is checked against the # The semantics for the platforms is that every item is checked against the
# environment. For the negative items ("!FOO"), if any of them is false # environment. For the negative items ("!FOO"), if any of them is false
# (i.e. "FOO" is true) in the environment, the corresponding symbol can't be # (i.e. "FOO" is true) in the environment, the corresponding symbol can't be
# used. For the positive itms, if all of them are false in the environment, # used. For the positive items, if all of them are false in the environment,
# the corresponding symbol can't be used. Any combination of positive and # the corresponding symbol can't be used. Any combination of positive and
# negative items are possible, and of course leave room for some redundancy. # negative items are possible, and of course leave room for some redundancy.
# - "kind" is "FUNCTION" or "VARIABLE". The meaning of that is obvious. # - "kind" is "FUNCTION" or "VARIABLE". The meaning of that is obvious.
...@@ -441,7 +441,7 @@ sub do_defs ...@@ -441,7 +441,7 @@ sub do_defs
} }
if(/\/\*/) { if(/\/\*/) {
if (not /\*\//) { # multiline comment... if (not /\*\//) { # multi-line comment...
$line = $_; # ... just accumulate $line = $_; # ... just accumulate
next; next;
} else { } else {
...@@ -625,7 +625,7 @@ sub do_defs ...@@ -625,7 +625,7 @@ sub do_defs
$def .= "int d2i_$3(void);"; $def .= "int d2i_$3(void);";
$def .= "int i2d_$3(void);"; $def .= "int i2d_$3(void);";
# Variant for platforms that do not # Variant for platforms that do not
# have to access globale variables # have to access global variables
# in shared libraries through functions # in shared libraries through functions
$def .= $def .=
"#INFO:" "#INFO:"
...@@ -637,7 +637,7 @@ sub do_defs ...@@ -637,7 +637,7 @@ sub do_defs
.join(',',@current_platforms).":" .join(',',@current_platforms).":"
.join(',',@current_algorithms).";"; .join(',',@current_algorithms).";";
# Variant for platforms that have to # Variant for platforms that have to
# access globale variables in shared # access global variables in shared
# libraries through functions # libraries through functions
&$make_variant("$2_it","$2_it", &$make_variant("$2_it","$2_it",
"EXPORT_VAR_AS_FUNCTION", "EXPORT_VAR_AS_FUNCTION",
...@@ -649,7 +649,7 @@ sub do_defs ...@@ -649,7 +649,7 @@ sub do_defs
$def .= "int $3_free(void);"; $def .= "int $3_free(void);";
$def .= "int $3_new(void);"; $def .= "int $3_new(void);";
# Variant for platforms that do not # Variant for platforms that do not
# have to access globale variables # have to access global variables
# in shared libraries through functions # in shared libraries through functions
$def .= $def .=
"#INFO:" "#INFO:"
...@@ -661,7 +661,7 @@ sub do_defs ...@@ -661,7 +661,7 @@ sub do_defs
.join(',',@current_platforms).":" .join(',',@current_platforms).":"
.join(',',@current_algorithms).";"; .join(',',@current_algorithms).";";
# Variant for platforms that have to # Variant for platforms that have to
# access globale variables in shared # access global variables in shared
# libraries through functions # libraries through functions
&$make_variant("$2_it","$2_it", &$make_variant("$2_it","$2_it",
"EXPORT_VAR_AS_FUNCTION", "EXPORT_VAR_AS_FUNCTION",
...@@ -674,7 +674,7 @@ sub do_defs ...@@ -674,7 +674,7 @@ sub do_defs
$def .= "int $1_free(void);"; $def .= "int $1_free(void);";
$def .= "int $1_new(void);"; $def .= "int $1_new(void);";
# Variant for platforms that do not # Variant for platforms that do not
# have to access globale variables # have to access global variables
# in shared libraries through functions # in shared libraries through functions
$def .= $def .=
"#INFO:" "#INFO:"
...@@ -686,7 +686,7 @@ sub do_defs ...@@ -686,7 +686,7 @@ sub do_defs
.join(',',@current_platforms).":" .join(',',@current_platforms).":"
.join(',',@current_algorithms).";"; .join(',',@current_algorithms).";";
# Variant for platforms that have to # Variant for platforms that have to
# access globale variables in shared # access global variables in shared
# libraries through functions # libraries through functions
&$make_variant("$1_it","$1_it", &$make_variant("$1_it","$1_it",
"EXPORT_VAR_AS_FUNCTION", "EXPORT_VAR_AS_FUNCTION",
...@@ -696,7 +696,7 @@ sub do_defs ...@@ -696,7 +696,7 @@ sub do_defs
$def .= "int d2i_$2(void);"; $def .= "int d2i_$2(void);";
$def .= "int i2d_$2(void);"; $def .= "int i2d_$2(void);";
# Variant for platforms that do not # Variant for platforms that do not
# have to access globale variables # have to access global variables
# in shared libraries through functions # in shared libraries through functions
$def .= $def .=
"#INFO:" "#INFO:"
...@@ -708,7 +708,7 @@ sub do_defs ...@@ -708,7 +708,7 @@ sub do_defs
.join(',',@current_platforms).":" .join(',',@current_platforms).":"
.join(',',@current_algorithms).";"; .join(',',@current_algorithms).";";
# Variant for platforms that have to # Variant for platforms that have to
# access globale variables in shared # access global variables in shared
# libraries through functions # libraries through functions
&$make_variant("$2_it","$2_it", &$make_variant("$2_it","$2_it",
"EXPORT_VAR_AS_FUNCTION", "EXPORT_VAR_AS_FUNCTION",
...@@ -724,7 +724,7 @@ sub do_defs ...@@ -724,7 +724,7 @@ sub do_defs
$def .= "int $2_free(void);"; $def .= "int $2_free(void);";
$def .= "int $2_new(void);"; $def .= "int $2_new(void);";
# Variant for platforms that do not # Variant for platforms that do not
# have to access globale variables # have to access global variables
# in shared libraries through functions # in shared libraries through functions
$def .= $def .=
"#INFO:" "#INFO:"
...@@ -736,7 +736,7 @@ sub do_defs ...@@ -736,7 +736,7 @@ sub do_defs
.join(',',@current_platforms).":" .join(',',@current_platforms).":"
.join(',',@current_algorithms).";"; .join(',',@current_algorithms).";";
# Variant for platforms that have to # Variant for platforms that have to
# access globale variables in shared # access global variables in shared
# libraries through functions # libraries through functions
&$make_variant("$2_it","$2_it", &$make_variant("$2_it","$2_it",
"EXPORT_VAR_AS_FUNCTION", "EXPORT_VAR_AS_FUNCTION",
...@@ -744,7 +744,7 @@ sub do_defs ...@@ -744,7 +744,7 @@ sub do_defs
next; next;
} elsif (/^\s*DECLARE_ASN1_ITEM\s*\(\s*(\w*)\s*\)/) { } elsif (/^\s*DECLARE_ASN1_ITEM\s*\(\s*(\w*)\s*\)/) {
# Variant for platforms that do not # Variant for platforms that do not
# have to access globale variables # have to access global variables
# in shared libraries through functions # in shared libraries through functions
$def .= $def .=
"#INFO:" "#INFO:"
...@@ -756,7 +756,7 @@ sub do_defs ...@@ -756,7 +756,7 @@ sub do_defs
.join(',',@current_platforms).":" .join(',',@current_platforms).":"
.join(',',@current_algorithms).";"; .join(',',@current_algorithms).";";
# Variant for platforms that have to # Variant for platforms that have to
# access globale variables in shared # access global variables in shared
# libraries through functions # libraries through functions
&$make_variant("$1_it","$1_it", &$make_variant("$1_it","$1_it",
"EXPORT_VAR_AS_FUNCTION", "EXPORT_VAR_AS_FUNCTION",
...@@ -822,7 +822,7 @@ sub do_defs ...@@ -822,7 +822,7 @@ sub do_defs
next; next;
} elsif (/^OPENSSL_DECLARE_GLOBAL\s*\(\s*(\w*)\s*,\s*(\w*)\s*\)/) { } elsif (/^OPENSSL_DECLARE_GLOBAL\s*\(\s*(\w*)\s*,\s*(\w*)\s*\)/) {
# Variant for platforms that do not # Variant for platforms that do not
# have to access globale variables # have to access global variables
# in shared libraries through functions # in shared libraries through functions
$def .= $def .=
"#INFO:" "#INFO:"
...@@ -834,7 +834,7 @@ sub do_defs ...@@ -834,7 +834,7 @@ sub do_defs
.join(',',@current_platforms).":" .join(',',@current_platforms).":"
.join(',',@current_algorithms).";"; .join(',',@current_algorithms).";";
# Variant for platforms that have to # Variant for platforms that have to
# access globale variables in shared # access global variables in shared
# libraries through functions # libraries through functions
&$make_variant("_shadow_$2","_shadow_$2", &$make_variant("_shadow_$2","_shadow_$2",
"EXPORT_VAR_AS_FUNCTION", "EXPORT_VAR_AS_FUNCTION",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册