summaryrefslogtreecommitdiffstats
path: root/fastjar/jargrep.c
Commit message (Collapse)AuthorAgeFilesLines
* For PR libgcj/5303:tromey2002-01-091-11/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * jargrep.h: Removed RCS keywords. (GVERSION): Removed. * configure, Makefile.in, config.h.in: Rebuilt. * configure.in: Added AM_MAINTAINER_MODE. Don't look for getopt.h. Use `fastjar' as package name. * Makefile.am (INCLUDES): Look in ../include. (LIBIBERTY): New macro. (jar_LDADD): Use it. (jar_DEPENDENCIES): Likewise. (grepjar_LDADD): Likewise. (grepjar_DEPENDENCIES): Likewise. * jargrep.c: Removed RCS keywords. Always include getopt.h. (LONG_OPT): New macro. (OPT_HELP): Likewise. (main): Use getopt_long. Let getopt print invalid argument message. Handle --help. Use version(). (version): New function. (optarg, optind): Don't declare. (option_vec): New global. (help): New function. (Usage): Updated to GNU standards. * jartool.c: Removed RCS keywords. Include getopt.h. (LONG_OPT): New macro. (OPT_HELP): Likewise. (options): New global. (help): New function. (usage): Print a single line. (version): New function. (expand_options): New function. (main): Use getopt_long and expand_options. Fail if `-u' specified. Changed handling of -f, -m, -V options. (OPTION_STRING): New macro. (version_string): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48697 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>rodrigc2002-01-031-4/+10
| | | | | | | | | | | | | | | | | PR bootstrap/5117 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h. * Makefile.am: Move grepjar to bin_PROGRAMS. * config.h.in: Regenerated. * Makefile.in: Regenerated. * aclocal.m4: Regenerated. * jargrep.c: Eliminate some signed/unsigned and default uninitialized warnings. Use HAVE_STDLIB_H instead of STDC_HEADERS macro. * jartool.c: Likewise. * compress.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48493 138bc75d-0d04-0410-961f-82ee72b054a4
* * jargrep.c: Include getopt.h if it exists.tromey2000-12-151-2/+34
| | | | | | | | | (optind): Declare. * configure, config.h: Rebuilt. * configure.in: Check for getopt.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38294 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi2000-12-141-33/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compress.c: Include stdlib.h and compress.h. (rcsid): Delete. (report_str_error): Make static. (ez_inflate_str): Delete unused variable. Add parens in if-stmt. (hrd_inflate_str): Likewise. * compress.h (init_compression, end_compression, init_inflation, end_inflation): Prototype void arguments. * dostime.c (rcsid): Delete. * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h. Make functions static. Cast ctype function argument to `unsigned char'. Add parens in if-stmts. Constify. (Usage): Change into a macro. (jargrep): Remove unused parameter. * jartool.c: Constify. Add parens in if-stmts. Align signed/unsigned char pointers in functions calls using casts. (rcsid): Delete. (list_jar): Fix printf format specifier. (usage): Chop long string into bits. Reformat. * pushback.c (rcsid): Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38254 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-10 Robert Lipe <robertlipe@usa.net>apbianco2000-12-111-1/+7
| | | | | | | | | | | | | | * jargrep.c (jargrep): Added null statement after case. 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com> * Makefile: Removed. * Makefile.in: Rebuilt with `-i' and `--enable-foreign'. (http://gcc.gnu.org/ml/gcc/2000-12/msg00294.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38182 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-08 Alexandre Petit-Bianco <apbianco@cygnus.com>apbianco2000-12-091-0/+663
* fastjar: Imported. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38145 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud