From: STARYNKEVITCH Basile <Basile.Starynkevitch@cea.fr>
To: Caml Mailing List <caml-list@inria.fr>
Cc: xavier.leroy@inria.fr
Subject: C macro name clash in Ocaml 3.00 source
Date: Fri, 21 Jul 2000 14:15:53 +0200 (MET DST) [thread overview]
Message-ID: <14712.16121.609048.226316@gargle.gargle.HOWL> (raw)
Hello All (and particularily Ocaml developpers),
There are some annoying name clashes in Ocaml public includes
<caml/mlvalues.h> and <caml/misc.h>
As an example, Atom is a a unary macro in <caml/mlvalues.h> and is
also a type in <X11/X.h>. Also Assert is quite easily used by (other)
applications. etc...
I suggest that all publicly visible macros (i.e. those defined by
<caml/*.h> file included by an application C wrapping code) would have
a common prefix. Therefore Atom in <caml/mlvalues.h> would become
OCAML_Atom, Assert would become OCAML_Assert, etc... and so forth.
I may even volonteer for this boring job (it wont take too much of my
time since I do know quite well the Ocaml implementation) if I am sure
that my patches would be included in the next Ocaml release.
(Compatibility with old C source could be kept with optionaly #define-ing
Atom as OCAML_Atom etc....)
Regards.
N.B. Any opinions expressed here are only mine, and not of my organization.
N.B. Les opinions exprimees ici me sont personnelles et n engagent pas le CEA.
---------------------------------------------------------------------
Basile STARYNKEVITCH ---- Commissariat à l Energie Atomique
DTA/LETI/DEIN/SLA * CEA/Saclay b.528 (p111f) * 91191 GIF/YVETTE CEDEX * France
phone: 1,69.08.60.55; fax: 1.69.08.83.95 home: 1,46.65.45.53
email: Basile point Starynkevitch at cea point fr
reply other threads:[~2000-07-21 21:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14712.16121.609048.226316@gargle.gargle.HOWL \
--to=basile.starynkevitch@cea.fr \
--cc=caml-list@inria.fr \
--cc=xavier.leroy@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox