|
Tim Waugh |
6f2e16 |
--- grep-2.5.1/src/search.c.egf-speedup 2004-11-04 10:42:45.000000000 +0000
|
|
Tim Waugh |
6f2e16 |
+++ grep-2.5.1/src/search.c 2004-11-04 11:12:44.688292744 +0000
|
|
Tim Waugh |
e1ca94 |
@@ -70,9 +70,6 @@
|
|
Tim Waugh |
e1ca94 |
call the regexp matcher at all. */
|
|
Tim Waugh |
e1ca94 |
static int kwset_exact_matches;
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
-#if defined(MBS_SUPPORT)
|
|
Tim Waugh |
e1ca94 |
-static char* check_multibyte_string PARAMS ((char const *buf, size_t size));
|
|
Tim Waugh |
e1ca94 |
-#endif
|
|
Tim Waugh |
e1ca94 |
static void kwsinit PARAMS ((void));
|
|
Tim Waugh |
e1ca94 |
static void kwsmusts PARAMS ((void));
|
|
Tim Waugh |
e1ca94 |
static void Gcompile PARAMS ((char const *, size_t));
|
|
Tim Waugh |
e1ca94 |
@@ -141,47 +138,6 @@
|
|
Tim Waugh |
e1ca94 |
}
|
|
Tim Waugh |
e1ca94 |
}
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
-#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
-/* This function allocate the array which correspond to "buf".
|
|
Tim Waugh |
e1ca94 |
- Then this check multibyte string and mark on the positions which
|
|
Tim Waugh |
e1ca94 |
- are not singlebyte character nor the first byte of a multibyte
|
|
Tim Waugh |
e1ca94 |
- character. Caller must free the array. */
|
|
Tim Waugh |
e1ca94 |
-static char*
|
|
Tim Waugh |
e1ca94 |
-check_multibyte_string(char const *buf, size_t size)
|
|
Tim Waugh |
e1ca94 |
-{
|
|
Tim Waugh |
e1ca94 |
- char *mb_properties = xmalloc(size);
|
|
Tim Waugh |
e1ca94 |
- mbstate_t cur_state;
|
|
Tim Waugh |
e1ca94 |
- wchar_t wc;
|
|
Tim Waugh |
e1ca94 |
- int i;
|
|
Tim Waugh |
e1ca94 |
- memset(&cur_state, 0, sizeof(mbstate_t));
|
|
Tim Waugh |
e1ca94 |
- memset(mb_properties, 0, sizeof(char)*size);
|
|
Tim Waugh |
e1ca94 |
- for (i = 0; i < size ;)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- size_t mbclen;
|
|
Tim Waugh |
e1ca94 |
- mbclen = mbrtowc(&wc, buf + i, size - i, &cur_state);
|
|
Tim Waugh |
e1ca94 |
-
|
|
Tim Waugh |
e1ca94 |
- if (mbclen == (size_t) -1 || mbclen == (size_t) -2 || mbclen == 0)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- /* An invalid sequence, or a truncated multibyte character.
|
|
Tim Waugh |
e1ca94 |
- We treat it as a singlebyte character. */
|
|
Tim Waugh |
e1ca94 |
- mbclen = 1;
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
- else if (match_icase)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- if (iswupper((wint_t)wc))
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- wc = towlower((wint_t)wc);
|
|
Tim Waugh |
e1ca94 |
- wcrtomb(buf + i, wc, &cur_state);
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
- mb_properties[i] = mbclen;
|
|
Tim Waugh |
e1ca94 |
- i += mbclen;
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
-
|
|
Tim Waugh |
e1ca94 |
- return mb_properties;
|
|
Tim Waugh |
e1ca94 |
-}
|
|
Tim Waugh |
e1ca94 |
-#endif
|
|
Tim Waugh |
e1ca94 |
-
|
|
Tim Waugh |
e1ca94 |
static void
|
|
Tim Waugh |
e1ca94 |
Gcompile (char const *pattern, size_t size)
|
|
Tim Waugh |
e1ca94 |
{
|
|
Tim Waugh |
6f2e16 |
@@ -350,18 +306,8 @@
|
|
Tim Waugh |
e1ca94 |
struct kwsmatch kwsm;
|
|
Tim Waugh |
e1ca94 |
size_t i, ret_val;
|
|
Tim Waugh |
e1ca94 |
#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- char *mb_properties = NULL;
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- if (match_icase)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- char *case_buf = xmalloc(size);
|
|
Tim Waugh |
e1ca94 |
- memcpy(case_buf, buf, size);
|
|
Tim Waugh |
e1ca94 |
- buf = case_buf;
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
- if (kwset)
|
|
Tim Waugh |
e1ca94 |
- mb_properties = check_multibyte_string(buf, size);
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
+ mbstate_t mbs;
|
|
Tim Waugh |
e1ca94 |
+ memset (&mbs, '\0', sizeof (mbstate_t));
|
|
Tim Waugh |
e1ca94 |
#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
buflim = buf + size;
|
|
Tim Waugh |
6f2e16 |
@@ -376,15 +322,34 @@
|
|
Tim Waugh |
e1ca94 |
size_t offset = kwsexec (kwset, beg, buflim - beg, &kwsm);
|
|
Tim Waugh |
e1ca94 |
if (offset == (size_t) -1)
|
|
Tim Waugh |
e1ca94 |
goto failure;
|
|
Tim Waugh |
e1ca94 |
+#ifdef MBS_SUPPORT
|
|
Tim Waugh |
6f2e16 |
+ if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t n = offset;
|
|
Tim Waugh |
6f2e16 |
+ while (n)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t len = mbrlen (beg, n, &mbs);
|
|
Tim Waugh |
6f2e16 |
+ if (len == (size_t) -1 || len == (size_t) -2 || len == 0)
|
|
Tim Waugh |
6f2e16 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ /* Incomplete character. */
|
|
Tim Waugh |
6f2e16 |
+ memset (&mbs, '\0', sizeof (mbstate_t));
|
|
Tim Waugh |
6f2e16 |
+ beg += n;
|
|
Tim Waugh |
6f2e16 |
+ break;
|
|
Tim Waugh |
6f2e16 |
+ }
|
|
Tim Waugh |
e1ca94 |
+
|
|
Tim Waugh |
6f2e16 |
+ beg += len;
|
|
Tim Waugh |
6f2e16 |
+ n -= len;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
6f2e16 |
+ if (n)
|
|
Tim Waugh |
6f2e16 |
+ continue;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
6f2e16 |
+ else
|
|
Tim Waugh |
6f2e16 |
+#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
beg += offset;
|
|
Tim Waugh |
e1ca94 |
/* Narrow down to the line containing the candidate, and
|
|
Tim Waugh |
e1ca94 |
run it through DFA. */
|
|
Tim Waugh |
e1ca94 |
end = memchr(beg, eol, buflim - beg);
|
|
Tim Waugh |
e1ca94 |
end++;
|
|
Tim Waugh |
e1ca94 |
-#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1 && mb_properties[beg - buf] == 0)
|
|
Tim Waugh |
e1ca94 |
- continue;
|
|
Tim Waugh |
e1ca94 |
-#endif
|
|
Tim Waugh |
e1ca94 |
while (beg > buf && beg[-1] != eol)
|
|
Tim Waugh |
e1ca94 |
--beg;
|
|
Tim Waugh |
e1ca94 |
if (kwsm.index < kwset_exact_matches)
|
|
Tim Waugh |
6f2e16 |
@@ -399,6 +364,29 @@
|
|
Tim Waugh |
e1ca94 |
if (offset == (size_t) -1)
|
|
Tim Waugh |
e1ca94 |
break;
|
|
Tim Waugh |
e1ca94 |
/* Narrow down to the line we've found. */
|
|
Tim Waugh |
e1ca94 |
+#ifdef MBS_SUPPORT
|
|
Tim Waugh |
6f2e16 |
+ if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t n = offset;
|
|
Tim Waugh |
6f2e16 |
+ while (n)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t len = mbrlen (beg, n, &mbs);
|
|
Tim Waugh |
6f2e16 |
+ if (len == (size_t) -1 || len == (size_t) -2 || len == 0)
|
|
Tim Waugh |
6f2e16 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ /* Incomplete character. */
|
|
Tim Waugh |
6f2e16 |
+ memset (&mbs, '\0', sizeof (mbstate_t));
|
|
Tim Waugh |
6f2e16 |
+ beg += n;
|
|
Tim Waugh |
6f2e16 |
+ break;
|
|
Tim Waugh |
6f2e16 |
+ }
|
|
Tim Waugh |
e1ca94 |
+
|
|
Tim Waugh |
6f2e16 |
+ beg += len;
|
|
Tim Waugh |
6f2e16 |
+ n -= len;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
6f2e16 |
+ if (n)
|
|
Tim Waugh |
6f2e16 |
+ continue;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
6f2e16 |
+ else
|
|
Tim Waugh |
6f2e16 |
+#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
beg += offset;
|
|
Tim Waugh |
e1ca94 |
end = memchr (beg, eol, buflim - beg);
|
|
Tim Waugh |
e1ca94 |
end++;
|
|
Tim Waugh |
6f2e16 |
@@ -469,15 +457,6 @@
|
|
Tim Waugh |
e1ca94 |
} /* for (beg = end ..) */
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
failure:
|
|
Tim Waugh |
e1ca94 |
-#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- if (mb_properties)
|
|
Tim Waugh |
e1ca94 |
- free (mb_properties);
|
|
Tim Waugh |
e1ca94 |
- if (match_icase)
|
|
Tim Waugh |
e1ca94 |
- free ((char *) buf);
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
-#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
return (size_t) -1;
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
success_in_beg_and_end:
|
|
Tim Waugh |
6f2e16 |
@@ -486,15 +465,6 @@
|
|
Tim Waugh |
e1ca94 |
/* FALLTHROUGH */
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
success_in_start_and_len:
|
|
Tim Waugh |
e1ca94 |
-#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- if (mb_properties)
|
|
Tim Waugh |
e1ca94 |
- free (mb_properties);
|
|
Tim Waugh |
e1ca94 |
- if (match_icase)
|
|
Tim Waugh |
e1ca94 |
- free ((char *) buf);
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
-#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
*match_size = len;
|
|
Tim Waugh |
e1ca94 |
return start;
|
|
Tim Waugh |
e1ca94 |
}
|
|
Tim Waugh |
6f2e16 |
@@ -531,17 +501,8 @@
|
|
Tim Waugh |
e1ca94 |
struct kwsmatch kwsmatch;
|
|
Tim Waugh |
e1ca94 |
size_t ret_val;
|
|
Tim Waugh |
e1ca94 |
#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- char *mb_properties = NULL;
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- if (match_icase)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- char *case_buf = xmalloc(size);
|
|
Tim Waugh |
e1ca94 |
- memcpy(case_buf, buf, size);
|
|
Tim Waugh |
e1ca94 |
- buf = case_buf;
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
- mb_properties = check_multibyte_string(buf, size);
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
+ mbstate_t mbs;
|
|
Tim Waugh |
e1ca94 |
+ memset (&mbs, '\0', sizeof (mbstate_t));
|
|
Tim Waugh |
e1ca94 |
#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
for (beg = buf; beg <= buf + size; ++beg)
|
|
Tim Waugh |
6f2e16 |
@@ -550,8 +511,28 @@
|
|
Tim Waugh |
e1ca94 |
if (offset == (size_t) -1)
|
|
Tim Waugh |
e1ca94 |
goto failure;
|
|
Tim Waugh |
e1ca94 |
#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1 && mb_properties[offset+beg-buf] == 0)
|
|
Tim Waugh |
e1ca94 |
- continue; /* It is a part of multibyte character. */
|
|
Tim Waugh |
6f2e16 |
+ if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t n = offset;
|
|
Tim Waugh |
6f2e16 |
+ while (n)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t len = mbrlen (beg, n, &mbs);
|
|
Tim Waugh |
6f2e16 |
+ if (len == (size_t) -1 || len == (size_t) -2 || len == 0)
|
|
Tim Waugh |
6f2e16 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ /* Incomplete character. */
|
|
Tim Waugh |
6f2e16 |
+ memset (&mbs, '\0', sizeof (mbstate_t));
|
|
Tim Waugh |
6f2e16 |
+ beg += n;
|
|
Tim Waugh |
6f2e16 |
+ break;
|
|
Tim Waugh |
6f2e16 |
+ }
|
|
Tim Waugh |
6f2e16 |
+
|
|
Tim Waugh |
6f2e16 |
+ beg += len;
|
|
Tim Waugh |
6f2e16 |
+ n -= len;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
e1ca94 |
+
|
|
Tim Waugh |
6f2e16 |
+ if (n)
|
|
Tim Waugh |
6f2e16 |
+ continue;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
6f2e16 |
+ else
|
|
Tim Waugh |
6f2e16 |
#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
beg += offset;
|
|
Tim Waugh |
e1ca94 |
len = kwsmatch.size[0];
|
|
Tim Waugh |
6f2e16 |
@@ -587,6 +568,31 @@
|
|
Tim Waugh |
e1ca94 |
if (offset == -1) {
|
|
Tim Waugh |
e1ca94 |
break; /* Try a different anchor. */
|
|
Tim Waugh |
e1ca94 |
}
|
|
Tim Waugh |
e1ca94 |
+#ifdef MBS_SUPPORT
|
|
Tim Waugh |
6f2e16 |
+ if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t n = offset;
|
|
Tim Waugh |
6f2e16 |
+ while (n)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ size_t len = mbrlen (beg, n, &mbs);
|
|
Tim Waugh |
6f2e16 |
+ if (len == (size_t) -1 || len == (size_t) -2 ||
|
|
Tim Waugh |
6f2e16 |
+ len == 0)
|
|
Tim Waugh |
6f2e16 |
+ {
|
|
Tim Waugh |
6f2e16 |
+ /* Incomplete character. */
|
|
Tim Waugh |
6f2e16 |
+ memset (&mbs, '\0', sizeof (mbstate_t));
|
|
Tim Waugh |
6f2e16 |
+ beg += n;
|
|
Tim Waugh |
6f2e16 |
+ break;
|
|
Tim Waugh |
6f2e16 |
+ }
|
|
Tim Waugh |
6f2e16 |
+
|
|
Tim Waugh |
6f2e16 |
+ beg += len;
|
|
Tim Waugh |
6f2e16 |
+ n -= len;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
e1ca94 |
+
|
|
Tim Waugh |
6f2e16 |
+ if (n)
|
|
Tim Waugh |
6f2e16 |
+ break; /* Try a different anchor. */
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
6f2e16 |
+ else
|
|
Tim Waugh |
e1ca94 |
+#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
6f2e16 |
beg += offset;
|
|
Tim Waugh |
e1ca94 |
len = kwsmatch.size[0];
|
|
Tim Waugh |
e1ca94 |
}
|
|
Tim Waugh |
6f2e16 |
@@ -597,20 +603,30 @@
|
|
Tim Waugh |
e1ca94 |
}
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
failure:
|
|
Tim Waugh |
e1ca94 |
-#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- if (match_icase)
|
|
Tim Waugh |
e1ca94 |
- free((char *) buf);
|
|
Tim Waugh |
e1ca94 |
- if (mb_properties)
|
|
Tim Waugh |
e1ca94 |
- free(mb_properties);
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
-#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
return -1;
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
success:
|
|
Tim Waugh |
e1ca94 |
+#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
+ end = beg + len;
|
|
Tim Waugh |
e1ca94 |
+ while (end < buf + size)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
e1ca94 |
+ size_t len = mbrlen (end, buf + size - end, &mbs);
|
|
Tim Waugh |
e1ca94 |
+ if (len == (size_t) -1 || len == (size_t) -2 || len == 0)
|
|
Tim Waugh |
e1ca94 |
+ {
|
|
Tim Waugh |
e1ca94 |
+ memset (&mbs, '\0', sizeof (mbstate_t));
|
|
Tim Waugh |
e1ca94 |
+ continue;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
e1ca94 |
+ if (len == 1 && *end == eol)
|
|
Tim Waugh |
e1ca94 |
+ break;
|
|
Tim Waugh |
e1ca94 |
+
|
|
Tim Waugh |
e1ca94 |
+ end += len;
|
|
Tim Waugh |
e1ca94 |
+ }
|
|
Tim Waugh |
e1ca94 |
+ end++;
|
|
Tim Waugh |
e1ca94 |
+#else
|
|
Tim Waugh |
e1ca94 |
end = memchr (beg + len, eol, (buf + size) - (beg + len));
|
|
Tim Waugh |
e1ca94 |
end++;
|
|
Tim Waugh |
e1ca94 |
+#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
+ /* Hmm, is this correct for multibyte? */
|
|
Tim Waugh |
e1ca94 |
while (buf < beg && beg[-1] != eol)
|
|
Tim Waugh |
e1ca94 |
--beg;
|
|
Tim Waugh |
e1ca94 |
len = end - beg;
|
|
Tim Waugh |
6f2e16 |
@@ -618,15 +634,6 @@
|
|
Tim Waugh |
e1ca94 |
|
|
Tim Waugh |
e1ca94 |
success_in_beg_and_len:
|
|
Tim Waugh |
e1ca94 |
*match_size = len;
|
|
Tim Waugh |
e1ca94 |
-#ifdef MBS_SUPPORT
|
|
Tim Waugh |
e1ca94 |
- if (MB_CUR_MAX > 1)
|
|
Tim Waugh |
e1ca94 |
- {
|
|
Tim Waugh |
e1ca94 |
- if (mb_properties)
|
|
Tim Waugh |
e1ca94 |
- free (mb_properties);
|
|
Tim Waugh |
e1ca94 |
- if (match_icase)
|
|
Tim Waugh |
e1ca94 |
- free ((char *) buf);
|
|
Tim Waugh |
e1ca94 |
- }
|
|
Tim Waugh |
e1ca94 |
-#endif /* MBS_SUPPORT */
|
|
Tim Waugh |
e1ca94 |
return beg - buf;
|
|
Tim Waugh |
e1ca94 |
}
|
|
Tim Waugh |
e1ca94 |
|