orc: move unusable orc_code_chunk_free() declaration to internal header
authorTim-Philipp Müller <tim@centricular.com>
Fri, 27 Apr 2018 23:37:35 +0000 (00:37 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 28 Apr 2018 11:36:01 +0000 (12:36 +0100)
Nothing in any public header ever returned or used an OrcCodeChunk.

orc/orccode.c
orc/orccode.h
orc/orccodemem.c
orc/orcinternal.h
orc/orcutils.h

index ca5946c..f0438dd 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <orc/orcprogram.h>
 #include <orc/orcdebug.h>
+#include <orc/orcinternal.h>
 
 
 OrcCode *
index ee8fe66..be71804 100644 (file)
@@ -9,7 +9,6 @@
 
 ORC_BEGIN_DECLS
 
-typedef struct _OrcCodeChunk OrcCodeChunk;
 typedef struct _OrcCodeVariable OrcCodeVariable;
 
 
@@ -48,13 +47,6 @@ ORC_API void orc_code_allocate_codemem (OrcCode *code, int size);
 ORC_API OrcCode * orc_code_new (void);
 ORC_API void      orc_code_free (OrcCode *code);
 
-#ifdef ORC_ENABLE_UNSTABLE_API
-
-/* FIXME: this is internal API, nothing in the public headers returns an OrcCodeChunk */
-void orc_code_chunk_free (OrcCodeChunk *chunk);
-
-#endif
-
 ORC_END_DECLS
 
 #endif
index a7f83cf..58bc6d1 100644 (file)
@@ -18,6 +18,7 @@
 #include <windows.h>
 #endif
 
+#include <orc/orcinternal.h>
 #include <orc/orcprogram.h>
 #include <orc/orcdebug.h>
 
index d455c42..b6387bc 100644 (file)
@@ -21,6 +21,11 @@ void orc_c64x_init (void);
 void orc_c64x_c_init (void);
 void orc_mips_init (void);
 
+typedef struct _OrcCodeChunk OrcCodeChunk;
+
+/* This is internal API, nothing in the public headers returns an OrcCodeChunk */
+void orc_code_chunk_free (OrcCodeChunk *chunk);
+
 extern int _orc_data_cache_size_level1;
 extern int _orc_data_cache_size_level2;
 extern int _orc_data_cache_size_level3;
index a15c75b..9713d6f 100644 (file)
@@ -39,7 +39,6 @@ typedef struct _OrcConstant OrcConstant;
 /* typedef struct _OrcFixup OrcFixup; */
 typedef struct _OrcTarget OrcTarget;
 typedef struct _OrcCode OrcCode;
-/* typedef struct _OrcCodeChunk OrcCodeChunk; */
 
 typedef enum {
   ORC_COMPILE_RESULT_OK = 0,