Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/connection.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <Rinternals.h>
#include <algorithm> // std::copy
#include <cstddef> // size_t
#include <iterator>
#include <vector>
#include "xml2_utils.h"
Expand Down
1 change: 0 additions & 1 deletion src/connection.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include <Rinternals.h>
#include <algorithm>
#include <cstring>

SEXP read_bin(SEXP con, size_t bytes = 64 * 1024);
Expand Down
1 change: 1 addition & 0 deletions src/init.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Boolean.h> // FALSE
#include <R_ext/Rdynload.h>
#include <R_ext/Visibility.h>

Expand Down
3 changes: 3 additions & 0 deletions src/xml2_doc.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#include <R_ext/Error.h> // Rf_error
#include <Rinternals.h>
#include <libxml/encoding.h> // xmlCharEncoding, xmlGetCharEncodingName, xmlParseCharEncoding
#include <libxml/parser.h>
#include <libxml/xmlstring.h> // xmlChar, xmlStrdup
#include <libxml/xmlversion.h> // LIBXML_VERSION
#include <libxml/HTMLparser.h>
#include "xml2_types.h"
#include "xml2_utils.h"
#include <cstring>
#include <string> // std::string

// [[export]]
extern "C" SEXP xml_parse_options_() {
Expand Down
3 changes: 3 additions & 0 deletions src/xml2_init.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#include <R_ext/Error.h> // Rf_error, Rf_warning
#include <Rinternals.h>
#include <libxml/xmlversion.h>
#include <libxml/xmlerror.h>
#include <libxml/parser.h>
#include <stdarg.h> // va_start
#include <stdio.h> // BUFSIZ, vsnprintf
#include <string.h>

/* * *
Expand Down
3 changes: 3 additions & 0 deletions src/xml2_namespace.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include <R_ext/Error.h> // Rf_error
#include <Rinternals.h>
#include <libxml/tree.h>
#include <libxml/xmlversion.h> // LIBXML_DOTTED_VERSION
#include <cstddef> // NULL

#include "xml2_types.h"
#include "xml2_utils.h"
Expand Down
11 changes: 7 additions & 4 deletions src/xml2_node.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#include <R_ext/Error.h> // Rf_error
#include <R_ext/Arith.h> // NA_INTEGER
#include <Rinternals.h>
#include <libxml/tree.h>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <libxml/xmlstring.h> // xmlChar, xmlStrEqual
#include <algorithm> // std::equal
#include <cstddef> // NULL, size_t
#include <set>
#include <string>
#include <vector>

#include "xml2_types.h"
#include "xml2_utils.h"
Expand Down
5 changes: 5 additions & 0 deletions src/xml2_output.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#include <R_ext/Error.h> // Rf_error
#include <Rinternals.h>
#include <libxml/tree.h>
#include <libxml/HTMLtree.h>
#include <libxml/xmlIO.h> // xmlOutputWriteCallback
#include <libxml/xmlmemory.h> // xmlFree
#include <libxml/xmlsave.h>
#include <libxml/xmlversion.h> // LIBXML_VERSION
#include <cstddef> // NULL, size_t

#include "connection.h"
#include "xml2_types.h"
Expand Down
3 changes: 3 additions & 0 deletions src/xml2_schema.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include <Rinternals.h>
#include <libxml/xmlerror.h> // xmlError
#include <libxml/xmlschemas.h>
#include <libxml/xmlversion.h> // LIBXML_VERSION
#include <cstddef> // size_t
#include <vector>
#include <string>

Expand Down
6 changes: 6 additions & 0 deletions src/xml2_url.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#include <R_ext/Arith.h> // NA_INTEGER
#include <R_ext/Error.h> // Rf_error
#include <Rinternals.h>
#include <libxml/uri.h>
#include <libxml/xmlmemory.h> // xmlFree
#include <libxml/xmlstring.h> // xmlChar
#include <libxml/xmlversion.h> // LIBXML_VERSION
#include <cstddef> // NULL
#include "xml2_utils.h"

// [[export]]
Expand Down
4 changes: 4 additions & 0 deletions src/xml2_utils.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#ifndef __XML2_XML_UTILS__
#define __XML2_XML_UTILS__

#include <R_ext/Error.h> // Rf_error
#include <Rinternals.h>
#include <libxml/tree.h>
#include <libxml/xmlmemory.h> // xmlFree
#include <libxml/xmlstring.h> // xmlChar
#include <cstddef> // NULL, size_t
#include <map>
#include <string>

Expand Down
5 changes: 5 additions & 0 deletions src/xml2_xpath.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#include <R_ext/Arith.h> // R_PosInf
#include <R_ext/Error.h> // Rf_error
#include <Rinternals.h>
#include <libxml/xmlstring.h> // xmlChar
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/tree.h>
#include "xml2_types.h"
#include <algorithm>
#include <climits> // INT_MAX
#include <cstddef> // NULL

class XmlSeeker {
xmlXPathContext* context_;
Expand Down
Loading