*** empty log message ***

This commit is contained in:
2006-11-19 06:15:58 +00:00
parent 7111ee2808
commit d28fa830ac
6 changed files with 67 additions and 30 deletions

View File

@ -18,7 +18,6 @@ LD = ilink32
AR = tlib
JAVAC = javac
CFLAGS_COMMON = -O2 -WM -WU -RT- -w -I../.. $(JNI_INC)
CFLAGS_RELEASE = $(CFLAGS_COMMON) -DNDEBUG
CFLAGS_DEBUG = $(CFLAGS_COMMON) -D_DEBUG
@ -32,7 +31,7 @@ LIBS = import32.lib cw32mt.lib
all: lib jni
lib: $(C_OBJS)
$(AR) $(OUT).lib @&&!
$(AR) aseawk.lib @&&!
+-$(**: = &^
+-)
!

View File

@ -1,5 +1,5 @@
/*
* $Id: rex.c,v 1.42 2006-11-15 05:49:22 bacon Exp $
* $Id: rex.c,v 1.43 2006-11-19 06:15:25 bacon Exp $
*/
#include <ase/awk/awk_i.h>
@ -1586,7 +1586,7 @@ xp_printf (ASE_T("__match occurrences: si = %d [%s]\n"), si, mat->match_ptr);
return p;
}
ase_bool_t __test_charset (
static ase_bool_t __test_charset (
__matcher_t* matcher, const ase_byte_t* p, ase_size_t csc, ase_char_t c)
{
ase_size_t i;
@ -1595,20 +1595,20 @@ ase_bool_t __test_charset (
{
ase_char_t c0, c1, c2;
c0 = *(ase_char_t*)p;
c0 = *(const ase_char_t*)p;
p += ase_sizeof(c0);
if (c0 == CHARSET_ONE)
{
c1 = *(ase_char_t*)p;
c1 = *(const ase_char_t*)p;
if (matcher->ignorecase)
c1 = ASE_AWK_TOUPPER(matcher->awk, c1);
if (c == c1) return ase_true;
}
else if (c0 == CHARSET_RANGE)
{
c1 = *(ase_char_t*)p;
c1 = *(const ase_char_t*)p;
p += ase_sizeof(c1);
c2 = *(ase_char_t*)p;
c2 = *(const ase_char_t*)p;
if (matcher->ignorecase)
{
@ -1619,7 +1619,7 @@ ase_bool_t __test_charset (
}
else if (c0 == CHARSET_CLASS)
{
c1 = *(ase_char_t*)p;
c1 = *(const ase_char_t*)p;
if (__char_class[c1].func (
matcher->awk, c)) return ase_true;
}

View File

@ -1,5 +1,5 @@
/*
* $Id: run.c,v 1.266 2006-11-18 15:36:57 bacon Exp $
* $Id: run.c,v 1.267 2006-11-19 06:15:25 bacon Exp $
*/
#include <ase/awk/awk_i.h>
@ -5644,10 +5644,14 @@ ase_char_t* ase_awk_format (
run->awk->syscas.sprintf (
run->sprintf.tmp,
ase_countof(run->sprintf.tmp),
#ifdef _WIN32
ASE_T("%I64d"), (__int64)l);
#else
#if ASE_SIZEOF_LONG_LONG > 0
ASE_T("%lld"), (long long)l);
#elif ASE_SIZEOF___INT64 > 0
ASE_T("%I64d"), (__int64)l);
#elif ASE_SIZEOF_LONG > 0
ASE_T("%ld"), (long)l);
#elif ASE_SIZEOF_INT > 0
ASE_T("%d"), (int)l);
#endif
p = run->sprintf.tmp;
@ -5750,10 +5754,14 @@ ase_char_t* ase_awk_format (
run->awk->syscas.sprintf (
run->sprintf.tmp,
ase_countof(run->sprintf.tmp),
#ifdef _WIN32
ASE_T("%I64d"), (__int64)l);
#else
#if ASE_SIZEOF_LONG_LONG > 0
ASE_T("%lld"), (long long)l);
#elif ASE_SIZEOF___INT64 > 0
ASE_T("%I64d"), (__int64)l);
#elif ASE_SIZEOF_LONG > 0
ASE_T("%ld"), (long)l);
#elif ASE_SIZEOF_INT > 0
ASE_T("%d"), (int)l);
#endif
p = run->sprintf.tmp;
@ -5787,9 +5795,23 @@ ase_char_t* ase_awk_format (
ase_char_t* p;
int n;
#if ASE_SIZEOF_LONG_LONG > 0
FMT_CHAR (ASE_T('l'));
FMT_CHAR (ASE_T('l'));
FMT_CHAR (fmt[i]);
#elif ASE_SIZEOF___INT64 > 0
FMT_CHAR (ASE_T('I'));
FMT_CHAR (ASE_T('6'));
FMT_CHAR (ASE_T('4'));
FMT_CHAR (fmt[i]);
#elif ASE_SIZEOF_LONG > 0
FMT_CHAR (ASE_T('l'));
FMT_CHAR (fmt[i]);
#elif ASE_SIZEOF_INT > 0
FMT_CHAR (fmt[i]);
#else
#error unsupported integer size
#endif
if (args == ASE_NULL)
{
@ -5829,11 +5851,15 @@ ase_char_t* ase_awk_format (
run->sprintf.tmp,
ase_countof(run->sprintf.tmp),
ASE_AWK_STR_BUF(fbu),
#ifdef _WIN32
(__int64)l);
#else
#if ASE_SIZEOF_LONG_LONG > 0
(long long)l);
#endif
#elif ASE_SIZEOF___INT64 > 0
(__int64)l);
#elif ASE_SIZEOF_LONG > 0
(long)l);
#elif ASE_SIZEOF_INT > 0
(int)l);
#endif
p = run->sprintf.tmp;
while (*p != ASE_T('\0'))