mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 20:49:49 +02:00
+ added
git-svn-id: trunk@5407 -
This commit is contained in:
parent
108c6f4d73
commit
b8ff1ce664
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -7706,6 +7706,8 @@ tests/webtbs/tw7568.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7637.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7643.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7679.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7817a.pp svneol=native#text/plain
|
||||
tests/webtbs/tw7817b.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||
|
33
tests/webtbs/tw7817a.pp
Normal file
33
tests/webtbs/tw7817a.pp
Normal file
@ -0,0 +1,33 @@
|
||||
{ %norun }
|
||||
|
||||
{$mode macpas}
|
||||
|
||||
{$inline on}
|
||||
|
||||
unit uw7817;
|
||||
|
||||
interface
|
||||
|
||||
type
|
||||
CFByteOrder = longint;
|
||||
UInt8Ptr = ^byte;
|
||||
UInt32 = cardinal;
|
||||
const
|
||||
CFByteOrderUnknown = 0;
|
||||
CFByteOrderLittleEndian = 1;
|
||||
CFByteOrderBigEndian = 2;
|
||||
|
||||
|
||||
function CFByteOrderGetCurrent: CFByteOrder; inline;
|
||||
|
||||
implementation
|
||||
|
||||
function CFByteOrderGetCurrent: CFByteOrder; inline;
|
||||
var
|
||||
x: UInt32 = (CFByteOrderBigEndian shl 24) or CFByteOrderLittleEndian;
|
||||
begin
|
||||
CFByteOrderGetCurrent := CFByteOrder(UInt8Ptr(@x)^);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
13
tests/webtbs/tw7817b.pp
Normal file
13
tests/webtbs/tw7817b.pp
Normal file
@ -0,0 +1,13 @@
|
||||
{$mode macpas}
|
||||
|
||||
{$inline on}
|
||||
|
||||
uses
|
||||
uw7817;
|
||||
|
||||
var
|
||||
byteorder: cfbyteorder;
|
||||
begin
|
||||
byteOrder := CFByteOrderGetCurrent;
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user