1. c macro
------=_NextPart_000_0025_01BF98FF.4A360580
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
could somebody translate me this c macro to euphoria and explain general =
procedure how to do others
#define HRESULT_FACILITY(hr) (((hr) >> 16) & 0x1fff)=20
what >>,<<,... means?
------=_NextPart_000_0025_01BF98FF.4A360580
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT size=3D2>
<P><FONT face=3DArial>could somebody translate me this c macro to =
euphoria and=20
explain general procedure how to do others</FONT></P>
<P><FONT face=3DArial>#define HRESULT_FACILITY(hr) (((hr) >> 16) =
&=20
0x1fff) </FONT></P>
<P><FONT face=3DArial>what >>,<<,...=20
------=_NextPart_000_0025_01BF98FF.4A360580--
2. Re: c macro
On Tue, 28 Mar 2000 21:48:01 +0200, =?iso-8859-2?B?qWtvZGE=?=
<tone.skoda at SIOL.NET> wrote:
>could somebody translate me this c macro to euphoria and explain general
procedure how to do others
>
>#define HRESULT_FACILITY(hr) (((hr) >> 16) & 0x1fff)
>
>what >>,<<,... means?
>
They mean shift bits right, and shift bits left, respectively.
You can accomplish this in Euphoria by dividing and multiplying by powers of
2.
function shiftRight(atom x, integer count)
return floor(x / power(2, count))
end function
function shiftLeft(atom x, integer count)
return x * power(2, count)
end function
Your macro would be:
return and_bits(floor(hr / power(2, 16)), #1FFF)
Regards,
-- Pete
*now scurrying away to install beos 5 in order to port Peu to it*
3. Re: c macro
Pete wrote:
> *now scurrying away to install beos 5 in
> order to port Peu to it*
Waaa... I don't have enough disk space for that, either - I checked this
morning. Mebbe Robert can load that on an i-opener, too. Are you going to
port PEU over to it? How is PEU going, anyway?
Some assorted BeOS questions:
1. From what I've seen of the BeOS, it looks like the development
environment is _only_ C++. Will this cause Robert trouble when he ports
Euphoria over?
2. I haven't seen anything along the lines of DLLs. What's the comparable
concept in BeOS?
Thanks!
-- David Cuny
4. Re: c macro
>Some assorted BeOS questions:
>
>1. From what I've seen of the BeOS, it looks like the development
>environment is _only_ C++.
Dan Berstein said he had PEU compiled on it...oh so long ago...
>
>2. I haven't seen anything along the lines of DLLs. What's the comparable
>concept in BeOS?
I keep seeing library references to lib.this.that.so
doesn't that sound like a linux like shared library format??
Monty }Downloading Beos at 1k per second and 10 megs into 40 total :{
PSS they downsized the expected size from 600 megs required to 525...
check this link out David, you will be sold...
http://www.benews.com/BeMag/?feature_id=65
m
5. Re: c macro
- Posted by M King <boot_me at GEOCITIES.COM>
Mar 28, 2000
-
Last edited Mar 29, 2000
Here is a possible helpful link in this area David...
On shared libraries...looks good.
http://www.benews.com/BeMag/?feature_id=58
-----Original Message-----
From: David Cuny
>2. I haven't seen anything along the lines of DLLs. What's the comparable
>concept in BeOS?