🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #615

ObjAsm: Conditional includes

#615
From: Trygve R|ste
Date: Mon, 14 Dec 1992 12:37
62 lines
1248 bytes
#ifndef _objasm_problem
#define _objasm_problem

A problem with ObjAsm is the that the headerfile containg the register names, 
only can be included once. If it is included more than one time, you get an
error saying that the registername is already defined.

Here is an example:

; >h.regs

r0 RN 0
r1 RN 1
...

END

; >h.someinclude

GET h.regs

...

END


; >s.some objasm file

GET h.regs
GET h.someinclude

...

END


Now h.regs. will be included twice, resulting in an error. In Ansi-C, this is
cured in an elegant way:

/* >h.include1

#ifndef _h_include1
#define _h_include1

/* body of includefile: */

void function a();
void function b();

struct ...

...

#endif


Now, the body of the includefile is only inserted once. Is something like this
possible in ObjAsm/AAsm?

-Trygve

#endif
Technical Details
Message-ID: <1992Dec14.123731.3037@ugle.unit.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!solan1.solan.unit.no!troeste

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!solan1.solan.unit.no!troeste
From: troeste@solan.unit.no (Trygve R|ste)
Subject: ObjAsm: Conditional includes
Message-ID: <1992Dec14.123731.3037@ugle.unit.no>
Sender: news@ugle.unit.no (NetNews Administrator)
Organization: Norwegian Institute of Technology
Date: Mon, 14 Dec 92 12:37:31 GMT
Lines: 62