touched up code a little bit
This commit is contained in:
parent
2ba054c1a3
commit
9c872e932a
@ -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.
|
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ static void dprint (const qse_char_t* fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start (ap, fmt);
|
va_start (ap, fmt);
|
||||||
qse_vfprintf (stderr, fmt, ap);
|
qse_vfprintf (QSE_STDERR, fmt, ap);
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -771,7 +771,9 @@ static int awk_main (int argc, qse_char_t* argv[])
|
|||||||
rcb.udd = &arg;
|
rcb.udd = &arg;
|
||||||
#endif
|
#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)
|
if (rtx == QSE_NULL)
|
||||||
{
|
{
|
||||||
print_awkerr (awk);
|
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.
|
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||||
|
|
||||||
@ -137,8 +137,8 @@ qse_awk_rtx_t* qse_awk_rtx_openstd (
|
|||||||
qse_awk_t* awk,
|
qse_awk_t* awk,
|
||||||
qse_size_t xtn,
|
qse_size_t xtn,
|
||||||
const qse_char_t* id,
|
const qse_char_t* id,
|
||||||
const qse_char_t** icf,
|
const qse_char_t*const icf[],
|
||||||
const qse_char_t** ocf
|
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.
|
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||||
|
|
||||||
@ -24,9 +24,9 @@
|
|||||||
#include <qse/cmn/time.h>
|
#include <qse/cmn/time.h>
|
||||||
#include <qse/cmn/stdio.h> /* TODO: remove dependency on qse_vsprintf */
|
#include <qse/cmn/stdio.h> /* TODO: remove dependency on qse_vsprintf */
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
typedef struct xtn_t
|
typedef struct xtn_t
|
||||||
{
|
{
|
||||||
@ -1087,8 +1087,8 @@ qse_awk_rtx_t* qse_awk_rtx_openstd (
|
|||||||
qse_awk_t* awk,
|
qse_awk_t* awk,
|
||||||
qse_size_t xtnsize,
|
qse_size_t xtnsize,
|
||||||
const qse_char_t* id,
|
const qse_char_t* id,
|
||||||
const qse_char_t** icf,
|
const qse_char_t*const icf[],
|
||||||
const qse_char_t** ocf)
|
const qse_char_t*const ocf[])
|
||||||
{
|
{
|
||||||
qse_awk_rtx_t* rtx;
|
qse_awk_rtx_t* rtx;
|
||||||
qse_awk_rio_t rio;
|
qse_awk_rio_t rio;
|
||||||
|
Loading…
Reference in New Issue
Block a user