Jim Meyering
52f9cd6688
remove SPACEs before TAB
2006-04-14 16:36:34 +00:00
Jim Meyering
ea26299816
*** empty log message ***
2006-04-14 16:35:44 +00:00
Jim Meyering
47d0eb8722
(fts_open): Don't allocate parent if *argv==NULL. Patch from glibc.
2006-04-14 16:35:41 +00:00
Jim Meyering
8085d02998
(fts_build): Free `head' before returning NULL, in two places,
...
to avoid leaks. Patch from glibc.
2006-04-14 16:26:15 +00:00
Jim Meyering
d657c35562
(fts_build): Remove just-#if-0'd code and the code that
...
declares and sets cderrno.
2006-04-14 16:21:21 +00:00
Jim Meyering
091c012089
(fts_build): #if-0-out a block of unused code. Patch via glibc.
2006-04-14 16:11:01 +00:00
Paul Eggert
52bb8bdd10
Don't use wchar_t or wctype_t; update comment.
2006-04-13 22:17:17 +00:00
Paul Eggert
3125c35bc7
(RE_DUP_MAX): Update comment to match current implementation.
2006-04-13 22:16:58 +00:00
Paul Eggert
372285b207
(init_dfa): Don't use wchar_t or wctype_t if RE_ENABLE_I18N
...
is not defined. Problem reported by Mark D. Baushke via Derek R. Price.
2006-04-13 22:16:43 +00:00
Paul Eggert
eeac99af71
(What information is listed): Document 'ls' type letters.
2006-04-13 04:01:47 +00:00
Paul Eggert
e0637b5b68
Port to Interix.
2006-04-12 20:15:30 +00:00
Paul Eggert
00e67bf028
(sync) [!HAVE_SYNC]: New macro.
2006-04-12 20:15:08 +00:00
Paul Eggert
eda15d7cca
(USE_STATVFS): New macro.
...
Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
(NAMEMAX_FORMAT): define a bit more clearly, now that the
statvfs-using code is a bit more regular.
2006-04-12 20:14:42 +00:00
Paul Eggert
2e16cd4302
(main) [! HAVE_SETGROUPS]: Don't call setgroups.
2006-04-12 20:14:19 +00:00
Paul Eggert
e26a29be00
(linkfunc): Remove. This method ran into a compiler/linker
...
bug in Interix. Just call symlink or link directly. All uses changed.
2006-04-12 20:14:01 +00:00
Paul Eggert
cec6e43aae
(gl_MACROS): Check for setgroups and sync, since they
...
are not in Interix.
2006-04-12 20:13:34 +00:00
Paul Eggert
2fc455e2d5
Include <inttypes.h> and <stdint.h> if they exist.
2006-04-12 20:13:13 +00:00
Paul Eggert
368bc94656
Don't include <inttypes.h> or <stdint.h>, since
...
fsusage.h now does that. Include fsusage.h first, to test interface.
Prefer statvfs if it works, since it's blessed by POSIX. Attempt
at most one method (the old code could have generated decls that
didn't conform to C89, not that this was ever exercised).
2006-04-12 20:13:00 +00:00
Paul Eggert
dfe1ede00d
csplit, nl, expr now conform to POSIX better, and are
...
more-compatible with traditional Unix, with respect to regular
expressions.
2006-04-12 07:49:34 +00:00
Paul Eggert
ce1f8e6ecd
(expr invocation): expr exit status is 3 only for
...
internal errors now; 2 is also for invalid values in expressions.
2006-04-12 07:47:11 +00:00
Paul Eggert
7e17831f0a
Clear the RE_NO_EMPTY_RANGES re syntax option, as this is a less intrusive
...
change from the old (Emacs) behavior, and POSIX allows us to treat [z-a]
as an empty range.
2006-04-12 07:37:11 +00:00
Paul Eggert
79b051c610
expr, csplit, nl patches to conform better to POSIX and/or traditional
...
behavior. Port tests to Solaris 8.
2006-04-12 07:18:11 +00:00
Paul Eggert
93305ed5f9
Use \{...\} in test RE, to test that we're conforming to POSIX.
2006-04-12 07:17:26 +00:00
Paul Eggert
661b506c3d
(fail-a): Adjust exit status to match new expr behavior, for status 2 versus 3.
...
(anchor): New test.
(bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
(bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
(bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
(bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
(bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
(bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
(bre61, bre62): New tests.
2006-04-12 07:17:02 +00:00
Paul Eggert
110970f622
(docolon): Set re_syntax_options to a value that is compatible with
...
what POSIX requires. Also, don't let anchors match
newline; this fixes an incompatibility with tradition and with POSIX.
Don't warn about leading ^. POSIX says it is unspecified whether
^ is a special character, which means that implementations can
either treat it as special or not, but either way a warning is not
allowed (unless the regexp is otherwise invalid). Instead, anchor
the expression but treat ^ as an anchor; this is the traditional
behavior (e.g., Solaris 10).
(eval4, eval3, eval2): Treat non-numeric args, division by zero,
and the like as invalid expressions (exit status 2), not as
failure of 'expr' (exit status 3). This is more consistent with
how Solaris behaves.
2006-04-12 07:16:20 +00:00
Paul Eggert
6fd9c6f98e
(build_type_arg): Set re_syntax_options to a value that is compatible
...
with what POSIX requires.
2006-04-12 07:15:21 +00:00
Paul Eggert
2a75bb4ae0
(extract_regexp): Set re_syntax_options to a
...
value that is compatible with what POSIX requires.
2006-04-12 07:14:53 +00:00
Paul Eggert
f666da6f32
(gl_TIME_R): Add AC_LIBSOURCES for time_r.c and time_r.h.
2006-04-12 07:11:52 +00:00
Paul Eggert
1ff52c6a54
Do not assume that 'sed' can handle long, newline-free input.
...
Evaluate expr once, not $n times.
2006-04-12 07:07:55 +00:00
Paul Eggert
0dfc08bf3a
Solaris 8 sh doesn't understand "if !". Do not assume that 'sed' can
...
handle long, newline-free input.
2006-04-12 07:07:32 +00:00
Paul Eggert
9066275509
Adjust to new regex.h API (with new fastmap type), and clean
...
up the regex storage allocation a bit.
2006-04-11 00:52:16 +00:00
Paul Eggert
1f1ff10b0c
(compiled_separator_fastmap): New ver.
...
(main): Use it. Don't bother allocating a buffer.
2006-04-11 00:52:01 +00:00
Paul Eggert
8745735aaf
(context_regex_string, word_regex_string): Remove.
...
(context_regex, word_regex): New vars, replacing the above.
All uses changed.
(struct regex_data): New type.
(compile_regex): Renamed from alloc_and_compile_regex, since
we no longer allocate storage. Arg is now a struct regex_data *,
not a const char *. All uses changed. Don't allocate the fastmap;
instead, take it from the caller. Don't convert size_t to int,
to avoid arithmetic overflow problems. Don't bother freeing
storage afterwards; it's not worth the aggravation.
2006-04-11 00:51:42 +00:00
Paul Eggert
fad52643e0
(body_fastmap, header_fastmap, footer_fastmap):
...
New vars.
(build_type_arg): New fastmap arg. All uses changed.
Don't bother allocating a buffer, but set a fastmap.
2006-04-11 00:51:23 +00:00
Paul Eggert
2a124564c7
(docolon): Allocate and use a fastmap.
...
Don't bother allocating a buffer.
2006-04-11 00:50:56 +00:00
Paul Eggert
87bd526828
Update copyright year.
2006-04-11 00:50:33 +00:00
Paul Eggert
ff652937b0
(struct control): Put re_compiled member at the
...
end, since it's large. Change regexpr member from char * to bool;
all uses changed. Add new member fastmap.
(extract_regexp): regexp arg is now char const *, not char *.
Don't bother duplicating the regular expression; it's not needed.
Set fastmap from new fastmap member. Don't bother allocating
a buffer, as the regexp code does a better job than we do.
2006-04-11 00:49:59 +00:00
Jim Meyering
ba75c95164
remove useless spaces before TABs
2006-04-10 19:15:08 +00:00
Paul Eggert
72021730a8
Import latest regex module from gnulib.
2006-04-10 06:46:07 +00:00
Paul Eggert
1fe38016fa
Add 'hostid' to System context menu line.
2006-04-09 07:55:05 +00:00
Paul Eggert
dd175a9f41
(Top): Fix typo in System context menu entry: hostid wasn't mentioned.
2006-04-09 07:52:33 +00:00
Jim Meyering
38433b219d
(iwrite): Remove assignment without effect.
...
Reported by Felix Rauch Valenti.
2006-03-30 13:47:57 +00:00
Jim Meyering
568eec4a9d
*** empty log message ***
2006-03-30 13:26:59 +00:00
Jim Meyering
6809ff6910
*** empty log message ***
2006-03-28 09:48:26 +00:00
Jim Meyering
b1aecc319f
(General options in ptx): Undocument --copyright.
2006-03-28 09:48:15 +00:00
Jim Meyering
2fdcdc90f0
*** empty log message ***
2006-03-28 09:47:56 +00:00
Jim Meyering
1ae249fba2
(usage): Remove mention of --copyright/-C.
...
(main): Alias --copyright to --version plus a deprecation warning.
2006-03-28 09:47:28 +00:00
Jim Meyering
5378e090da
deprecate ptx's --copyright (-C) option
2006-03-28 09:46:38 +00:00
Jim Meyering
4e5755ff74
*** empty log message ***
2006-03-27 14:08:04 +00:00
Jim Meyering
ce88154fd8
(dirname invocation): Macro in previous patch was too broad.
2006-03-27 14:08:00 +00:00