@@ -20,7 +20,6 @@ extern SEXP doc_validate(SEXP, SEXP);
2020extern SEXP doc_write_character (SEXP , SEXP , SEXP );
2121extern SEXP doc_write_connection (SEXP , SEXP , SEXP , SEXP );
2222extern SEXP doc_write_file (SEXP , SEXP , SEXP , SEXP );
23- extern SEXP init_libxml2 (void );
2423extern SEXP libxml2_version_ (void );
2524extern SEXP node_append_child (SEXP , SEXP );
2625extern SEXP node_append_content (SEXP , SEXP );
@@ -85,7 +84,6 @@ static const R_CallMethodDef CallEntries[] = {
8584 {"doc_write_character" , (DL_FUNC ) & doc_write_character , 3 },
8685 {"doc_write_connection" , (DL_FUNC ) & doc_write_connection , 4 },
8786 {"doc_write_file" , (DL_FUNC ) & doc_write_file , 4 },
88- {"init_libxml2" , (DL_FUNC ) & init_libxml2 , 0 },
8987 {"libxml2_version_" , (DL_FUNC ) & libxml2_version_ , 0 },
9088 {"node_append_child" , (DL_FUNC ) & node_append_child , 2 },
9189 {"node_append_content" , (DL_FUNC ) & node_append_content , 2 },
@@ -138,8 +136,10 @@ static const R_CallMethodDef CallEntries[] = {
138136 {NULL , NULL , 0 }
139137};
140138
139+ void init_libxml2_library ();
141140void R_init_xml2 (DllInfo * dll )
142141{
143142 R_registerRoutines (dll , NULL , CallEntries , NULL , NULL );
144143 R_useDynamicSymbols (dll , FALSE);
144+ init_libxml2_library ();
145145}
0 commit comments