Skip to content

Commit 3c13abc

Browse files
committed
Cleanup macros
1 parent 3512064 commit 3c13abc

File tree

15 files changed

+2
-38
lines changed

15 files changed

+2
-38
lines changed

inst/include/xml2_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define __XML2_XML2_TYPES__
33

44
#include <libxml/tree.h>
5-
#define R_NO_REMAP
65
#include <Rinternals.h>
76

87
template <typename T> class XPtr {

src/Makevars.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
PKG_CPPFLAGS=-I../inst/include @cflags@ -DUCHAR_TYPE=wchar_t -DU_SHOW_CPLUSPLUS_API=0
1+
PKG_CPPFLAGS=-I../inst/include @cflags@ -DUCHAR_TYPE=wchar_t -DU_SHOW_CPLUSPLUS_API=0 -DSTRICT_R_HEADERS -DR_NO_REMAP
22
PKG_CXXFLAGS=$(C_VISIBILITY)
33
PKG_LIBS=@libs@

src/connection.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#define R_NO_REMAP
21
#include <Rinternals.h>
3-
#undef R_NO_REMAP
4-
52
#include <iterator>
63
#include <vector>
74
#include "xml2_utils.h"

src/connection.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#pragma once
22

3-
#define R_NO_REMAP
43
#include <Rinternals.h>
5-
#undef R_NO_REMAP
6-
74
#include <algorithm>
85
#include <cstring>
96

src/init.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#define R_NO_REMAP
21
#include <Rinternals.h>
3-
#undef R_NO_REMAP
4-
52
#include <stdlib.h> // for NULL
63
#include <R_ext/Rdynload.h>
74

src/xml2_doc.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#define R_NO_REMAP
21
#include <Rinternals.h>
3-
#undef R_NO_REMAP
4-
52
#include <libxml/parser.h>
63
#include <libxml/HTMLparser.h>
74
#include "xml2_types.h"

src/xml2_init.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#define R_NO_REMAP
21
#include <Rinternals.h>
3-
#undef R_NO_REMAP
4-
52
#include <R_ext/Rdynload.h>
63
#include <stdio.h>
74
#include <libxml/xmlversion.h>

src/xml2_namespace.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#define R_NO_REMAP
21
#include <Rinternals.h>
3-
#undef R_NO_REMAP
4-
52
#include <libxml/tree.h>
63

74
#include "xml2_types.h"

src/xml2_node.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#define R_NO_REMAP
21
#include <Rinternals.h>
3-
#undef R_NO_REMAP
4-
52
#include <libxml/tree.h>
63
#include <fstream>
74
#include <sstream>

src/xml2_output.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#define R_NO_REMAP
21
#include <Rinternals.h>
3-
#undef R_NO_REMAP
4-
52
#include <libxml/tree.h>
63
#include <libxml/HTMLtree.h>
74
#include <libxml/xmlsave.h>

0 commit comments

Comments
 (0)