[Fwd: [ xsb-Bugs-780311 ] Including cinterf.h pollutes the name space]
-------- Original Message -------- Subject: [ xsb-Bugs-780311 ] Including cinterf.h pollutes the name space Date: Mon, 02 Feb 2004 12:34:30 -0800 From: SourceForge.net <noreply@sourceforge.net> To: noreply@sourceforge.net Bugs item #780311, was opened at 2003-07-30 15:58 Message generated for change (Comment added) made by dwarren You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101176&aid=780311&group_id... Category: C interface Group: Other
Status: Closed Resolution: None Priority: 5 Submitted By: Roberto Bagnara (bagnara) Assigned to: Nobody/Anonymous (nobody) Summary: Including cinterf.h pollutes the name space
Initial Comment: Including cinterf.h causes the definition of macros min() and max(). This is quite likely to clash with user code or other library headers (this happens for my C++ code, in particular). The workaround is to always undefine that macros after including cinterf.h, but I believe a better solution should be implemented in cinterf.h itself. ----------------------------------------------------------------------
Comment By: David S. Warren (dwarren) Date: 2004-02-02 20:34
Message: Logged In: YES user_id=13069 Fixed. Changed min and max macros to xsb_min and xsb_max to avoid possible name conflicts. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101176&aid=780311&group_id... -- Prof. Roberto Bagnara Computer Science Group Department of Mathematics, University of Parma, Italy http://www.cs.unipr.it/~bagnara/ mailto:bagnara@cs.unipr.it
participants (1)
-
Roberto Bagnara