mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 12:25:09 +03:00
Swicth the test program for characters to new input buffers
it was manipulating the buffer content and structures directly this cleans it up
This commit is contained in:
parent
7b9b07198f
commit
145477d8ab
@ -10,6 +10,8 @@
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/parserInternals.h>
|
||||
|
||||
#include "buf.h"
|
||||
|
||||
int lastError;
|
||||
|
||||
static void errorHandler(void *unused, xmlErrorPtr err) {
|
||||
@ -558,9 +560,9 @@ static void testCharRanges(void) {
|
||||
}
|
||||
input->filename = NULL;
|
||||
input->buf = buf;
|
||||
input->base = input->buf->buffer->content;
|
||||
input->cur = input->buf->buffer->content;
|
||||
input->end = &input->buf->buffer->content[4];
|
||||
input->cur =
|
||||
input->base = xmlBufContent(input->buf->buffer);
|
||||
input->end = input->base + 4;
|
||||
inputPush(ctxt, input);
|
||||
|
||||
printf("testing char range: 1");
|
||||
|
Loading…
Reference in New Issue
Block a user