Removed all glib functions from everything other than the test suite.

This commit is contained in:
Meredith L. Patterson 2012-10-10 16:24:12 +02:00
parent d5729efa1f
commit 158b2b3ba6
10 changed files with 28 additions and 14 deletions

View file

@ -1,7 +1,7 @@
#include "parser_internal.h"
static HParseResult* parse_ch(void* env, HParseState *state) {
uint8_t c = (uint8_t)GPOINTER_TO_UINT(env);
uint8_t c = (uint8_t)(unsigned long)(env);
uint8_t r = (uint8_t)h_read_bits(&state->input_stream, 8, false);
if (c == r) {
HParsedToken *tok = a_new(HParsedToken, 1);
@ -22,6 +22,6 @@ const HParser* h_ch(const uint8_t c) {
const HParser* h_ch__m(HAllocator* mm__, const uint8_t c) {
HParser *ret = h_new(HParser, 1);
ret->vtable = &ch_vt;
ret->env = GUINT_TO_POINTER(c);
ret->env = (void*)(unsigned long)(c);
return (const HParser*)ret;
}

View file

@ -1,3 +1,4 @@
#include <stdarg.h>
#include "parser_internal.h"
typedef struct {

View file

@ -1,3 +1,4 @@
#include <stdarg.h>
#include "parser_internal.h"
typedef struct {