From 11836151d4c7d0774fb59ab11bff01da9fe9f89d Mon Sep 17 00:00:00 2001 From: shmuels Date: Thu, 2 Jul 2020 15:31:22 +0300 Subject: [PATCH] Changed code so that it will be compatible with c++. 1. Added #ifdef extern "C" to public header files. 2. Changed variables that are key words in c++, to different names (like ns instead of namespace). 3. Add a test_c++.sh for c++ compiling. --- lib/clixon/clixon_xml_nsctx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clixon/clixon_xml_nsctx.h b/lib/clixon/clixon_xml_nsctx.h index 3b187fb2..b3f34d1d 100644 --- a/lib/clixon/clixon_xml_nsctx.h +++ b/lib/clixon/clixon_xml_nsctx.h @@ -51,7 +51,7 @@ cvec *xml_nsctx_init(char *prefix, char *ns); int xml_nsctx_free(cvec *nsc); char *xml_nsctx_get(cvec *nsc, char *prefix); -int xml_nsctx_get_prefix(cvec *cvv, char *namespace, char **prefix); +int xml_nsctx_get_prefix(cvec *cvv, char *ns, char **prefix); int xml_nsctx_add(cvec *nsc, char *prefix, char *ns); int xml_nsctx_node(cxobj *x, cvec **ncp); int xml_nsctx_yang(yang_stmt *yn, cvec **ncp);