Re: HLA macro question?




spamtrap@xxxxxxxxxx wrote:
> In "Linux Device Drivers in Assembly" you have this #macro defined
> inside a namespace. If I try to compile the namespace as a separate
> compilation unit, the HLA compiler barfs - it wants the namespace
> inside a program declaration. BUT I see the include files (e.g.,
> stdout.hhf, math.hhf, etc.) are defined as stand alone namespaces.
> What gives?
>
> ---John

To be honest, I don't know what gives. I've not worked on that stuff
for a couple of years now. I stopped working on the Linux Drivers stuff
(along with most other assembly documentation) because I don't want to
do any more assembly books until I get HLA v2.0 done (so I don't have
to go back and revise them all). The other problem was that Linux 2.6
was coming along and the equates were going to have to change for 2.6
(from 2.4, on which the code is based). My guess is that HLA v2.0 will
be ready in time for Linux 2.8 :-), so I'll probably return back to the
Linux Device drivers stuff then.

As for namespaces, one has to be very careful about macros declared and
invoked inside and outside of a namespace. Sometimes you need to attach
the @global: prefix to the symbols, sometimes not. Invoking macros
inside and outside a namespace exacerbates this problem. Indeed, the
design of the way namespaces work is one of the biggest changes that
will take place in HLA v2.0.
Cheers,
Randy Hyde

.



Relevant Pages

  • Re: I really hate .NET especially inside Delphi
    ... in Delphi.NET terms this is a package (yeah, yeah, I don't know why ... to a BPL it will compile to a dll, ... will see a namespace called TimsTest with TTestClass in it, ... in a Delphi app in the Uses class you would put ...
    (borland.public.delphi.non-technical)
  • Re: custom namespaces
    ... and for which I think I must need to compile ... it so that the code behind can actually see/find reference to the custom ... I'm trying to create custom a namespace for use ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Weird bug in VS.NET 2003 IDE
    ... > From time to time, when I save my code, the IDE decides to add lines to ... > End Sub ... > End Namespace ... > the IDE adding all these lines is that the program fails to compile, ...
    (microsoft.public.vsnet.ide)
  • Re: "Writing bug free C code" thoughts
    ... behavior by incroaching on the implementation's namespace? ... at lest for someone who speaks of 'the implementation's namespace' ... "auto variables should be defined one per line" ... while he has absolutely no taste himself - the following macros ...
    (comp.lang.c)
  • Re: How to pass information, classes between forms in Windows Application mode [ FINALLY!]
    ... declarations, it will compile. ... [that Namespace only gets rid of ambiguity in class names, ...
    (microsoft.public.dotnet.languages.csharp)