From 5b14d1540ad9dc851c83eed3d81978e2e6bcc092 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 15 Feb 2009 02:25:26 -0500 Subject: [PATCH] Moved the "public API" comment to what is now, in fact, the real public API. :) --- mojoshader_preprocessor.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mojoshader_preprocessor.c b/mojoshader_preprocessor.c index 40afa2fc..0714d6c3 100644 --- a/mojoshader_preprocessor.c +++ b/mojoshader_preprocessor.c @@ -1018,11 +1018,6 @@ const char *preprocessor_sourcepos(Preprocessor *_ctx, unsigned int *pos) } // preprocessor_sourcepos -// public API... - -static const MOJOSHADER_preprocessData out_of_mem_data_preprocessor = { - 1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0, 0 -}; #define BUFFER_LEN (64 * 1024) typedef struct BufferList @@ -1174,6 +1169,13 @@ static MOJOSHADER_error *build_errors(ErrorList **errors, const int count, } // build_errors +static const MOJOSHADER_preprocessData out_of_mem_data_preprocessor = { + 1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0, 0 +}; + + +// public API... + const MOJOSHADER_preprocessData *MOJOSHADER_preprocess(const char *filename, const char *source, unsigned int sourcelen, const MOJOSHADER_preprocessorDefine **defines,