You've already forked lazarus-ccr
Small improvements.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@21 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -41,6 +41,8 @@ interface
|
||||
{$PACKRECORDS C}
|
||||
{$endif}
|
||||
|
||||
{$define Apache2_0}
|
||||
|
||||
uses
|
||||
{$ifdef WINDOWS}
|
||||
Windows, winsock,
|
||||
|
@ -108,7 +108,7 @@ function apr_poll_setup(new_poll: PPapr_pollfd_t; num: apr_int32_t;
|
||||
function apr_poll(aprset: Papr_pollfd_t; numsock: apr_int32_t;
|
||||
nsds: Papr_int32_t; timeout: apr_interval_time_t): apr_status_t;
|
||||
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
||||
external LibAPR name LibNamePrefix + 'apr_poll' + LibSuff16;
|
||||
external LibAPR name LibNamePrefix + 'apr_poll' + LibSuff20;
|
||||
|
||||
{
|
||||
* Add a socket to the poll structure.
|
||||
@ -255,5 +255,5 @@ function apr_pollset_remove(pollset: Papr_pollset_t;
|
||||
function apr_pollset_poll(pollset: Papr_pollset_t; timeout: apr_interval_time_t;
|
||||
num: Papr_int32_t; const descriptors: PPapr_pollfd_t): apr_status_t;
|
||||
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
|
||||
external LibAPR name LibNamePrefix + 'apr_pollset_poll' + LibSuff16;
|
||||
external LibAPR name LibNamePrefix + 'apr_pollset_poll' + LibSuff20;
|
||||
|
||||
|
@ -39,6 +39,8 @@ unit httpd;
|
||||
{$PACKRECORDS C}
|
||||
{$endif}
|
||||
|
||||
{$define Apache2_0}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -39,6 +39,8 @@ unit httpd;
|
||||
{$PACKRECORDS C}
|
||||
{$endif}
|
||||
|
||||
{$define Apache2_2}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -7,7 +7,7 @@
|
||||
<MainUnit Value="0"/>
|
||||
<IconPath Value="./"/>
|
||||
<TargetFileExt Value=".exe"/>
|
||||
<ActiveEditorIndexAtStart Value="3"/>
|
||||
<ActiveEditorIndexAtStart Value="0"/>
|
||||
</General>
|
||||
<VersionInfo>
|
||||
<UseVersionInfo Value="False"/>
|
||||
@ -41,15 +41,15 @@
|
||||
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
|
||||
</local>
|
||||
</RunParams>
|
||||
<Units Count="103">
|
||||
<Units Count="105">
|
||||
<Unit0>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<UnitName Value="mod_hello"/>
|
||||
<CursorPos X="45" Y="20"/>
|
||||
<CursorPos X="1" Y="19"/>
|
||||
<TopLine Value="1"/>
|
||||
<EditorIndex Value="0"/>
|
||||
<UsageCount Value="54"/>
|
||||
<UsageCount Value="55"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit0>
|
||||
<Unit1>
|
||||
@ -97,11 +97,10 @@
|
||||
</Unit7>
|
||||
<Unit8>
|
||||
<Filename Value="httpd_2_0\httpd.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<UnitName Value="httpd"/>
|
||||
<CursorPos X="8" Y="163"/>
|
||||
<TopLine Value="133"/>
|
||||
<UsageCount Value="53"/>
|
||||
<CursorPos X="12" Y="31"/>
|
||||
<TopLine Value="22"/>
|
||||
<UsageCount Value="54"/>
|
||||
</Unit8>
|
||||
<Unit9>
|
||||
<Filename Value="httpd_2_0\apr\apr_network_io.inc"/>
|
||||
@ -112,9 +111,9 @@
|
||||
<Unit10>
|
||||
<Filename Value="httpd_2_0\apr\apr.pas"/>
|
||||
<UnitName Value="apr"/>
|
||||
<CursorPos X="1" Y="97"/>
|
||||
<TopLine Value="74"/>
|
||||
<UsageCount Value="9"/>
|
||||
<CursorPos X="8" Y="177"/>
|
||||
<TopLine Value="170"/>
|
||||
<UsageCount Value="10"/>
|
||||
</Unit10>
|
||||
<Unit11>
|
||||
<Filename Value="..\httpd-2.0.58\srclib\apr\include\apr_network_io.h"/>
|
||||
@ -329,11 +328,9 @@
|
||||
<Unit44>
|
||||
<Filename Value="httpd_2_2\httpd.pas"/>
|
||||
<UnitName Value="httpd"/>
|
||||
<CursorPos X="8" Y="50"/>
|
||||
<TopLine Value="32"/>
|
||||
<EditorIndex Value="12"/>
|
||||
<CursorPos X="11" Y="46"/>
|
||||
<TopLine Value="42"/>
|
||||
<UsageCount Value="20"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit44>
|
||||
<Unit45>
|
||||
<Filename Value="httpd_2_2\http_log.inc"/>
|
||||
@ -355,20 +352,16 @@
|
||||
</Unit47>
|
||||
<Unit48>
|
||||
<Filename Value="httpd_2_2\apr\apr_network_io.inc"/>
|
||||
<CursorPos X="55" Y="830"/>
|
||||
<CursorPos X="26" Y="817"/>
|
||||
<TopLine Value="814"/>
|
||||
<EditorIndex Value="9"/>
|
||||
<UsageCount Value="14"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit48>
|
||||
<Unit49>
|
||||
<Filename Value="httpd_2_2\apr\apr.pas"/>
|
||||
<UnitName Value="apr"/>
|
||||
<CursorPos X="16" Y="179"/>
|
||||
<CursorPos X="25" Y="171"/>
|
||||
<TopLine Value="169"/>
|
||||
<EditorIndex Value="1"/>
|
||||
<UsageCount Value="14"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit49>
|
||||
<Unit50>
|
||||
<Filename Value="..\..\httpd-2.2.3\srclib\apr\include\apr_ring.h"/>
|
||||
@ -386,11 +379,9 @@
|
||||
</Unit51>
|
||||
<Unit52>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<CursorPos X="2" Y="119"/>
|
||||
<TopLine Value="108"/>
|
||||
<EditorIndex Value="3"/>
|
||||
<CursorPos X="19" Y="5"/>
|
||||
<TopLine Value="1"/>
|
||||
<UsageCount Value="17"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit52>
|
||||
<Unit53>
|
||||
<Filename Value="..\..\httpd-2.0.58\include\http_config.h"/>
|
||||
@ -464,11 +455,9 @@
|
||||
</Unit63>
|
||||
<Unit64>
|
||||
<Filename Value="httpd_2_2\http_core.inc"/>
|
||||
<CursorPos X="15" Y="18"/>
|
||||
<CursorPos X="31" Y="10"/>
|
||||
<TopLine Value="3"/>
|
||||
<EditorIndex Value="2"/>
|
||||
<UsageCount Value="14"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit64>
|
||||
<Unit65>
|
||||
<Filename Value="httpd_2_2\ap_config.inc"/>
|
||||
@ -550,11 +539,9 @@
|
||||
</Unit77>
|
||||
<Unit78>
|
||||
<Filename Value="httpd_2_2\apr\apr_allocator.inc"/>
|
||||
<CursorPos X="1" Y="144"/>
|
||||
<CursorPos X="22" Y="135"/>
|
||||
<TopLine Value="130"/>
|
||||
<EditorIndex Value="7"/>
|
||||
<UsageCount Value="16"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit78>
|
||||
<Unit79>
|
||||
<Filename Value="httpd_2_2\apr\apr_hash.inc"/>
|
||||
@ -570,19 +557,15 @@
|
||||
</Unit80>
|
||||
<Unit81>
|
||||
<Filename Value="httpd_2_2\apr\apr_file_io.inc"/>
|
||||
<CursorPos X="73" Y="582"/>
|
||||
<CursorPos X="28" Y="567"/>
|
||||
<TopLine Value="564"/>
|
||||
<EditorIndex Value="11"/>
|
||||
<UsageCount Value="15"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit81>
|
||||
<Unit82>
|
||||
<Filename Value="httpd_2_2\apr\apr_pools.inc"/>
|
||||
<CursorPos X="17" Y="126"/>
|
||||
<CursorPos X="8" Y="123"/>
|
||||
<TopLine Value="121"/>
|
||||
<EditorIndex Value="4"/>
|
||||
<UsageCount Value="15"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit82>
|
||||
<Unit83>
|
||||
<Filename Value="httpd_2_2\apr\apr_tables.inc"/>
|
||||
@ -640,11 +623,9 @@
|
||||
</Unit91>
|
||||
<Unit92>
|
||||
<Filename Value="httpd_2_2\apr\apr_version.inc"/>
|
||||
<CursorPos X="13" Y="83"/>
|
||||
<CursorPos X="8" Y="112"/>
|
||||
<TopLine Value="109"/>
|
||||
<EditorIndex Value="5"/>
|
||||
<UsageCount Value="14"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit92>
|
||||
<Unit93>
|
||||
<Filename Value="httpd_2_2\apr\apr_strings.inc"/>
|
||||
@ -672,20 +653,16 @@
|
||||
</Unit96>
|
||||
<Unit97>
|
||||
<Filename Value="httpd_2_2\aprutil\apr_xml.inc"/>
|
||||
<CursorPos X="1" Y="365"/>
|
||||
<CursorPos X="24" Y="338"/>
|
||||
<TopLine Value="335"/>
|
||||
<EditorIndex Value="8"/>
|
||||
<UsageCount Value="12"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit97>
|
||||
<Unit98>
|
||||
<Filename Value="httpd_2_2\apriconv\apriconv.pas"/>
|
||||
<UnitName Value="apriconv"/>
|
||||
<CursorPos X="15" Y="54"/>
|
||||
<CursorPos X="28" Y="30"/>
|
||||
<TopLine Value="27"/>
|
||||
<EditorIndex Value="10"/>
|
||||
<UsageCount Value="12"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit98>
|
||||
<Unit99>
|
||||
<Filename Value="httpd_2_2\apriconv\apr_iconv.inc"/>
|
||||
@ -701,11 +678,9 @@
|
||||
</Unit100>
|
||||
<Unit101>
|
||||
<Filename Value="httpd_2_2\apr\apr_buckets.inc"/>
|
||||
<CursorPos X="1" Y="1"/>
|
||||
<CursorPos X="18" Y="9"/>
|
||||
<TopLine Value="1"/>
|
||||
<EditorIndex Value="6"/>
|
||||
<UsageCount Value="12"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit101>
|
||||
<Unit102>
|
||||
<Filename Value="httpd_2_2\apr/apr_hash.inc"/>
|
||||
@ -713,60 +688,54 @@
|
||||
<TopLine Value="46"/>
|
||||
<UsageCount Value="10"/>
|
||||
</Unit102>
|
||||
<Unit103>
|
||||
<Filename Value="httpd_2_0\apr\apr_file_io.inc"/>
|
||||
<CursorPos X="14" Y="528"/>
|
||||
<TopLine Value="525"/>
|
||||
<UsageCount Value="10"/>
|
||||
</Unit103>
|
||||
<Unit104>
|
||||
<Filename Value="httpd_2_0\apr\apr_poll.inc"/>
|
||||
<CursorPos X="1" Y="229"/>
|
||||
<TopLine Value="229"/>
|
||||
<EditorIndex Value="1"/>
|
||||
<UsageCount Value="10"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit104>
|
||||
</Units>
|
||||
<JumpHistory Count="13" HistoryIndex="12">
|
||||
<JumpHistory Count="8" HistoryIndex="7">
|
||||
<Position1>
|
||||
<Filename Value="httpd_2_2\apr\apr.pas"/>
|
||||
<Caret Line="177" Column="16" TopLine="169"/>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<Caret Line="121" Column="1" TopLine="112"/>
|
||||
</Position1>
|
||||
<Position2>
|
||||
<Filename Value="httpd_2_2\apr\apr.pas"/>
|
||||
<Caret Line="195" Column="16" TopLine="169"/>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<Caret Line="24" Column="1" TopLine="1"/>
|
||||
</Position2>
|
||||
<Position3>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="112" Column="32" TopLine="97"/>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<Caret Line="116" Column="1" TopLine="96"/>
|
||||
</Position3>
|
||||
<Position4>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="36" Column="10" TopLine="19"/>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<Caret Line="53" Column="18" TopLine="34"/>
|
||||
</Position4>
|
||||
<Position5>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="103" Column="65" TopLine="88"/>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<Caret Line="20" Column="14" TopLine="20"/>
|
||||
</Position5>
|
||||
<Position6>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="127" Column="56" TopLine="112"/>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<Caret Line="17" Column="1" TopLine="5"/>
|
||||
</Position6>
|
||||
<Position7>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="129" Column="67" TopLine="114"/>
|
||||
<Filename Value="mod_hello.lpr"/>
|
||||
<Caret Line="20" Column="19" TopLine="2"/>
|
||||
</Position7>
|
||||
<Position8>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="131" Column="67" TopLine="116"/>
|
||||
<Filename Value="httpd_2_0\apr\apr_poll.inc"/>
|
||||
<Caret Line="234" Column="3" TopLine="229"/>
|
||||
</Position8>
|
||||
<Position9>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="148" Column="67" TopLine="133"/>
|
||||
</Position9>
|
||||
<Position10>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="150" Column="67" TopLine="135"/>
|
||||
</Position10>
|
||||
<Position11>
|
||||
<Filename Value="httpd_2_2\apr\apr_poll.inc"/>
|
||||
<Caret Line="169" Column="27" TopLine="154"/>
|
||||
</Position11>
|
||||
<Position12>
|
||||
<Filename Value="httpd_2_2\http_core.inc"/>
|
||||
<Caret Line="15" Column="1" TopLine="1"/>
|
||||
</Position12>
|
||||
<Position13>
|
||||
<Filename Value="httpd_2_2\http_core.inc"/>
|
||||
<Caret Line="18" Column="15" TopLine="3"/>
|
||||
</Position13>
|
||||
</JumpHistory>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
|
@ -17,11 +17,10 @@ library mod_hello;
|
||||
|
||||
{$define Apache2_0}
|
||||
|
||||
uses SysUtils, httpd {$ifndef Apache1_3}, apr{$endif};
|
||||
uses SysUtils, httpd, {$ifndef Apache1_3} apr{$endif};
|
||||
|
||||
var
|
||||
test_module: module; {$ifdef Unix} public name 'test_module'; {$endif}
|
||||
default_module_ptr: Pmodule;
|
||||
|
||||
const
|
||||
MODULE_NAME = 'mod_hello.so';
|
||||
@ -58,7 +57,7 @@ begin
|
||||
{ We set the content type before doing anything else }
|
||||
{$ifdef Apache1_3}
|
||||
r^.content_type := 'text/html';
|
||||
// ap_send_http_header(r);
|
||||
ap_send_http_header(r);
|
||||
{$else}
|
||||
ap_set_content_type(r, 'text/html');
|
||||
{$endif}
|
||||
@ -82,7 +81,7 @@ begin
|
||||
ap_rputs('<BODY BGCOLOR="#FFFFFF">' + LineEnding ,r);
|
||||
ap_rputs('<H1>Hello world</H1>' + LineEnding, r);
|
||||
ap_rputs('This is the first Apache Module working with the new binding from Free Pascal' + LineEnding, r);
|
||||
// ap_rprintf(r, '<br>A sample line generated by ap_rprintf<br>' + LineEnding, []);
|
||||
ap_rprintf(r, '<br>A sample line generated by ap_rprintf<br>' + LineEnding, []);
|
||||
ap_rputs('</BODY></HTML>' + LineEnding, r);
|
||||
|
||||
{ We can either return OK or DECLINED at this point. If we return
|
||||
@ -118,8 +117,7 @@ end;
|
||||
* Library initialization code
|
||||
*******************************************************************}
|
||||
begin
|
||||
default_module_ptr := @test_module;
|
||||
FillChar(default_module_ptr^, SizeOf(default_module_ptr^), 0);
|
||||
FillChar(test_module, SizeOf(test_module), 0);
|
||||
|
||||
{$ifdef apache1_3}
|
||||
STANDARD_MODULE_STUFF(test_module);
|
||||
|
Reference in New Issue
Block a user