Ver código fonte

Further C++ compatibility changes

master
Nolan Clark 9 anos atrás
pai
commit
6e3df59596
2 arquivos alterados com 3 adições e 2 exclusões
  1. +1
    -1
      src/xml.c
  2. +2
    -1
      src/xml.h

+ 1
- 1
src/xml.c Ver arquivo

@@ -729,7 +729,7 @@ struct xml_document* xml_open_document(FILE* source) {
/**
* [PUBLIC API]
*/
void xml_document_free(struct xml_document* document, _Bool free_buffer) {
void xml_document_free(struct xml_document* document, bool free_buffer) {
xml_node_free(document->root);

if (free_buffer) {


+ 2
- 1
src/xml.h Ver arquivo

@@ -29,6 +29,7 @@
*/
#include <stdint.h>
#include <string.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
@@ -86,7 +87,7 @@ struct xml_document* xml_open_document(FILE* source);
* @param free_buffer iff true the internal buffer supplied via xml_parse_buffer
* will be freed with the `free` system call
*/
void xml_document_free(struct xml_document* document, _Bool free_buffer);
void xml_document_free(struct xml_document* document, bool free_buffer);


/**


Carregando…
Cancelar
Salvar