]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
minor code cleanup
authorAleksey Demakov <ademakov@gmail.com>
Thu, 29 May 2008 18:53:00 +0000 (18:53 +0000)
committerAleksey Demakov <ademakov@gmail.com>
Thu, 29 May 2008 18:53:00 +0000 (18:53 +0000)
ChangeLog
include/jit/jit-common.h
include/jit/jit-except.h

index b62edba7ab3039020038e93680f1d86a5fdacc7f..210bb46286f3dd67a304931db00a735adb2eb37a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-05-30  Aleksey Demakov  <ademakov@gmail.com>
+
+       * 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  <juanj.g_soria@grupobbva.com>
 
        * jit/jit-alloc.c (jit_free_exec): fix VirtualFree arguments.
index fca46ff1d9f88fb83397feeb00b4db772f362a24..9f0955ed90d0611ea9a43056d9b3ec3fc91deee5 100644 (file)
@@ -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.
index e8dff3684cbb2b0a027ff7feb351e28da78ecdb1..ccfbcc2c963727e74d020ae570e17020b0201717 100644 (file)
@@ -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);