mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 08:59:26 +02:00
* add mode objfpc
git-svn-id: trunk@9956 -
This commit is contained in:
parent
6bba725b1b
commit
16fc86c804
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -3702,7 +3702,6 @@ packages/fcl-net/src/servlets.pp svneol=native#text/plain
|
||||
packages/fcl-net/src/ssockets.pp svneol=native#text/plain
|
||||
packages/fcl-net/src/unix/resolve.inc svneol=native#text/plain
|
||||
packages/fcl-net/src/win/resolve.inc svneol=native#text/plain
|
||||
packages/fcl-net/src/wince/resolve.inc svneol=native#text/plain
|
||||
packages/fcl-net/src/xmlrpc.pp svneol=native#text/plain
|
||||
packages/fcl-passrc/Makefile svneol=native#text/plain
|
||||
packages/fcl-passrc/Makefile.fpc svneol=native#text/plain
|
||||
|
@ -12,6 +12,9 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
}
|
||||
|
||||
{$mode objfpc}
|
||||
{$H+}
|
||||
|
||||
unit fpSock;
|
||||
|
||||
interface
|
||||
|
@ -11,11 +11,14 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
}
|
||||
|
||||
{$mode objfpc}
|
||||
{$H+}
|
||||
|
||||
unit HTTPBase;
|
||||
|
||||
interface
|
||||
|
||||
|
||||
uses Classes, fpAsync;
|
||||
|
||||
const
|
||||
|
@ -16,6 +16,9 @@ unit HTTPClient;
|
||||
|
||||
interface
|
||||
|
||||
{$mode objfpc}
|
||||
{$H+}
|
||||
|
||||
uses Classes, HTTPBase, fpSock, fpAsync;
|
||||
|
||||
type
|
||||
|
@ -14,6 +14,9 @@
|
||||
|
||||
unit HTTPSvlt;
|
||||
|
||||
{$Mode objfpc}
|
||||
{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses SysUtils, Classes, fpAsync, fpSock, HTTPBase, Servlets;
|
||||
|
@ -11,9 +11,11 @@
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
}
|
||||
|
||||
|
||||
program MkXMLRPC;
|
||||
|
||||
{$mode objfpc}
|
||||
{$H+}
|
||||
|
||||
uses SysUtils, Classes, PParser, PasTree, PasWrite;
|
||||
|
||||
resourcestring
|
||||
|
@ -11,7 +11,7 @@
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
}
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
unit Servlets;
|
||||
|
||||
interface
|
||||
|
@ -10,7 +10,7 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
**********************************************************************}
|
||||
{$MODE objfpc}
|
||||
{$MODE objfpc}{$H+}
|
||||
|
||||
unit ssockets;
|
||||
|
||||
|
@ -1,51 +0,0 @@
|
||||
|
||||
uses winsock;
|
||||
|
||||
Type
|
||||
PHostEntry = PHostEnt;
|
||||
PNetEntry = PNetEnt;
|
||||
PServEntry = PServEnt;
|
||||
|
||||
Const
|
||||
DNSErr : Integer = 0;
|
||||
|
||||
function getnetbyname ( Name : pchar) : PNetEntry;
|
||||
|
||||
begin
|
||||
DNSErr:=-1;
|
||||
Result:=Nil;
|
||||
end;
|
||||
|
||||
function getnetbyaddr ( Net : Longint; nettype : Longint) : PNetEntry;
|
||||
|
||||
begin
|
||||
DNSErr:=-2;
|
||||
Result:=Nil;
|
||||
end;
|
||||
|
||||
Function GetDNSError : Longint;
|
||||
|
||||
begin
|
||||
If DNSErr<>0 then
|
||||
begin
|
||||
GetDNSError:=-DNSErr;
|
||||
DNSErr:=0;
|
||||
end
|
||||
else
|
||||
GetDNSError:=0; // Must get win32 error ?
|
||||
end;
|
||||
|
||||
Function InitResolve : Boolean;
|
||||
|
||||
var
|
||||
wsaData : TWsaData;
|
||||
|
||||
begin
|
||||
Result:=WSAStartup(1,wsaData)=0;
|
||||
end;
|
||||
|
||||
Function FinalResolve : Boolean;
|
||||
|
||||
begin
|
||||
Result:=True;
|
||||
end;
|
@ -11,7 +11,7 @@
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
}
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
unit XMLRPC;
|
||||
|
||||
interface
|
||||
|
Loading…
Reference in New Issue
Block a user