touched up code a little bit
This commit is contained in:
		| @ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * $Id: awk.c 267 2009-08-25 09:50:07Z hyunghwan.chung $ | ||||
|  * $Id: awk.c 273 2009-08-28 11:58:05Z hyunghwan.chung $ | ||||
|  * | ||||
|    Copyright 2006-2009 Chung, Hyung-Hwan. | ||||
|  | ||||
| @ -81,7 +81,7 @@ static void dprint (const qse_char_t* fmt, ...) | ||||
| 	{ | ||||
| 		va_list ap; | ||||
| 		va_start (ap, fmt); | ||||
| 		qse_vfprintf (stderr, fmt, ap); | ||||
| 		qse_vfprintf (QSE_STDERR, fmt, ap); | ||||
| 		va_end (ap); | ||||
| 	} | ||||
| } | ||||
| @ -771,7 +771,9 @@ static int awk_main (int argc, qse_char_t* argv[]) | ||||
| 	rcb.udd = &arg; | ||||
| #endif | ||||
|  | ||||
| 	rtx = qse_awk_rtx_openstd (awk, 0, QSE_T("qseawk"), arg.icf, QSE_NULL); | ||||
| 	rtx = qse_awk_rtx_openstd ( | ||||
| 		awk, 0, QSE_T("qseawk"), | ||||
| 		(const qse_char_t*const*)arg.icf, QSE_NULL); | ||||
| 	if (rtx == QSE_NULL)  | ||||
| 	{ | ||||
| 		print_awkerr (awk); | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * $Id: std.h 258 2009-08-19 14:04:15Z hyunghwan.chung $ | ||||
|  * $Id: std.h 273 2009-08-28 11:58:05Z hyunghwan.chung $ | ||||
|  * | ||||
|    Copyright 2006-2009 Chung, Hyung-Hwan. | ||||
|  | ||||
| @ -134,11 +134,11 @@ int qse_awk_parsestd ( | ||||
|  * the lifetime of the runtime context created.  | ||||
|  */ | ||||
| qse_awk_rtx_t* qse_awk_rtx_openstd ( | ||||
| 	qse_awk_t*         awk, | ||||
| 	qse_size_t         xtn, | ||||
| 	const qse_char_t*  id, | ||||
| 	const qse_char_t** icf, | ||||
| 	const qse_char_t** ocf | ||||
| 	qse_awk_t*             awk, | ||||
| 	qse_size_t             xtn, | ||||
| 	const qse_char_t*      id, | ||||
| 	const qse_char_t*const icf[], | ||||
| 	const qse_char_t*const ocf[] | ||||
| ); | ||||
|  | ||||
| /** | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * $Id: std.c 272 2009-08-28 09:48:02Z hyunghwan.chung $ | ||||
|  * $Id: std.c 273 2009-08-28 11:58:05Z hyunghwan.chung $ | ||||
|  * | ||||
|    Copyright 2006-2009 Chung, Hyung-Hwan. | ||||
|  | ||||
| @ -24,9 +24,9 @@ | ||||
| #include <qse/cmn/time.h> | ||||
| #include <qse/cmn/stdio.h> /* TODO: remove dependency on qse_vsprintf */ | ||||
|  | ||||
| #include <math.h> | ||||
| #include <stdarg.h> | ||||
| #include <stdlib.h> | ||||
| #include <math.h> | ||||
|  | ||||
| typedef struct xtn_t | ||||
| { | ||||
| @ -1087,8 +1087,8 @@ qse_awk_rtx_t* qse_awk_rtx_openstd ( | ||||
| 	qse_awk_t*         awk, | ||||
| 	qse_size_t         xtnsize, | ||||
| 	const qse_char_t*  id, | ||||
| 	const qse_char_t** icf, | ||||
| 	const qse_char_t** ocf) | ||||
| 	const qse_char_t*const icf[], | ||||
| 	const qse_char_t*const ocf[]) | ||||
| { | ||||
| 	qse_awk_rtx_t* rtx; | ||||
| 	qse_awk_rio_t rio; | ||||
| @ -1099,7 +1099,7 @@ qse_awk_rtx_t* qse_awk_rtx_openstd ( | ||||
| 	qse_size_t argc = 0; | ||||
| 	qse_cstr_t argv[16]; | ||||
| 	qse_cstr_t* argvp = QSE_NULL, * p2; | ||||
|  | ||||
| 	 | ||||
| 	rio.pipe    = awk_rio_pipe; | ||||
| 	rio.file    = awk_rio_file; | ||||
| 	rio.console = awk_rio_console; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user