[cc65] Macro naming

From: Jonathan Graham Harston <jgh1arcade.demon.co.uk>
Date: 2008-05-27 17:56:02
I have a query about the macro (#define) naming convention in
cc65. In other C compilers I have headers define their presence
with, for example, __alarm_h, __kernel_h, __stdio_h, __ctype_h and
platforms with, for example, __unix__, __arm__, __riscos__,
__i386__, __bbc__.
 
cc65 uses _STDIO_H, _CTYPE_H and __APPLE2__, __BBC__ etc.
 
On and off I've been updating Small-C for the BBC, and that has
included rewriting the modules and headers into a standard format.
Should I be using __stdio_h and __bbc__ or _STDIO_H and __BBC__ ?
 
Previous code I've written with platform-dependant code in it has
used __bbc__ form macros.
 
-- 
J.G.Harston - jgh@arcade.demon.co.uk - mdfs.net/User/JGH
A Review of Sheffield City Council's Members' Allowances Scheme
                                  See http://mdfs.net/payreform
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue May 27 19:00:54 2008

This archive was generated by hypermail 2.1.8 : 2008-05-27 19:00:56 CEST