|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "wsutf8.h"Go to the source code of this file.
Data Structures | |
| struct | WsCompilerParamsRec |
Typedefs | |
| typedef void(* | WsIOProc) (const char *data, size_t len, void *context) |
| typedef void(* | WsPragmaMetaProc) (const WsUtf8String *property_name, const WsUtf8String *content, const WsUtf8String *scheme, void *context) |
| typedef struct WsCompilerParamsRec | WsCompilerParams |
| typedef struct WsCompilerRec * | WsCompilerPtr |
Enumerations | |
| enum | WsResult { WS_OK, WS_ERROR_OUT_OF_MEMORY, WS_ERROR_SYNTAX, WS_ERROR_SEMANTIC, WS_ERROR_IO, WS_ERROR } |
Functions | |
| WsCompilerPtr | ws_create (WsCompilerParams *params) |
| void | ws_destroy (WsCompilerPtr compiler) |
| WsResult | ws_compile_file (WsCompilerPtr compiler, const char *input_name, FILE *input, FILE *output) |
| WsResult | ws_compile_data (WsCompilerPtr compiler, const char *input_name, const unsigned char *input, size_t input_len, unsigned char **output_return, size_t *output_len_return) |
| void | ws_free_byte_code (unsigned char *byte_code) |
| const char * | ws_result_to_string (WsResult result) |
| typedef struct WsCompilerParamsRec WsCompilerParams |
| typedef struct WsCompilerRec* WsCompilerPtr |
| typedef void(* WsIOProc) (const char *data, size_t len, void *context) |
| typedef void(* WsPragmaMetaProc) (const WsUtf8String *property_name, const WsUtf8String *content, const WsUtf8String *scheme, void *context) |
| enum WsResult |
| WsResult ws_compile_data | ( | WsCompilerPtr | compiler, |
| const char * | input_name, | ||
| const unsigned char * | input, | ||
| size_t | input_len, | ||
| unsigned char ** | output_return, | ||
| size_t * | output_len_return | ||
| ) |
Definition at line 206 of file ws.c.
References compile_stream(), WS_ERROR_OUT_OF_MEMORY, ws_stream_close(), and ws_stream_new_data_input().
Referenced by convert_wmlscript_to_wmlscriptc(), and main().
| WsResult ws_compile_file | ( | WsCompilerPtr | compiler, |
| const char * | input_name, | ||
| FILE * | input, | ||
| FILE * | output | ||
| ) |
Definition at line 177 of file ws.c.
References compile_stream(), ws_bc_data_free(), WS_ERROR_IO, WS_ERROR_OUT_OF_MEMORY, WS_FALSE, WS_OK, ws_stream_close(), and ws_stream_new_file().
Referenced by main().
| WsCompilerPtr ws_create | ( | WsCompilerParams * | params | ) |
Definition at line 135 of file ws.c.
References COMPILER_MAGIC, WsCompilerRec::magic, WsCompilerRec::params, std_io(), WsCompilerParamsRec::stderr_cb, WsCompilerParamsRec::stderr_cb_context, WsCompilerParamsRec::stdout_cb, WsCompilerParamsRec::stdout_cb_context, and ws_calloc().
Referenced by convert_wmlscript_to_wmlscriptc(), and main().
| void ws_destroy | ( | WsCompilerPtr | compiler | ) |
| void ws_free_byte_code | ( | unsigned char * | byte_code | ) |
| const char* ws_result_to_string | ( | WsResult | result | ) |
Definition at line 234 of file ws.c.
References code, and result_codes.
Referenced by convert_wmlscript_to_wmlscriptc(), and main().