Mercurial > hg > octave-lyh > gnulib-hg
changeset 17416:015e28e70535
argmatch: port to C++
* lib/argmatch.h [__cplusplus]: Add extern "C".
author | Alexandre Duret-Lutz <adl@lrde.epita.fr> |
---|---|
date | Fri, 17 May 2013 19:01:15 +0200 |
parents | 6550127da196 |
children | 3e765e2f4c46 |
files | ChangeLog lib/argmatch.h |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-05-17 Alexandre Duret-Lutz <adl@lrde.epita.fr> + argmatch: port to C++ + * lib/argmatch.h [__cplusplus]: Add extern "C". + argp: typo fix * lib/argp-help.c: Typo in comment.
--- a/lib/argmatch.h +++ b/lib/argmatch.h @@ -26,6 +26,10 @@ # include "verify.h" +#ifdef __cplusplus +extern "C" { +#endif + # define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array)) /* Assert there are as many real arguments as there are values @@ -100,4 +104,8 @@ argmatch_to_argument (Value, Arglist, \ (char const *) (Vallist), sizeof *(Vallist)) +#ifdef __cplusplus +} +#endif + #endif /* ARGMATCH_H_ */