Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004963OCamlOCaml generalpublic2010-01-19 15:022013-08-31 12:44
Reporterglondu 
Assigned Tolefessan 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.11.1 
Target VersionFixed in Version3.13.0+dev 
Summary0004963: Please add extern "C" declarations (for C++) in installed headers
DescriptionHello,

In most system headers, declarations are surrounded by the following:

#ifdef __cplusplus
extern "C" {
#endif

[...]

#ifdef __cplusplus
}
#endif

allowing their direct use in C++ code. It would be nice if OCaml did the same.


Cheers,
--
St├ęphane Glondu
Additional InformationBugreport forwarded from: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565894 [^]
TagsNo tags attached.
Attached Files

- Relationships
has duplicate 0005467closedmeyer no extern "C" into ocaml C-stub headers 

-  Notes
(0005945)
doligez (administrator)
2011-05-31 16:49

Why not include them with this ?

extern "C" {
#include <caml/foo.h>
#include <caml/bar.h>
}
(0006088)
glondu (reporter)
2011-08-13 00:27

The point is to avoid that. Whether "that" is better or not is a matter of taste, I guess. Maybe you have some arguments against extern "C" in caml headers?
(0006689)
lefessan (developer)
2012-01-16 22:34

Fixed in commit r12000 in the trunk.

- Issue History
Date Modified Username Field Change
2010-01-19 15:02 glondu New Issue
2011-05-31 16:49 doligez Note Added: 0005945
2011-05-31 16:49 doligez Status new => acknowledged
2011-08-13 00:27 glondu Note Added: 0006088
2012-01-06 23:45 protz Relationship added has duplicate 0005467
2012-01-16 22:34 lefessan Note Added: 0006689
2012-01-16 22:34 lefessan Status acknowledged => resolved
2012-01-16 22:34 lefessan Fixed in Version => 3.13.0+dev
2012-01-16 22:34 lefessan Resolution open => fixed
2012-01-16 22:34 lefessan Assigned To => lefessan
2013-08-31 12:44 xleroy Status resolved => closed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker