From: Aleksey Demakov Date: Thu, 29 May 2008 18:53:00 +0000 (+0000) Subject: minor code cleanup X-Git-Tag: before.move.to.git~65 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=6a1308d5944a5c4244d71ee29ef206db3810e02a;p=francis%2Flibjit.git minor code cleanup --- diff --git a/ChangeLog b/ChangeLog index b62edba..210bb46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-05-30 Aleksey Demakov + + * include/jit/jit-common.h: remove unused jit_function_compiled_t + type. + + * include/jit/jit-except.h, include/jit/jit-common.h: move + JIT_NO_OFFSET from jit-except.h to jit-common.h + 2008-05-28 Juan Jesus Garcia de Soria * jit/jit-alloc.c (jit_free_exec): fix VirtualFree arguments. diff --git a/include/jit/jit-common.h b/include/jit/jit-common.h index fca46ff..9f0955e 100644 --- a/include/jit/jit-common.h +++ b/include/jit/jit-common.h @@ -37,11 +37,6 @@ typedef struct _jit_context *jit_context_t; */ typedef struct _jit_function *jit_function_t; -/* - * Opaque type that represents the compiled form of a function. - */ -typedef void *jit_function_compiled_t; - /* * Opaque structure that represents a block. */ @@ -75,7 +70,12 @@ typedef jit_nuint jit_label_t; /* * Value that represents an undefined label. */ -#define jit_label_undefined ((jit_label_t)~((jit_uint)0)) +#define jit_label_undefined ((jit_label_t)~((jit_uint)0)) + +/* + * Value that represents an undefined offset. + */ +#define JIT_NO_OFFSET (~((unsigned int)0)) /* * Function that is used to free user-supplied metadata. diff --git a/include/jit/jit-except.h b/include/jit/jit-except.h index e8dff36..ccfbcc2 100644 --- a/include/jit/jit-except.h +++ b/include/jit/jit-except.h @@ -63,7 +63,6 @@ jit_function_t jit_stack_trace_get_function (jit_context_t context, jit_stack_trace_t trace, unsigned int posn); void *jit_stack_trace_get_pc (jit_stack_trace_t trace, unsigned int posn); -#define JIT_NO_OFFSET (~((unsigned int)0)) unsigned int jit_stack_trace_get_offset (jit_context_t context, jit_stack_trace_t trace, unsigned int posn); void jit_stack_trace_free(jit_stack_trace_t trace);