|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "wsint.h"Go to the source code of this file.
Functions | |
| void | ws_info (WsCompilerPtr compiler, char *message,...) |
| void | ws_fatal (char *fmt,...) |
| void | ws_error_memory (WsCompilerPtr compiler) |
| void | ws_error_syntax (WsCompilerPtr compiler, WsUInt32 line) |
| void | ws_src_error (WsCompilerPtr compiler, WsUInt32 line, char *message,...) |
| void | ws_src_warning (WsCompilerPtr compiler, WsUInt32 line, char *message,...) |
| void | ws_fprintf (WsIOProc io, void *context, const char *fmt,...) |
| void | ws_vfprintf (WsIOProc io, void *context, const char *fmt, va_list ap) |
| void | ws_puts (WsIOProc io, void *context, const char *str) |
| void | ws_fputc (int ch, WsIOProc io, void *context) |
| void ws_error_memory | ( | WsCompilerPtr | compiler | ) |
Definition at line 107 of file wserror.c.
References COMPILER_MAGIC, WsCompilerRec::errors, gw_assert(), WsCompilerRec::magic, WS_ERROR_B_MEMORY, WS_LINE_TERMINATOR, ws_puts(), and WS_STDERR.
Referenced by asm_alloc(), buffer_to_int(), expr_alloc(), read_float_from_exp(), read_float_from_point(), stmt_alloc(), ws_asm_linearize(), ws_expr_assign(), ws_expr_call(), ws_expr_const_string(), ws_expr_linearize(), ws_expr_postfix_var(), ws_expr_symbol(), ws_expr_unary_var(), ws_formal_parameter(), ws_function(), ws_function_hash(), ws_list_append(), ws_list_new(), ws_pragma_meta_body(), ws_pragma_use(), ws_stmt_linearize(), ws_variable_declaration(), ws_variable_define(), ws_yy_lex(), and yyparse().
| void ws_error_syntax | ( | WsCompilerPtr | compiler, |
| WsUInt32 | line | ||
| ) |
Definition at line 120 of file wserror.c.
References COMPILER_MAGIC, WsCompilerRec::errors, gw_assert(), WsCompilerRec::input_name, WsCompilerRec::last_syntax_error_line, WsCompilerRec::linenum, WsCompilerRec::magic, WS_ERROR_B_MEMORY, WS_ERROR_B_SYNTAX, ws_fprintf(), WS_LINE_TERMINATOR, and WS_STDERR.
Referenced by yyparse().
| void ws_fatal | ( | char * | fmt, |
| ... | |||
| ) |
Definition at line 91 of file wserror.c.
Referenced by ws_asm_linearize(), ws_asm_print(), ws_bc_decode(), ws_bc_encode(), ws_decode_buffer(), ws_encode_buffer(), ws_expr_linearize(), ws_lexer_free_block(), ws_utf8_append_char(), ws_utf8_to_latin1(), and ws_vfprintf().
| void ws_fprintf | ( | WsIOProc | io, |
| void * | context, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
Definition at line 190 of file wserror.c.
References ws_vfprintf().
Referenced by ws_asm_dasm(), ws_asm_print(), ws_error_syntax(), ws_src_error(), and ws_src_warning().
| void ws_fputc | ( | int | ch, |
| WsIOProc | io, | ||
| void * | context | ||
| ) |
Definition at line 324 of file wserror.c.
Referenced by ws_vfprintf().
| void ws_info | ( | WsCompilerPtr | compiler, |
| char * | message, | ||
| ... | |||
| ) |
Definition at line 74 of file wserror.c.
References WsCompilerRec::params, WsCompilerParamsRec::verbose, WS_LINE_TERMINATOR, ws_puts(), WS_STDOUT, and ws_vfprintf().
Referenced by compile_stream(), opt_conv(), opt_dead_code(), opt_jumps_to_jumps(), opt_jumps_to_next_instruction(), and opt_peephole().
| void ws_puts | ( | WsIOProc | io, |
| void * | context, | ||
| const char * | str | ||
| ) |
Definition at line 318 of file wserror.c.
Referenced by ws_error_memory(), ws_info(), ws_src_error(), and ws_src_warning().
| void ws_src_error | ( | WsCompilerPtr | compiler, |
| WsUInt32 | line, | ||
| char * | message, | ||
| ... | |||
| ) |
Definition at line 145 of file wserror.c.
References COMPILER_MAGIC, WsCompilerRec::errors, gw_assert(), WsCompilerRec::input_name, WsCompilerRec::linenum, WsCompilerRec::magic, WsCompilerRec::num_errors, WS_ERROR_B_SEMANTIC, ws_fprintf(), WS_LINE_TERMINATOR, ws_puts(), WS_STDERR, and ws_vfprintf().
Referenced by buffer_to_int(), read_float_from_exp(), ws_expr_linearize(), ws_function(), ws_pragma_use(), ws_stmt_linearize(), ws_variable_define(), and ws_yy_lex().
| void ws_src_warning | ( | WsCompilerPtr | compiler, |
| WsUInt32 | line, | ||
| char * | message, | ||
| ... | |||
| ) |
Definition at line 168 of file wserror.c.
References COMPILER_MAGIC, gw_assert(), WsCompilerRec::input_name, WsCompilerRec::linenum, WsCompilerRec::magic, WsCompilerRec::num_errors, ws_fprintf(), WS_LINE_TERMINATOR, ws_puts(), WS_STDERR, and ws_vfprintf().
| void ws_vfprintf | ( | WsIOProc | io, |
| void * | context, | ||
| const char * | fmt, | ||
| va_list | ap | ||
| ) |
Definition at line 200 of file wserror.c.
References start, ws_fatal(), and ws_fputc().
Referenced by ws_fprintf(), ws_info(), ws_src_error(), and ws_src_warning().