mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-25 16:51:30 +00:00
Update to the latest yxml from git
This commit is contained in:
parent
cedcd24508
commit
ae65a86282
@ -323,6 +323,13 @@ spp-sync sync-spp:
|
||||
spp: spp-sync
|
||||
export CFLAGS="-DUSE_R2=1 -I../../libr/include -DHAVE_FORK=${HAVE_FORK} -fPIC"; $(MAKE) -C spp r2lib
|
||||
|
||||
sync-yxml yxml-sync:
|
||||
rm -rf yxml-git
|
||||
git clone https://g.blicky.net/yxml.git/ yxml-git
|
||||
cp -f yxml-git/yxml.c yxml/yxml.c
|
||||
cp -f yxml-git/yxml.h yxml/yxml.h
|
||||
rm -rf yxml-git
|
||||
|
||||
SHLRS+=ar/libr_ar.a
|
||||
SHLRS+=bochs/lib/libbochs.a
|
||||
SHLRS+=capstone/libcapstone.a
|
||||
|
@ -1,4 +1,6 @@
|
||||
/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT! */
|
||||
/* This file is generated by yxml-gen.pl using yxml-states and yxml.c.in as input files.
|
||||
* It is preferable to edit those files instead of this one if you want to make a change.
|
||||
* The source files can be found through the homepage: https://dev.yorhel.nl/yxml */
|
||||
|
||||
/* Copyright (c) 2013-2014 Yoran Heling
|
||||
|
||||
@ -22,7 +24,7 @@
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "yxml.h"
|
||||
#include <yxml.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef enum {
|
||||
@ -114,14 +116,9 @@ typedef enum {
|
||||
#define INTFROM5CHARS(a, b, c, d, e) ((((uint64_t)(a))<<32) | (((uint64_t)(b))<<24) | (((uint64_t)(c))<<16) | (((uint64_t)(d))<<8) | (uint64_t)(e))
|
||||
|
||||
|
||||
/* Set the given char value to ch (0<=ch<=255).
|
||||
* This can't be done with simple assignment because char may be signed, and
|
||||
* unsigned-to-signed overflow is implementation defined in C. This function
|
||||
* /looks/ inefficient, but gcc compiles it down to a single movb instruction
|
||||
* on x86, even with -O0. */
|
||||
/* Set the given char value to ch (0<=ch<=255). */
|
||||
static inline void yxml_setchar(char *dest, unsigned ch) {
|
||||
unsigned char _ch = ch;
|
||||
memcpy(dest, &_ch, 1);
|
||||
*(unsigned char *)dest = ch;
|
||||
}
|
||||
|
||||
|
||||
@ -327,7 +324,7 @@ static inline yxml_ret_t yxml_refattrval(yxml_t *x, unsigned ch) { return yxml_r
|
||||
void yxml_init(yxml_t *x, void *stack, size_t stacksize) {
|
||||
memset(x, 0, sizeof(*x));
|
||||
x->line = 1;
|
||||
x->stack = stack;
|
||||
x->stack = (unsigned char*)stack;
|
||||
x->stacksize = stacksize;
|
||||
*x->stack = 0;
|
||||
x->elem = x->pi = x->attr = (char *)x->stack;
|
||||
|
@ -30,7 +30,7 @@
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
/* Full API documentation for this library can be found in the "yxml.pod" file
|
||||
/* Full API documentation for this library can be found in the "yxml.md" file
|
||||
* in the yxml git repository, or online at http://dev.yorhel.nl/yxml/man */
|
||||
|
||||
typedef enum {
|
||||
|
Loading…
x
Reference in New Issue
Block a user