From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd63afa4dc364b7e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-26 13:48:03 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.umass.edu!world!bobduff From: Robert A Duff Subject: Re: Implementing C/C++ style #include... Sender: bobduff@world.std.com (Robert A Duff) Message-ID: Date: Mon, 26 Mar 2001 21:44:19 GMT References: <98m938$2iod0$1@ID-25716.news.dfncis.de> <99alrr$itf$1@nh.pace.co.uk> <99d5dj$fi4$1@nh.pace.co.uk> <99nkte$157$1@nh.pace.co.uk> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:6080 Date: 2001-03-26T21:44:19+00:00 List-Id: Pascal Obry writes: > I agree with you that in such a case a preprocessor could be usefull. Anothe > way to handle this is by writing a template and have the right spec generated > by a script. > > function Ada_Size_Of_Input is new > Interfaces_C_More.Storage_Unit_Size_Of (Input_Type); > pragma Export (, Ada_Size_Of_Input, > "ball_ct633_ada_size_of_input", > "ball_ct633_ada_size_of_input"); Your "script" is, in fact, a macro preprocessor. Are macros more or less evil than #if things? I've heard both opinions in this thread. ;-) - Bob