|
@@ -312,7 +312,7 @@ type
|
|
major: Integer; {< major number }
|
|
major: Integer; {< major number }
|
|
minor: Integer; {< minor number }
|
|
minor: Integer; {< minor number }
|
|
patch: Integer; {< patch number }
|
|
patch: Integer; {< patch number }
|
|
- add_string: PChar; {< additional string like "-dev" }
|
|
|
|
|
|
+ add_string: PAnsiChar; {< additional string like "-dev" }
|
|
end;
|
|
end;
|
|
|
|
|
|
Pap_version_t = ^ap_version_t;
|
|
Pap_version_t = ^ap_version_t;
|
|
@@ -331,7 +331,7 @@ procedure ap_get_server_revision(version: Pap_version_t);
|
|
* Get the server version string
|
|
* Get the server version string
|
|
* @return The server version string
|
|
* @return The server version string
|
|
}
|
|
}
|
|
-function ap_get_server_version: PChar;
|
|
|
|
|
|
+function ap_get_server_version: PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_server_version' + LibSuff0;
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_server_version' + LibSuff0;
|
|
|
|
|
|
@@ -340,7 +340,7 @@ function ap_get_server_version: PChar;
|
|
* @param pconf The pool to allocate the component from
|
|
* @param pconf The pool to allocate the component from
|
|
* @param component The string to add
|
|
* @param component The string to add
|
|
}
|
|
}
|
|
-procedure ap_add_version_component(pconf: Papr_pool_t; const component: PChar);
|
|
|
|
|
|
+procedure ap_add_version_component(pconf: Papr_pool_t; const component: PAnsiChar);
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_add_version_component' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_add_version_component' + LibSuff8;
|
|
|
|
|
|
@@ -348,7 +348,7 @@ procedure ap_add_version_component(pconf: Papr_pool_t; const component: PChar);
|
|
* Get the date a time that the server was built
|
|
* Get the date a time that the server was built
|
|
* @return The server build time string
|
|
* @return The server build time string
|
|
}
|
|
}
|
|
-function ap_get_server_built: PChar;
|
|
|
|
|
|
+function ap_get_server_built: PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_server_built' + LibSuff0;
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_server_built' + LibSuff0;
|
|
|
|
|
|
@@ -580,7 +580,7 @@ type
|
|
Phtaccess_result = ^htaccess_result;
|
|
Phtaccess_result = ^htaccess_result;
|
|
htaccess_result = record
|
|
htaccess_result = record
|
|
{ the directory to which this applies }
|
|
{ the directory to which this applies }
|
|
- dir: PChar;
|
|
|
|
|
|
+ dir: PAnsiChar;
|
|
{ the overrides allowed for the .htaccess file }
|
|
{ the overrides allowed for the .htaccess file }
|
|
override_: Integer;
|
|
override_: Integer;
|
|
{ the configuration directives }
|
|
{ the configuration directives }
|
|
@@ -619,9 +619,9 @@ type
|
|
{ Number of command line arguments passed to the program }
|
|
{ Number of command line arguments passed to the program }
|
|
argc: Integer;
|
|
argc: Integer;
|
|
{ The command line arguments }
|
|
{ The command line arguments }
|
|
- argv: PChar;
|
|
|
|
|
|
+ argv: PAnsiChar;
|
|
{ The program name used to execute the program }
|
|
{ The program name used to execute the program }
|
|
- short_name: PChar;
|
|
|
|
|
|
+ short_name: PAnsiChar;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ A structure that represents the current request }
|
|
{ A structure that represents the current request }
|
|
@@ -646,7 +646,7 @@ type
|
|
* protocol.c should ever touch...
|
|
* protocol.c should ever touch...
|
|
}
|
|
}
|
|
{ First line of request }
|
|
{ First line of request }
|
|
- the_request: PChar;
|
|
|
|
|
|
+ the_request: PAnsiChar;
|
|
{ HTTP/0.9, "simple" request (e.g. GET /foo\n w/no headers) }
|
|
{ HTTP/0.9, "simple" request (e.g. GET /foo\n w/no headers) }
|
|
assbackwards: Integer;
|
|
assbackwards: Integer;
|
|
{ A proxy request (calculated during post_read_request/translate_name)
|
|
{ A proxy request (calculated during post_read_request/translate_name)
|
|
@@ -657,17 +657,17 @@ type
|
|
{ HEAD request, as opposed to GET }
|
|
{ HEAD request, as opposed to GET }
|
|
header_only: Integer;
|
|
header_only: Integer;
|
|
{ Protocol string, as given to us, or HTTP/0.9 }
|
|
{ Protocol string, as given to us, or HTTP/0.9 }
|
|
- protocol: PChar;
|
|
|
|
|
|
+ protocol: PAnsiChar;
|
|
{ Protocol version number of protocol; 1.1 = 1001 }
|
|
{ Protocol version number of protocol; 1.1 = 1001 }
|
|
proto_num: Integer;
|
|
proto_num: Integer;
|
|
{ Host, as set by full URI or Host: }
|
|
{ Host, as set by full URI or Host: }
|
|
- hostname: PChar;
|
|
|
|
|
|
+ hostname: PAnsiChar;
|
|
|
|
|
|
{ Time when the request started }
|
|
{ Time when the request started }
|
|
request_time: apr_time_t;
|
|
request_time: apr_time_t;
|
|
|
|
|
|
{ Status line, if set by script }
|
|
{ Status line, if set by script }
|
|
- status_line: PChar;
|
|
|
|
|
|
+ status_line: PAnsiChar;
|
|
{ Status line }
|
|
{ Status line }
|
|
status: Integer;
|
|
status: Integer;
|
|
|
|
|
|
@@ -676,7 +676,7 @@ type
|
|
}
|
|
}
|
|
|
|
|
|
{ Request method (eg. GET, HEAD, POST, etc.) }
|
|
{ Request method (eg. GET, HEAD, POST, etc.) }
|
|
- method: PChar;
|
|
|
|
|
|
+ method: PAnsiChar;
|
|
{ M_GET, M_POST, etc. }
|
|
{ M_GET, M_POST, etc. }
|
|
method_number: Integer;
|
|
method_number: Integer;
|
|
|
|
|
|
@@ -718,7 +718,7 @@ type
|
|
{ sending chunked transfer-coding }
|
|
{ sending chunked transfer-coding }
|
|
chunked: Integer;
|
|
chunked: Integer;
|
|
{ The Range: header }
|
|
{ The Range: header }
|
|
- range: PChar;
|
|
|
|
|
|
+ range: PAnsiChar;
|
|
{ The "real" content length }
|
|
{ The "real" content length }
|
|
clength: apr_off_t;
|
|
clength: apr_off_t;
|
|
|
|
|
|
@@ -764,22 +764,22 @@ type
|
|
* they should not be modified in place.
|
|
* they should not be modified in place.
|
|
}
|
|
}
|
|
{ The content-type for the current request }
|
|
{ The content-type for the current request }
|
|
- content_type: PChar; // Break these out --- we dispatch on 'em
|
|
|
|
|
|
+ content_type: PAnsiChar; // Break these out --- we dispatch on 'em
|
|
{ The handler string that we use to call a handler function }
|
|
{ The handler string that we use to call a handler function }
|
|
- handler: PChar; // What we *really* dispatch on
|
|
|
|
|
|
+ handler: PAnsiChar; // What we *really* dispatch on
|
|
|
|
|
|
{ How to encode the data }
|
|
{ How to encode the data }
|
|
- content_encoding: PChar;
|
|
|
|
|
|
+ content_encoding: PAnsiChar;
|
|
{ Array of strings representing the content languages }
|
|
{ Array of strings representing the content languages }
|
|
content_languages: Papr_array_header_t;
|
|
content_languages: Papr_array_header_t;
|
|
|
|
|
|
{ variant list validator (if negotiated) }
|
|
{ variant list validator (if negotiated) }
|
|
- vlist_validator: PChar;
|
|
|
|
|
|
+ vlist_validator: PAnsiChar;
|
|
|
|
|
|
{ If an authentication check was made, this gets set to the user name. }
|
|
{ If an authentication check was made, this gets set to the user name. }
|
|
- user: PChar;
|
|
|
|
|
|
+ user: PAnsiChar;
|
|
{ If an authentication check was made, this gets set to the auth type. }
|
|
{ If an authentication check was made, this gets set to the auth type. }
|
|
- ap_auth_type: PChar;
|
|
|
|
|
|
+ ap_auth_type: PAnsiChar;
|
|
|
|
|
|
{ This response can not be cached }
|
|
{ This response can not be cached }
|
|
no_cache: Integer;
|
|
no_cache: Integer;
|
|
@@ -791,18 +791,18 @@ type
|
|
}
|
|
}
|
|
|
|
|
|
{ The URI without any parsing performed }
|
|
{ The URI without any parsing performed }
|
|
- unparsed_uri: PChar;
|
|
|
|
|
|
+ unparsed_uri: PAnsiChar;
|
|
{ The path portion of the URI }
|
|
{ The path portion of the URI }
|
|
- uri: PChar;
|
|
|
|
|
|
+ uri: PAnsiChar;
|
|
{ The filename on disk corresponding to this response }
|
|
{ The filename on disk corresponding to this response }
|
|
- filename: PChar;
|
|
|
|
|
|
+ filename: PAnsiChar;
|
|
{ XXX: What does this mean? Please define "canonicalize" -aaron }
|
|
{ XXX: What does this mean? Please define "canonicalize" -aaron }
|
|
{ The true filename, we canonicalize r->filename if these don't match }
|
|
{ The true filename, we canonicalize r->filename if these don't match }
|
|
- canonical_filename: PChar;
|
|
|
|
|
|
+ canonical_filename: PAnsiChar;
|
|
{ The PATH_INFO extracted from this request }
|
|
{ The PATH_INFO extracted from this request }
|
|
- path_info: PChar;
|
|
|
|
|
|
+ path_info: PAnsiChar;
|
|
{ The QUERY_ARGS extracted from this request }
|
|
{ The QUERY_ARGS extracted from this request }
|
|
- args: PChar;
|
|
|
|
|
|
+ args: PAnsiChar;
|
|
{ finfo.protection (st_mode) set to zero if no such file }
|
|
{ finfo.protection (st_mode) set to zero if no such file }
|
|
finfo: apr_finfo_t;
|
|
finfo: apr_finfo_t;
|
|
{ A struct containing the components of URI }
|
|
{ A struct containing the components of URI }
|
|
@@ -885,14 +885,14 @@ type
|
|
remote_addr: Papr_sockaddr_t;
|
|
remote_addr: Papr_sockaddr_t;
|
|
|
|
|
|
{ Client's IP address }
|
|
{ Client's IP address }
|
|
- remote_ip: PChar;
|
|
|
|
|
|
+ remote_ip: PAnsiChar;
|
|
{ Client's DNS name, if known. NULL if DNS hasn't been checked,
|
|
{ Client's DNS name, if known. NULL if DNS hasn't been checked,
|
|
* "" if it has and no address was found. N.B. Only access this though
|
|
* "" if it has and no address was found. N.B. Only access this though
|
|
* get_remote_host() }
|
|
* get_remote_host() }
|
|
- remote_host: PChar;
|
|
|
|
|
|
+ remote_host: PAnsiChar;
|
|
{ Only ever set if doing rfc1413 lookups. N.B. Only access this through
|
|
{ Only ever set if doing rfc1413 lookups. N.B. Only access this through
|
|
* get_remote_logname() }
|
|
* get_remote_logname() }
|
|
- remote_logname: PChar;
|
|
|
|
|
|
+ remote_logname: PAnsiChar;
|
|
|
|
|
|
{ Are we still talking? }
|
|
{ Are we still talking? }
|
|
flags: Cardinal;
|
|
flags: Cardinal;
|
|
@@ -914,10 +914,10 @@ type
|
|
{ How many times have we used it? }
|
|
{ How many times have we used it? }
|
|
keepalives: Integer;
|
|
keepalives: Integer;
|
|
{ server IP address }
|
|
{ server IP address }
|
|
- local_ip: PChar;
|
|
|
|
|
|
+ local_ip: PAnsiChar;
|
|
{ used for ap_get_server_name when UseCanonicalName is set to DNS
|
|
{ used for ap_get_server_name when UseCanonicalName is set to DNS
|
|
* (ignores setting of HostnameLookups) }
|
|
* (ignores setting of HostnameLookups) }
|
|
- local_host: PChar;
|
|
|
|
|
|
+ local_host: PAnsiChar;
|
|
|
|
|
|
{ ID of this connection; unique at any point in time }
|
|
{ ID of this connection; unique at any point in time }
|
|
id: Integer; // long
|
|
id: Integer; // long
|
|
@@ -949,7 +949,7 @@ type
|
|
{ The bound port, for this server }
|
|
{ The bound port, for this server }
|
|
host_port: apr_port_t;
|
|
host_port: apr_port_t;
|
|
{ The name given in <VirtualHost> }
|
|
{ The name given in <VirtualHost> }
|
|
- virthost: PChar;
|
|
|
|
|
|
+ virthost: PAnsiChar;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ A structure to store information for each virtual server }
|
|
{ A structure to store information for each virtual server }
|
|
@@ -960,23 +960,23 @@ type
|
|
next: Pserver_rec;
|
|
next: Pserver_rec;
|
|
|
|
|
|
{ The name of the server }
|
|
{ The name of the server }
|
|
- defn_name: PChar;
|
|
|
|
|
|
+ defn_name: PAnsiChar;
|
|
{ The line of the config file that the server was defined on }
|
|
{ The line of the config file that the server was defined on }
|
|
defn_line_number: Integer;
|
|
defn_line_number: Integer;
|
|
|
|
|
|
{ Contact information }
|
|
{ Contact information }
|
|
|
|
|
|
{ The admin's contact information }
|
|
{ The admin's contact information }
|
|
- server_admin: PChar;
|
|
|
|
|
|
+ server_admin: PAnsiChar;
|
|
{ The server hostname }
|
|
{ The server hostname }
|
|
- server_hostname: PChar;
|
|
|
|
|
|
+ server_hostname: PAnsiChar;
|
|
{ for redirects, etc. }
|
|
{ for redirects, etc. }
|
|
port: apr_port_t;
|
|
port: apr_port_t;
|
|
|
|
|
|
{ Log files --- note that transfer log is now in the modules... }
|
|
{ Log files --- note that transfer log is now in the modules... }
|
|
|
|
|
|
{ The name of the error log }
|
|
{ The name of the error log }
|
|
- error_fname: PChar;
|
|
|
|
|
|
+ error_fname: PAnsiChar;
|
|
{ A file descriptor that references the error log }
|
|
{ A file descriptor that references the error log }
|
|
error_log: Papr_file_t;
|
|
error_log: Papr_file_t;
|
|
{ The log level for this server }
|
|
{ The log level for this server }
|
|
@@ -1006,7 +1006,7 @@ type
|
|
keep_alive: Integer;
|
|
keep_alive: Integer;
|
|
|
|
|
|
{ Pathname for ServerPath }
|
|
{ Pathname for ServerPath }
|
|
- path: PChar;
|
|
|
|
|
|
+ path: PAnsiChar;
|
|
{ Length of path }
|
|
{ Length of path }
|
|
pathlen: Integer;
|
|
pathlen: Integer;
|
|
|
|
|
|
@@ -1075,7 +1075,7 @@ const DEFAULT_VHOST_ADDR = $ffffffff;//ul
|
|
* @param intype The field to examine
|
|
* @param intype The field to examine
|
|
* @return A copy of the field minus any parameters
|
|
* @return A copy of the field minus any parameters
|
|
}
|
|
}
|
|
-function ap_field_noparam(p: Papr_pool_t; const intype: PChar): PChar;
|
|
|
|
|
|
+function ap_field_noparam(p: Papr_pool_t; const intype: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_field_noparam' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_field_noparam' + LibSuff8;
|
|
|
|
|
|
@@ -1087,13 +1087,13 @@ function ap_field_noparam(p: Papr_pool_t; const intype: PChar): PChar;
|
|
* @param gmt Convert the time for GMT?
|
|
* @param gmt Convert the time for GMT?
|
|
* @return The string that represents the specified time
|
|
* @return The string that represents the specified time
|
|
}
|
|
}
|
|
-function ap_ht_time(p: Papr_pool_t; t: apr_time_t; const fmt: PChar; gmt: Integer): PChar;
|
|
|
|
|
|
+function ap_ht_time(p: Papr_pool_t; t: apr_time_t; const fmt: PAnsiChar; gmt: Integer): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_ht_time' + LibSuff20;
|
|
external LibHTTPD name LibNamePrefix + 'ap_ht_time' + LibSuff20;
|
|
|
|
|
|
-{ String handling. The *_nc variants allow you to use non-const char **s as
|
|
|
|
- arguments (unfortunately C won't automatically convert a char ** to a const
|
|
|
|
- char **) }
|
|
|
|
|
|
+{ String handling. The *_nc variants allow you to use non-const AnsiChar **s as
|
|
|
|
+ arguments (unfortunately C won't automatically convert a AnsiChar ** to a const
|
|
|
|
+ AnsiChar **) }
|
|
|
|
|
|
{
|
|
{
|
|
* Get the characters until the first occurance of a specified character
|
|
* Get the characters until the first occurance of a specified character
|
|
@@ -1102,7 +1102,7 @@ function ap_ht_time(p: Papr_pool_t; t: apr_time_t; const fmt: PChar; gmt: Intege
|
|
* @param stop The character to stop at
|
|
* @param stop The character to stop at
|
|
* @return A copy of the characters up to the first stop character
|
|
* @return A copy of the characters up to the first stop character
|
|
}
|
|
}
|
|
-function ap_getword(p: Papr_pool_t; const line: PPChar; stop: Char): PChar;
|
|
|
|
|
|
+function ap_getword(p: Papr_pool_t; const line: PPAnsiChar; stop: AnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword' + LibSuff12;
|
|
|
|
|
|
@@ -1112,9 +1112,9 @@ function ap_getword(p: Papr_pool_t; const line: PPChar; stop: Char): PChar;
|
|
* @param line The string to get the characters from
|
|
* @param line The string to get the characters from
|
|
* @param stop The character to stop at
|
|
* @param stop The character to stop at
|
|
* @return A copy of the characters up to the first stop character
|
|
* @return A copy of the characters up to the first stop character
|
|
- * @note This is the same as ap_getword(), except it doesn't use const char **.
|
|
|
|
|
|
+ * @note This is the same as ap_getword(), except it doesn't use const AnsiChar **.
|
|
}
|
|
}
|
|
-function ap_getword_nc(p: Papr_pool_t; const line: PPChar; stop: Char): PChar;
|
|
|
|
|
|
+function ap_getword_nc(p: Papr_pool_t; const line: PPAnsiChar; stop: AnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_nc' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_nc' + LibSuff12;
|
|
|
|
|
|
@@ -1125,7 +1125,7 @@ function ap_getword_nc(p: Papr_pool_t; const line: PPChar; stop: Char): PChar;
|
|
* @param line The string to traverse
|
|
* @param line The string to traverse
|
|
* @return The first word in the line
|
|
* @return The first word in the line
|
|
}
|
|
}
|
|
-function ap_getword_white(p: Papr_pool_t; const line: PPChar): PChar;
|
|
|
|
|
|
+function ap_getword_white(p: Papr_pool_t; const line: PPAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_white' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_white' + LibSuff8;
|
|
|
|
|
|
@@ -1135,9 +1135,9 @@ function ap_getword_white(p: Papr_pool_t; const line: PPChar): PChar;
|
|
* @param p The pool to allocate memory from
|
|
* @param p The pool to allocate memory from
|
|
* @param line The string to traverse
|
|
* @param line The string to traverse
|
|
* @return The first word in the line
|
|
* @return The first word in the line
|
|
- * @note The same as ap_getword_white(), except it doesn't use const char **.
|
|
|
|
|
|
+ * @note The same as ap_getword_white(), except it doesn't use const AnsiChar **.
|
|
}
|
|
}
|
|
-function ap_getword_white_nc(p: Papr_pool_t; const line: PPChar): PChar;
|
|
|
|
|
|
+function ap_getword_white_nc(p: Papr_pool_t; const line: PPAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_white_nc' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_white_nc' + LibSuff8;
|
|
|
|
|
|
@@ -1149,7 +1149,7 @@ function ap_getword_white_nc(p: Papr_pool_t; const line: PPChar): PChar;
|
|
* @return A copy of all caracters after the first occurance of the specified
|
|
* @return A copy of all caracters after the first occurance of the specified
|
|
* character
|
|
* character
|
|
}
|
|
}
|
|
-function ap_getword_nulls(p: Papr_pool_t; const line: PPChar; stop: Char): PChar;
|
|
|
|
|
|
+function ap_getword_nulls(p: Papr_pool_t; const line: PPAnsiChar; stop: AnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_nulls' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_nulls' + LibSuff12;
|
|
|
|
|
|
@@ -1160,9 +1160,9 @@ function ap_getword_nulls(p: Papr_pool_t; const line: PPChar; stop: Char): PChar
|
|
* @param stop The character to start at
|
|
* @param stop The character to start at
|
|
* @return A copy of all caracters after the first occurance of the specified
|
|
* @return A copy of all caracters after the first occurance of the specified
|
|
* character
|
|
* character
|
|
- * @note The same as ap_getword_nulls(), except it doesn't use const char **.
|
|
|
|
|
|
+ * @note The same as ap_getword_nulls(), except it doesn't use const AnsiChar **.
|
|
}
|
|
}
|
|
-function ap_getword_nulls_nc(p: Papr_pool_t; const line: PPChar; stop: Char): PChar;
|
|
|
|
|
|
+function ap_getword_nulls_nc(p: Papr_pool_t; const line: PPAnsiChar; stop: AnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_nulls_nc' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_nulls_nc' + LibSuff12;
|
|
|
|
|
|
@@ -1172,7 +1172,7 @@ function ap_getword_nulls_nc(p: Papr_pool_t; const line: PPChar; stop: Char): PC
|
|
* @param line The line to traverse
|
|
* @param line The line to traverse
|
|
* @return A copy of the string
|
|
* @return A copy of the string
|
|
}
|
|
}
|
|
-function ap_getword_conf(p: Papr_pool_t; const line: PPChar): PChar;
|
|
|
|
|
|
+function ap_getword_conf(p: Papr_pool_t; const line: PPAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_conf' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_conf' + LibSuff8;
|
|
|
|
|
|
@@ -1181,9 +1181,9 @@ function ap_getword_conf(p: Papr_pool_t; const line: PPChar): PChar;
|
|
* @param p The pool to allocate from
|
|
* @param p The pool to allocate from
|
|
* @param line The line to traverse
|
|
* @param line The line to traverse
|
|
* @return A copy of the string
|
|
* @return A copy of the string
|
|
- * @note The same as ap_getword_conf(), except it doesn't use const char **.
|
|
|
|
|
|
+ * @note The same as ap_getword_conf(), except it doesn't use const AnsiChar **.
|
|
}
|
|
}
|
|
-function ap_getword_conf_nc(p: Papr_pool_t; const line: PPChar): PChar;
|
|
|
|
|
|
+function ap_getword_conf_nc(p: Papr_pool_t; const line: PPAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_conf_nc' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getword_conf_nc' + LibSuff8;
|
|
|
|
|
|
@@ -1196,7 +1196,7 @@ function ap_getword_conf_nc(p: Papr_pool_t; const line: PPChar): PChar;
|
|
* @param word The string to check
|
|
* @param word The string to check
|
|
* @return The string with the replaced environment variables
|
|
* @return The string with the replaced environment variables
|
|
}
|
|
}
|
|
-function ap_resolve_env(p: Papr_pool_t; const word_: PChar; accept_white: Integer): PChar;
|
|
|
|
|
|
+function ap_resolve_env(p: Papr_pool_t; const word_: PAnsiChar; accept_white: Integer): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_resolve_env' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_resolve_env' + LibSuff8;
|
|
|
|
|
|
@@ -1209,7 +1209,7 @@ function ap_resolve_env(p: Papr_pool_t; const word_: PChar; accept_white: Intege
|
|
* address of field is shifted to the next non-comma, non-whitespace
|
|
* address of field is shifted to the next non-comma, non-whitespace
|
|
* character. len is the length of the item excluding any beginning whitespace.
|
|
* character. len is the length of the item excluding any beginning whitespace.
|
|
}
|
|
}
|
|
-function ap_size_list_item(const field: PPChar; len: Integer): PChar;
|
|
|
|
|
|
+function ap_size_list_item(const field: PPAnsiChar; len: Integer): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_size_list_item' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_size_list_item' + LibSuff8;
|
|
|
|
|
|
@@ -1223,7 +1223,7 @@ function ap_size_list_item(const field: PPChar; len: Integer): PChar;
|
|
* item (or NULL if none) and the address pointed to by field is
|
|
* item (or NULL if none) and the address pointed to by field is
|
|
* shifted to the next non-comma, non-whitespace.
|
|
* shifted to the next non-comma, non-whitespace.
|
|
}
|
|
}
|
|
-function ap_get_list_item(p: Papr_pool_t; const field: PPChar): PChar;
|
|
|
|
|
|
+function ap_get_list_item(p: Papr_pool_t; const field: PPAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_list_item' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_list_item' + LibSuff8;
|
|
|
|
|
|
@@ -1235,7 +1235,7 @@ function ap_get_list_item(p: Papr_pool_t; const field: PPChar): PChar;
|
|
* @param tok The token to search for
|
|
* @param tok The token to search for
|
|
* @return 1 if found, 0 if not found.
|
|
* @return 1 if found, 0 if not found.
|
|
}
|
|
}
|
|
-function ap_find_list_item(p: Papr_pool_t; const line, tok: PChar): Integer;
|
|
|
|
|
|
+function ap_find_list_item(p: Papr_pool_t; const line, tok: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_find_list_item' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_find_list_item' + LibSuff12;
|
|
|
|
|
|
@@ -1249,7 +1249,7 @@ function ap_find_list_item(p: Papr_pool_t; const line, tok: PChar): Integer;
|
|
* @param accept_white Is it delimited by whitespace
|
|
* @param accept_white Is it delimited by whitespace
|
|
* @return the first non-white byte after the token
|
|
* @return the first non-white byte after the token
|
|
}
|
|
}
|
|
-function ap_get_token(p: Papr_pool_t; const accept_line: PPChar; accept_white: Integer): PChar;
|
|
|
|
|
|
+function ap_get_token(p: Papr_pool_t; const accept_line: PPAnsiChar; accept_white: Integer): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_token' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_get_token' + LibSuff12;
|
|
|
|
|
|
@@ -1260,7 +1260,7 @@ function ap_get_token(p: Papr_pool_t; const accept_line: PPChar; accept_white: I
|
|
* @param tok The token to find
|
|
* @param tok The token to find
|
|
* @return 1 if the token is found, 0 otherwise
|
|
* @return 1 if the token is found, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_find_token(p: Papr_pool_t; const line, tok: PChar): Integer;
|
|
|
|
|
|
+function ap_find_token(p: Papr_pool_t; const line, tok: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_find_token' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_find_token' + LibSuff12;
|
|
|
|
|
|
@@ -1271,7 +1271,7 @@ function ap_find_token(p: Papr_pool_t; const line, tok: PChar): Integer;
|
|
* @param tok The token to find
|
|
* @param tok The token to find
|
|
* @return 1 if the token is found, 0 otherwise
|
|
* @return 1 if the token is found, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_find_last_token(p: Papr_pool_t; const line, tok: PChar): Integer;
|
|
|
|
|
|
+function ap_find_last_token(p: Papr_pool_t; const line, tok: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_find_last_token' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_find_last_token' + LibSuff12;
|
|
|
|
|
|
@@ -1280,7 +1280,7 @@ function ap_find_last_token(p: Papr_pool_t; const line, tok: PChar): Integer;
|
|
* @param u The string to check
|
|
* @param u The string to check
|
|
* @return 1 if URI, 0 otherwise
|
|
* @return 1 if URI, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_is_url(const u: PChar): Integer;
|
|
|
|
|
|
+function ap_is_url(const u: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_url' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_url' + LibSuff4;
|
|
|
|
|
|
@@ -1289,7 +1289,7 @@ function ap_is_url(const u: PChar): Integer;
|
|
* @param url The url to unescape
|
|
* @param url The url to unescape
|
|
* @return 0 on success, non-zero otherwise
|
|
* @return 0 on success, non-zero otherwise
|
|
}
|
|
}
|
|
-function ap_unescape_url(url: PChar): Integer;
|
|
|
|
|
|
+function ap_unescape_url(url: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_unescape_url' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_unescape_url' + LibSuff4;
|
|
|
|
|
|
@@ -1298,7 +1298,7 @@ function ap_unescape_url(url: PChar): Integer;
|
|
* @param url The url to unescape
|
|
* @param url The url to unescape
|
|
* @return 0 on success, non-zero otherwise
|
|
* @return 0 on success, non-zero otherwise
|
|
}
|
|
}
|
|
-function ap_unescape_url_keep2f(url: PChar): Integer;
|
|
|
|
|
|
+function ap_unescape_url_keep2f(url: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_unescape_url_keep2f' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_unescape_url_keep2f' + LibSuff4;
|
|
|
|
|
|
@@ -1306,7 +1306,7 @@ function ap_unescape_url_keep2f(url: PChar): Integer;
|
|
* Convert all double slashes to single slashes
|
|
* Convert all double slashes to single slashes
|
|
* @param name The string to convert
|
|
* @param name The string to convert
|
|
}
|
|
}
|
|
-procedure ap_no2slash(name: PChar);
|
|
|
|
|
|
+procedure ap_no2slash(name: PAnsiChar);
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_no2slash' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_no2slash' + LibSuff4;
|
|
|
|
|
|
@@ -1315,7 +1315,7 @@ procedure ap_no2slash(name: PChar);
|
|
* any leading ../ or /../ substrings.
|
|
* any leading ../ or /../ substrings.
|
|
* @param name the file name to parse
|
|
* @param name the file name to parse
|
|
}
|
|
}
|
|
-procedure ap_getparents(name: PChar);
|
|
|
|
|
|
+procedure ap_getparents(name: PAnsiChar);
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_getparents' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_getparents' + LibSuff4;
|
|
|
|
|
|
@@ -1325,7 +1325,7 @@ procedure ap_getparents(name: PChar);
|
|
* @param s The path to convert
|
|
* @param s The path to convert
|
|
* @return The converted URL
|
|
* @return The converted URL
|
|
}
|
|
}
|
|
-function ap_escape_path_segment(p: Papr_pool_t; const s: PChar): PChar;
|
|
|
|
|
|
+function ap_escape_path_segment(p: Papr_pool_t; const s: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_path_segment' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_path_segment' + LibSuff8;
|
|
|
|
|
|
@@ -1337,12 +1337,12 @@ function ap_escape_path_segment(p: Papr_pool_t; const s: PChar): PChar;
|
|
* with a '/' in it (and thus does not prefix "./")
|
|
* with a '/' in it (and thus does not prefix "./")
|
|
* @return The converted URL
|
|
* @return The converted URL
|
|
}
|
|
}
|
|
-function ap_os_escape_path(p: Papr_pool_t; const path: PChar; partial: Integer): PChar;
|
|
|
|
|
|
+function ap_os_escape_path(p: Papr_pool_t; const path: PAnsiChar; partial: Integer): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_os_escape_path' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_os_escape_path' + LibSuff12;
|
|
|
|
|
|
{ @see ap_os_escape_path }
|
|
{ @see ap_os_escape_path }
|
|
-function ap_escape_uri(p: Papr_pool_t; const path: PChar): PChar;
|
|
|
|
|
|
+function ap_escape_uri(p: Papr_pool_t; const path: PAnsiChar): PAnsiChar;
|
|
|
|
|
|
{
|
|
{
|
|
* Escape an html string
|
|
* Escape an html string
|
|
@@ -1350,7 +1350,7 @@ function ap_escape_uri(p: Papr_pool_t; const path: PChar): PChar;
|
|
* @param s The html to escape
|
|
* @param s The html to escape
|
|
* @return The escaped string
|
|
* @return The escaped string
|
|
}
|
|
}
|
|
-function ap_escape_html(p: Papr_pool_t; const s: PChar): PChar;
|
|
|
|
|
|
+function ap_escape_html(p: Papr_pool_t; const s: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_html' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_html' + LibSuff8;
|
|
|
|
|
|
@@ -1360,7 +1360,7 @@ function ap_escape_html(p: Papr_pool_t; const s: PChar): PChar;
|
|
* @param str The string to escape
|
|
* @param str The string to escape
|
|
* @return The escaped string
|
|
* @return The escaped string
|
|
}
|
|
}
|
|
-function ap_escape_logitem(p: Papr_pool_t; const str: PChar): PChar;
|
|
|
|
|
|
+function ap_escape_logitem(p: Papr_pool_t; const str: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_logitem' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_logitem' + LibSuff8;
|
|
|
|
|
|
@@ -1371,7 +1371,7 @@ function ap_escape_logitem(p: Papr_pool_t; const str: PChar): PChar;
|
|
* @param buflen The buffer size for the escaped string (including \0)
|
|
* @param buflen The buffer size for the escaped string (including \0)
|
|
* @return The len of the escaped string (always < maxlen)
|
|
* @return The len of the escaped string (always < maxlen)
|
|
}
|
|
}
|
|
-function ap_escape_errorlog_item(dest, source: PChar;
|
|
|
|
|
|
+function ap_escape_errorlog_item(dest, source: PAnsiChar;
|
|
buflen: apr_size_t): apr_size_t;
|
|
buflen: apr_size_t): apr_size_t;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_errorlog_item' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_errorlog_item' + LibSuff12;
|
|
@@ -1384,8 +1384,8 @@ function ap_escape_errorlog_item(dest, source: PChar;
|
|
* @param r The current request
|
|
* @param r The current request
|
|
* @return The server's hostname
|
|
* @return The server's hostname
|
|
}
|
|
}
|
|
-function ap_construct_server(p: Papr_pool_t; const hostname: PChar;
|
|
|
|
- port: Papr_port_t; const r: Prequest_rec): PChar;
|
|
|
|
|
|
+function ap_construct_server(p: Papr_pool_t; const hostname: PAnsiChar;
|
|
|
|
+ port: Papr_port_t; const r: Prequest_rec): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_construct_server' + LibSuff16;
|
|
external LibHTTPD name LibNamePrefix + 'ap_construct_server' + LibSuff16;
|
|
|
|
|
|
@@ -1395,7 +1395,7 @@ function ap_construct_server(p: Papr_pool_t; const hostname: PChar;
|
|
* @param s The command to escape
|
|
* @param s The command to escape
|
|
* @return The escaped shell command
|
|
* @return The escaped shell command
|
|
}
|
|
}
|
|
-function ap_escape_shell_cmd(p: Papr_pool_t; const s: PChar): PChar;
|
|
|
|
|
|
+function ap_escape_shell_cmd(p: Papr_pool_t; const s: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_shell_cmd' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_shell_cmd' + LibSuff8;
|
|
|
|
|
|
@@ -1404,7 +1404,7 @@ function ap_escape_shell_cmd(p: Papr_pool_t; const s: PChar): PChar;
|
|
* @param path The path to count
|
|
* @param path The path to count
|
|
* @return The number of directories
|
|
* @return The number of directories
|
|
}
|
|
}
|
|
-function ap_count_dirs(const path: PChar): Integer;
|
|
|
|
|
|
+function ap_count_dirs(const path: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_count_dirs' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_count_dirs' + LibSuff4;
|
|
|
|
|
|
@@ -1419,7 +1419,7 @@ function ap_count_dirs(const path: PChar): Integer;
|
|
* @note on platforms with drive letters, n = 0 returns the "/" root,
|
|
* @note on platforms with drive letters, n = 0 returns the "/" root,
|
|
* whereas n = 1 returns the "d:/" root. On all other platforms, n = 0
|
|
* whereas n = 1 returns the "d:/" root. On all other platforms, n = 0
|
|
* returns the empty string. }
|
|
* returns the empty string. }
|
|
-function ap_make_dirstr_prefix(const d, s: PChar; n: Integer): PChar;
|
|
|
|
|
|
+function ap_make_dirstr_prefix(const d, s: PAnsiChar; n: Integer): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_make_dirstr_prefix' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_make_dirstr_prefix' + LibSuff12;
|
|
|
|
|
|
@@ -1430,7 +1430,7 @@ function ap_make_dirstr_prefix(const d, s: PChar; n: Integer): PChar;
|
|
* @param s The file to get the parent of
|
|
* @param s The file to get the parent of
|
|
* @return A copy of the file's parent directory
|
|
* @return A copy of the file's parent directory
|
|
}
|
|
}
|
|
-function ap_make_dirstr_parent(p: Papr_pool_t; const s: PChar): PChar;
|
|
|
|
|
|
+function ap_make_dirstr_parent(p: Papr_pool_t; const s: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_make_dirstr_parent' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_make_dirstr_parent' + LibSuff8;
|
|
|
|
|
|
@@ -1446,7 +1446,7 @@ function ap_make_dirstr_parent(p: Papr_pool_t; const s: PChar): PChar;
|
|
* names that need to remain canonical, unless you are merging an apr_dir_read
|
|
* names that need to remain canonical, unless you are merging an apr_dir_read
|
|
* path and returned filename. Otherwise, the result is not canonical.
|
|
* path and returned filename. Otherwise, the result is not canonical.
|
|
}
|
|
}
|
|
-function ap_make_full_path(a: Papr_pool_t; const dir, f: PChar): PChar;
|
|
|
|
|
|
+function ap_make_full_path(a: Papr_pool_t; const dir, f: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_make_full_path' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_make_full_path' + LibSuff12;
|
|
|
|
|
|
@@ -1458,7 +1458,7 @@ function ap_make_full_path(a: Papr_pool_t; const dir, f: PChar): PChar;
|
|
* multiple forms of absolute paths. This only reports if the path is absolute
|
|
* multiple forms of absolute paths. This only reports if the path is absolute
|
|
* in a canonical sense.
|
|
* in a canonical sense.
|
|
}
|
|
}
|
|
-function ap_os_is_path_absolute(p: Papr_pool_t; const dir: PChar): Integer;
|
|
|
|
|
|
+function ap_os_is_path_absolute(p: Papr_pool_t; const dir: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_os_is_path_absolute' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_os_is_path_absolute' + LibSuff8;
|
|
|
|
|
|
@@ -1469,7 +1469,7 @@ function ap_os_is_path_absolute(p: Papr_pool_t; const dir: PChar): Integer;
|
|
* @param str The string to check
|
|
* @param str The string to check
|
|
* @return 1 if the string has wildcards, 0 otherwise
|
|
* @return 1 if the string has wildcards, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_is_matchexp(const str: PChar): Integer;
|
|
|
|
|
|
+function ap_is_matchexp(const str: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_matchexp' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_matchexp' + LibSuff4;
|
|
|
|
|
|
@@ -1479,7 +1479,7 @@ function ap_is_matchexp(const str: PChar): Integer;
|
|
* @param expected The pattern to match against
|
|
* @param expected The pattern to match against
|
|
* @return 1 if the two strings match, 0 otherwise
|
|
* @return 1 if the two strings match, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_strcmp_match(const str, expected: PChar): Integer;
|
|
|
|
|
|
+function ap_strcmp_match(const str, expected: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_strcmp_match' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_strcmp_match' + LibSuff8;
|
|
|
|
|
|
@@ -1490,7 +1490,7 @@ function ap_strcmp_match(const str, expected: PChar): Integer;
|
|
* @param expected The pattern to match against
|
|
* @param expected The pattern to match against
|
|
* @return 1 if the two strings match, 0 otherwise
|
|
* @return 1 if the two strings match, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_strcasecmp_match(const str, expected: PChar): Integer;
|
|
|
|
|
|
+function ap_strcasecmp_match(const str, expected: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_strcasecmp_match' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_strcasecmp_match' + LibSuff8;
|
|
|
|
|
|
@@ -1501,7 +1501,7 @@ function ap_strcasecmp_match(const str, expected: PChar): Integer;
|
|
* @return A pointer to the beginning of the substring
|
|
* @return A pointer to the beginning of the substring
|
|
* @remark See apr_strmatch() for a faster alternative
|
|
* @remark See apr_strmatch() for a faster alternative
|
|
}
|
|
}
|
|
-function ap_strcasestr(const s1, s2: PChar): PChar;
|
|
|
|
|
|
+function ap_strcasestr(const s1, s2: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_strcasestr' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_strcasestr' + LibSuff8;
|
|
|
|
|
|
@@ -1511,7 +1511,7 @@ function ap_strcasestr(const s1, s2: PChar): PChar;
|
|
* @param prefix The prefix to strip away
|
|
* @param prefix The prefix to strip away
|
|
* @return A pointer relative to bigstring after prefix
|
|
* @return A pointer relative to bigstring after prefix
|
|
}
|
|
}
|
|
-function ap_stripprefix(const bigstring, prefix: PChar): PChar;
|
|
|
|
|
|
+function ap_stripprefix(const bigstring, prefix: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_stripprefix' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_stripprefix' + LibSuff8;
|
|
|
|
|
|
@@ -1521,7 +1521,7 @@ function ap_stripprefix(const bigstring, prefix: PChar): PChar;
|
|
* @param bufcoded The encoded string
|
|
* @param bufcoded The encoded string
|
|
* @return The decoded string
|
|
* @return The decoded string
|
|
}
|
|
}
|
|
-function ap_pbase64decode(p: Papr_pool_t; const bufcoded: PChar): PChar;
|
|
|
|
|
|
+function ap_pbase64decode(p: Papr_pool_t; const bufcoded: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_pbase64decode' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_pbase64decode' + LibSuff8;
|
|
|
|
|
|
@@ -1531,7 +1531,7 @@ function ap_pbase64decode(p: Papr_pool_t; const bufcoded: PChar): PChar;
|
|
* @param strin The plaintext string
|
|
* @param strin The plaintext string
|
|
* @return The encoded string
|
|
* @return The encoded string
|
|
}
|
|
}
|
|
-function ap_pbase64encode(p: Papr_pool_t; string_: PChar): PChar;
|
|
|
|
|
|
+function ap_pbase64encode(p: Papr_pool_t; string_: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_pbase64encode' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_pbase64encode' + LibSuff8;
|
|
|
|
|
|
@@ -1547,7 +1547,7 @@ function ap_pbase64encode(p: Papr_pool_t; string_: PChar): PChar;
|
|
* @li #REG_NEWLINE - Match-any-character operators don't match new-line
|
|
* @li #REG_NEWLINE - Match-any-character operators don't match new-line
|
|
* @return The compiled regular expression
|
|
* @return The compiled regular expression
|
|
}
|
|
}
|
|
-function ap_pregcomp(p: Papr_pool_t; const pattern: PChar; cflags: Integer): Pregex_t;
|
|
|
|
|
|
+function ap_pregcomp(p: Papr_pool_t; const pattern: PAnsiChar; cflags: Integer): Pregex_t;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_pregcomp' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_pregcomp' + LibSuff12;
|
|
|
|
|
|
@@ -1572,7 +1572,7 @@ procedure ap_pregfree(p: Papr_pool_t; reg: Pregex_t);
|
|
* @li #REG_NOTEOL - match-end-of-line operator always fails to match
|
|
* @li #REG_NOTEOL - match-end-of-line operator always fails to match
|
|
* @return 0 for successful match, #REG_NOMATCH otherwise
|
|
* @return 0 for successful match, #REG_NOMATCH otherwise
|
|
}
|
|
}
|
|
-function ap_regexec(preg: Pregex_t; const string_: PChar;
|
|
|
|
|
|
+function ap_regexec(preg: Pregex_t; const string_: PAnsiChar;
|
|
nmatch: size_t; pmatch: array of regmatch_t; eflags: Integer): Integer;
|
|
nmatch: size_t; pmatch: array of regmatch_t; eflags: Integer): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_regexec' + LibSuff20;
|
|
external LibHTTPD name LibNamePrefix + 'ap_regexec' + LibSuff20;
|
|
@@ -1585,7 +1585,7 @@ function ap_regexec(preg: Pregex_t; const string_: PChar;
|
|
* @param errbuf_size The size of the buffer
|
|
* @param errbuf_size The size of the buffer
|
|
}
|
|
}
|
|
function ap_regerror(errcode: Integer; preg: Pregex_t;
|
|
function ap_regerror(errcode: Integer; preg: Pregex_t;
|
|
- errbuf: PChar; errbuf_size: size_t): size_t;
|
|
|
|
|
|
+ errbuf: PAnsiChar; errbuf_size: size_t): size_t;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_regerror' + LibSuff16;
|
|
external LibHTTPD name LibNamePrefix + 'ap_regerror' + LibSuff16;
|
|
|
|
|
|
@@ -1600,8 +1600,8 @@ function ap_regerror(errcode: Integer; preg: Pregex_t;
|
|
* @param nmatch the nmatch returned from ap_pregex
|
|
* @param nmatch the nmatch returned from ap_pregex
|
|
* @param pmatch the pmatch array returned from ap_pregex
|
|
* @param pmatch the pmatch array returned from ap_pregex
|
|
}
|
|
}
|
|
-function ap_pregsub(p: Papr_pool_t; const input, source: PChar;
|
|
|
|
- nmatch: size_t; pmatch: array of regmatch_t): PChar;
|
|
|
|
|
|
+function ap_pregsub(p: Papr_pool_t; const input, source: PAnsiChar;
|
|
|
|
+ nmatch: size_t; pmatch: array of regmatch_t): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_pregsub' + LibSuff20;
|
|
external LibHTTPD name LibNamePrefix + 'ap_pregsub' + LibSuff20;
|
|
|
|
|
|
@@ -1610,7 +1610,7 @@ function ap_pregsub(p: Papr_pool_t; const input, source: PChar;
|
|
* but nothing else because ;parameter=foo values are case sensitive.
|
|
* but nothing else because ;parameter=foo values are case sensitive.
|
|
* @param s The content-type to convert to lowercase
|
|
* @param s The content-type to convert to lowercase
|
|
}
|
|
}
|
|
-procedure ap_content_type_tolower(s: PChar);
|
|
|
|
|
|
+procedure ap_content_type_tolower(s: PAnsiChar);
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_content_type_tolower' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_content_type_tolower' + LibSuff4;
|
|
|
|
|
|
@@ -1618,7 +1618,7 @@ procedure ap_content_type_tolower(s: PChar);
|
|
* convert a string to all lowercase
|
|
* convert a string to all lowercase
|
|
* @param s The string to convert to lowercase
|
|
* @param s The string to convert to lowercase
|
|
}
|
|
}
|
|
-procedure ap_str_tolower(s: PChar);
|
|
|
|
|
|
+procedure ap_str_tolower(s: PAnsiChar);
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_str_tolower' + LibSuff4;
|
|
external LibHTTPD name LibNamePrefix + 'ap_str_tolower' + LibSuff4;
|
|
|
|
|
|
@@ -1629,7 +1629,7 @@ procedure ap_str_tolower(s: PChar);
|
|
* @param c The character to search for
|
|
* @param c The character to search for
|
|
* @return The index of the first occurrence of c in str
|
|
* @return The index of the first occurrence of c in str
|
|
}
|
|
}
|
|
-function ap_ind(str: PChar; c: Char): Integer;
|
|
|
|
|
|
+function ap_ind(str: PAnsiChar; c: AnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_ind' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_ind' + LibSuff8;
|
|
|
|
|
|
@@ -1640,7 +1640,7 @@ function ap_ind(str: PChar; c: Char): Integer;
|
|
* @param c The character to search for
|
|
* @param c The character to search for
|
|
* @return The index of the first occurrence of c in str
|
|
* @return The index of the first occurrence of c in str
|
|
}
|
|
}
|
|
-function ap_rind(str: PChar; c: Char): Integer;
|
|
|
|
|
|
+function ap_rind(str: PAnsiChar; c: AnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_rind' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_rind' + LibSuff8;
|
|
|
|
|
|
@@ -1650,7 +1650,7 @@ function ap_rind(str: PChar; c: Char): Integer;
|
|
* @param instring The string to search for "
|
|
* @param instring The string to search for "
|
|
* @return A copy of the string with escaped quotes
|
|
* @return A copy of the string with escaped quotes
|
|
}
|
|
}
|
|
-function ap_escape_quotes(p: Papr_pool_t; const instring: PChar): PChar;
|
|
|
|
|
|
+function ap_escape_quotes(p: Papr_pool_t; const instring: PAnsiChar): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_quotes' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_escape_quotes' + LibSuff8;
|
|
|
|
|
|
@@ -1661,7 +1661,7 @@ function ap_escape_quotes(p: Papr_pool_t; const instring: PChar): PChar;
|
|
* @param name The name of the object to check
|
|
* @param name The name of the object to check
|
|
* @return 1 if it is a directory, 0 otherwise
|
|
* @return 1 if it is a directory, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_is_rdirectory(p: Papr_pool_t; const name: PChar): Integer;
|
|
|
|
|
|
+function ap_is_rdirectory(p: Papr_pool_t; const name: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_rdirectory' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_rdirectory' + LibSuff8;
|
|
|
|
|
|
@@ -1671,13 +1671,13 @@ function ap_is_rdirectory(p: Papr_pool_t; const name: PChar): Integer;
|
|
* @param name The name of the object to check
|
|
* @param name The name of the object to check
|
|
* @return 1 if it is a directory, 0 otherwise
|
|
* @return 1 if it is a directory, 0 otherwise
|
|
}
|
|
}
|
|
-function ap_is_directory(p: Papr_pool_t; const name: PChar): Integer;
|
|
|
|
|
|
+function ap_is_directory(p: Papr_pool_t; const name: PAnsiChar): Integer;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_directory' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_is_directory' + LibSuff8;
|
|
|
|
|
|
{#ifdef _OSD_POSIX
|
|
{#ifdef _OSD_POSIX
|
|
-extern const char *os_set_account(apr_pool_t *p, const char *account);
|
|
|
|
-extern int os_init_job_environment(server_rec *s, const char *user_name, int one_process);
|
|
|
|
|
|
+extern const AnsiChar *os_set_account(apr_pool_t *p, const AnsiChar *account);
|
|
|
|
+extern int os_init_job_environment(server_rec *s, const AnsiChar *user_name, int one_process);
|
|
#endif} { _OSD_POSIX }
|
|
#endif} { _OSD_POSIX }
|
|
|
|
|
|
{
|
|
{
|
|
@@ -1685,7 +1685,7 @@ extern int os_init_job_environment(server_rec *s, const char *user_name, int one
|
|
* @param p The pool to allocate from
|
|
* @param p The pool to allocate from
|
|
* @return A copy of the local host name
|
|
* @return A copy of the local host name
|
|
}
|
|
}
|
|
-//char *ap_get_local_host(apr_pool_t *p);
|
|
|
|
|
|
+//AnsiChar *ap_get_local_host(apr_pool_t *p);
|
|
|
|
|
|
{
|
|
{
|
|
* Log an assertion to the error log
|
|
* Log an assertion to the error log
|
|
@@ -1693,7 +1693,7 @@ extern int os_init_job_environment(server_rec *s, const char *user_name, int one
|
|
* @param szFile The file the assertion is in
|
|
* @param szFile The file the assertion is in
|
|
* @param nLine The line the assertion is defined on
|
|
* @param nLine The line the assertion is defined on
|
|
}
|
|
}
|
|
-procedure ap_log_assert(szExp, szFile: PChar; nLine: Integer);
|
|
|
|
|
|
+procedure ap_log_assert(szExp, szFile: PAnsiChar; nLine: Integer);
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_log_assert' + LibSuff12;
|
|
external LibHTTPD name LibNamePrefix + 'ap_log_assert' + LibSuff12;
|
|
|
|
|
|
@@ -1749,7 +1749,7 @@ extern int raise_sigstop_flags;
|
|
* @param r The request_rec
|
|
* @param r The request_rec
|
|
* @return HTML describing the server, allocated in @a r's pool.
|
|
* @return HTML describing the server, allocated in @a r's pool.
|
|
}
|
|
}
|
|
-function ap_psignature(prefix: PChar; r: Prequest_rec): PChar;
|
|
|
|
|
|
+function ap_psignature(prefix: PAnsiChar; r: Prequest_rec): PAnsiChar;
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
|
external LibHTTPD name LibNamePrefix + 'ap_psignature' + LibSuff8;
|
|
external LibHTTPD name LibNamePrefix + 'ap_psignature' + LibSuff8;
|
|
|
|
|