ChangeLog 14.3 KB
Newer Older
1
2
3
4
2021-01-27  Niels Möller  <nisse@lysator.liu.se>

	* configure.ac (CFLAGS): Disable gcc pointer signedness warnings.

Niels Möller's avatar
Niels Möller committed
5
6
7
8
9
10
2016-04-18  Niels Möller  <nisse@lysator.liu.se>

	* argp-fmtstream.h (ARGP_FS_EI): Use __attribute__
	((__gnu_inline__)) if available, for compatibility with gcc-5.
	* argp.h (ARGP_EI): Likewise.

11
12
13
14
15
2014-10-02  Niels Möller  <nisse@lysator.liu.se>

	* strndup.c (strndup): Fixed off-by-one error, and failure check.
	Spotted by Avner BenHanoch.

Niels Möller's avatar
Niels Möller committed
16
2008-08-26  Niels Möller  <nisse@lysator.liu.se>
17
18
19
20
21
22

	* testsuite/Makefile.in (tags): Put TAGS file in the source
	directory. Also renamed target, was tags-here.

	* Makefile.in (tags-here): Put TAGS file in the source directory.

Niels Möller's avatar
Niels Möller committed
23
2007-09-11  Niels Möller  <nisse@lysator.liu.se>
Niels Möller's avatar
Niels Möller committed
24

Niels Möller's avatar
Niels Möller committed
25
	* testsuite/Makefile.in (PRE_CPPFLAGS): Use -I$(srcdir).
Niels Möller's avatar
Niels Möller committed
26
	Fixed typo when linking with ../libargp.a. 
Niels Möller's avatar
Niels Möller committed
27

Niels Möller's avatar
Niels Möller committed
28
29
	* testsuite/Makefile.in: Typo fix when using $(EXEEXT).

Niels Möller's avatar
Niels Möller committed
30
2007-05-03  Niels Möller  <nisse@lysator.liu.se>
Niels Möller's avatar
Niels Möller committed
31
32
33
34
35
36

	* configure.ac: Removed AC_PROG_CC_STDC. Reordered header and
	library checks.

	* config.make.in: Removed unused variables M4 and MAKEINFO.

Niels Möller's avatar
Niels Möller committed
37
2007-04-05  Niels Möller  <nisse@lysator.liu.se>
38

39
40
41
42
43
44
	* Makefile.in, testsuite/Makefile.in: Fixed dist and distcheck
	targets. 

	* configure.ac: Don't quote $CC when used, since it may include
	some options.

45
46
47
	* Moved in the CVS tree, and converted from automake to plain
	autoconf.

Niels Möller's avatar
Niels Möller committed
48
2007-02-26  Niels Möller  <niels@s3.kth.se>
49
50
51
52
53
54

	* argp.h (__option_is_short): Use isprint only for keys below
	UCHAR_MAX. Already fixed in glibc.

	* argp-help.c (hol_cluster_cmp): Fixed handling of depth.

Niels Möller's avatar
Niels Möller committed
55
2007-02-07  Niels Möller  <nisse@lysator.liu.se>
56
57
58
59
60

	* testsuite/Makefile.am (check): Propagate EXEEXT.
	* testsuite/ex1-test: Use $EXEEXT.
	* testsuite/permute-test: Likewise.

Niels Möller's avatar
Niels Möller committed
61
2005-11-25  Niels Möller  <nisse@lysator.liu.se>
62
63
64

	* configure.ac: Use LSH_FUNC_ALLOCA.

Niels Möller's avatar
Niels Möller committed
65
2004-11-19  Niels Möller  <nisse@lysator.liu.se>
66
67
68
69

	* argp-parse.c (__option_is_end): Delete __THROW on these
	definitions too.

Niels Möller's avatar
Niels Möller committed
70
2004-11-19  Niels Möller  <niels@s3.kth.se>
71
72
73
74

	* argp.h (__argp_usage, __option_is_short, __option_is_end): Don't
	use __THROW on definitions, only on declarations.

Niels Möller's avatar
Niels Möller committed
75
2004-11-14  Niels Möller  <nisse@lysator.liu.se>
76
77
78
79

	* vsnprintf.c: Moved in the CVS tree. It's now a link to
	misc/vsnprintf.c in the lsh tree.

Niels Möller's avatar
Niels Möller committed
80
2004-10-08  Niels Möller  <niels@s3.kth.se>
81
82
83
84
85

	* testsuite/Makefile.am: Use noinst_PROGRAMS instead of
	check_PROGRAMS, it seems check_PROGRAMS doesn't work with the
	rntcl build.

Niels Möller's avatar
Niels Möller committed
86
2004-03-20  Niels Möller  <nisse@lysator.liu.se>
87
88
89
90

	* configure.ac: Use AC_CONFIG_AUX_DIR([.]). Converted to new style
	AC_INIT and AM_INIT_AUTOMAKE.

Niels Möller's avatar
Niels Möller committed
91
2004-03-19  Niels Möller  <nisse@lysator.liu.se>
92
93
94
95
96
97
98

	* argp.h: Removed leading underscores from the argument names in
	the argp_parse prototype. These symbols are reserved for the
	implementation, and the msys compiler environment on windows
	happens to define __argc and __argv as macros that expand to
	magic.

Niels Möller's avatar
Niels Möller committed
99
2004-03-18  Niels Möller  <niels@s3.kth.se>
100
101
102
103

	* testsuite/Makefile.am (check_PROGRAMS): Use check_PROGRAMS, not
	noinst_PROGRAMS.

Niels Möller's avatar
Niels Möller committed
104
2004-03-17  Niels Möller  <nisse@lysator.liu.se>
105
106
107

	* testsuite/Makefile.am (AM_CPPFLAGS): Add -I$(top_srcdir). 

Niels Möller's avatar
Niels Möller committed
108
2004-03-05  Niels Möller  <nisse@lysator.liu.se>
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124

	* vsnprintf.c (dopr): Use unsigned char for the argument to
	isdigit.

	* configure.ac: We have no separeta replacement file for snprintf.

	* vsnprintf.c (dopr): Fixed va_arg calls that used short. Made
	inclusion of "config.h" conditional on HAVE_CONFIG_H.

	* configure.ac: Check for snprintf, vsnprintf and stdarg.h.

	* Makefile.am (EXTRA_DIST): Added vsnprintf.c.

	* vsnprintf.c: New replacement vsnprintf, by Patrick Powell,
	Brandom Long and others.

Niels Möller's avatar
Niels Möller committed
125
2004-03-03  Niels Möller  <niels@s3.kth.se>
126
127
128

	* Makefile.am (EXTRA_DIST): Typo fix.

Niels Möller's avatar
Niels Möller committed
129
2004-03-02  Niels Möller  <nisse@lysator.liu.se>
130
131
132
133
134
135
136
137
138

	* Makefile.am (EXTRA_DIST): Added strcasecmp.c.

	* argp-help.c: Declare strcasecmp.

	* strcasecmp.c (strcasecmp): New file.

	* argp-parse.c, argp-help.c: Conditionally include malloc.h.

Niels Möller's avatar
Niels Möller committed
139
2004-03-01  Niels Möller  <nisse@lysator.liu.se>
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154

	* argp-fmtstream.h [!HAVE_UNISTD_H]: Define ssize_t as int.

	* Makefile.am (EXTRA_PROGRAMS): Don't build argp-test, as it's the
	only program depending on the functions asprintf/vsnprintf.

	* configure.ac: Check for sleep and getpid.

	* argp-parse.c: Make inclusion of unistd.h conditional.
	(OPT_HANG): Recognize this option only if getpid and sleep are
	available.	

	* argp-fmtstream.h: Make inclusion of unistd.h conditional. It's
	needed for ssize_t, at least on freebsd.

Niels Möller's avatar
Niels Möller committed
155
2004-03-01  Niels Möller  <niels@s3.kth.se>
156
157
158
159
160

	* argp-eexst.c [!HAVE_SYSEXITS_H]: Hardcode EX_USAGE = 64.

	* configure.ac: Check for sysexits.h.

Niels Möller's avatar
Niels Möller committed
161
2004-02-23  Niels Möller  <niels@s3.kth.se>
162
163
164
165
166
167
168
169
170
171
172

	* configure.ac: Bumped version to standalone-1.3.

	Portability to Mac OS X (fixes by Akim Demaille)

        * argp/Makefile.am (libargp_a_SOURCES): Remove the duplicate
        inclusion of argp-eexst.c.
        * argp/argp-ba.c, argp/argp-pv.c, argp/argp-pvh.c: Initialize the
        variables, otherwise on Darwin linking fails if the user does not
        define these variables.

Niels Möller's avatar
Niels Möller committed
173
2003-04-28  Niels Möller  <nisse@cuckoo.hack.org>
174
175
176
177
178
179

	* argp-parse.c: Use standard alloca blurb from the autoconf
	manual. 
	* argp-help.c: Updated alloca blurb to use the same as
	argp-parse.c. 

Niels Möller's avatar
Niels Möller committed
180
2003-04-24  Niels Möller  <niels@s3.kth.se>
181
182
183

	* argp.h: Added workaround for __restrict.

Niels Möller's avatar
Niels Möller committed
184
2003-03-13  Niels Möller  <nisse@cuckoo.hack.org>
185
186
187
188
189

	* Released argp-standalone-1.2.

	* Updated copyright years.

Niels Möller's avatar
Niels Möller committed
190
2003-03-03  Niels Möller  <nisse@cuckoo.hack.org>
191
192
193
194
195
196
197
198

	* argp-fmtstream.h: Don't include config.h here, let the .c-files
	do that. Deleted definition of PRINTF_STYLE, that's in config.h.
	When defining or disabling i/o locking functions, use uppercase
	macro names like PUTC_UNLOCKED. This avoids conflicts if the
	underlying functions are really macros defined by stdio. For
	example on freebsd. Updated the files using these functions.

Niels Möller's avatar
Niels Möller committed
199
2003-03-02  Niels Möller  <nisse@cuckoo.hack.org>
200
201
202
203
204
205
206
207
208
209
210

	* argp-help.c: Don't include malloc.h. If any system still needs
	it, we need a configure test for it. 
	(hol_entry_help): Don't use a non-constant initializer, as that's
	a GNU C extension.

2003-02-23  Niels Moller  <nisse@carduelis>

	* configure.ac: Use LSH_GCC_ATTRIBUTES. Deleted the definition of
	UNUSED from the files that used it, it's now in config.h.

Niels Möller's avatar
Niels Möller committed
211
2003-02-16  Niels Möller  <nisse@cuckoo.hack.org>
212
213
214
215
216
217

	* argp-fmtstream.h: When disabling fwrite_unlocked, #undef it first.

	* testsuite/permute-test: diff -q is not portable.
	Redirect to /dev/null instead.

Niels Möller's avatar
Niels Möller committed
218
2003-02-12  Niels Möller  <niels@s3.kth.se>
219
220
221

	* argp-fmtstream.h: When disabling putc_unlocked, #undef it first.

Niels Möller's avatar
Niels Möller committed
222
2003-02-10  Niels Möller  <niels@s3.kth.se>
223
224
225

	* configure.ac (ARGP_CHECK_FUNC): Use AS_VAR_GET. Use AH_TEMPLATE.

Niels Möller's avatar
Niels Möller committed
226
2003-02-10  Niels Möller  <nisse@cuckoo.hack.org>
227
228
229
230

	* configure.ac (ARGP_CHECK_FUNC): New macro. Use it to test for
	putc_unlocked. 

Niels Möller's avatar
Niels Möller committed
231
2003-02-05  Niels Möller  <nisse@lysator.liu.se>
232
233
234
235
236
237
238
239
240
241
242

	* argp-parse.c (argp_default_options): Fixed initializer.
	* argp-test.c (options): Likewise.

	* testsuite/permute-test (die): Fixed sh-compatible function
	definition. 

	* testsuite/ex4.c: Don't use error.h and the error function.

	* .bootstrap: New file.

Niels Möller's avatar
Niels Möller committed
243
2003-02-05  Niels Möller  <niels@s3.kth.se>
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275

	* Makefile.am (all): Deleted the explicit all target.
	(LIBOBJS): Added explicit substitution.

	* testsuite/ex3.c, testsuite/ex4.c: Complete initializers, to
	avoid warnings from gcc.

	* configure.ac: Updated for current autoconf and automake.
	Fixed AC_CONFIG_HEADER call.
	Use AC_GNU_SOURCE.
	Use AC_CHECK_DECLS to check for program_invocation_name and
	program_invocation_short_name.
	
	* argp-test.c (sub_options): Complete initializer, to avoid
	warnings from gcc.
	(sub_argp): Likewise.
	(options): Likewise.

	* argp-parse.c (argp_default_parser):
	HAVE_PROGRAM_INVOCATION_SHORT_NAME renamed to
	HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME. 
	(argp_default_options): Complete initializer, to avoid
	warnings from gcc. 

	* argp-help.c (uparam_names): Complete initializer, to avoid
	warnings from gcc. 
	(__argp_short_program_name): HAVE_PROGRAM_INVOCATION_NAME renamed
	to HAVE_DECL_PROGRAM_INVOCATION_NAME. Similarly for
	HAVE_PROGRAM_INVOCATION_SHORT_NAME. 

	* acinclude.m4: Deleted file.

Niels Möller's avatar
Niels Möller committed
276
2003-02-04  Niels Möller  <nisse@cuckoo.hack.org>
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296

	* configure.ac: Bumped version to standalone-1.2.

	* argp-parse.c (parser_parse_next): Call exchange before
	processing the final arguments. Fixes bug reported by Akim Demaille.

	* Makefile.am (SUBDIRS): Added testsuite.

	* configure.ac: Output testsuite/Makefile.

	* testsuite/run-tests: Script copied from nettle.

	* testsuite/permute-test: New testcase, exercising
	argument option permuting.

	* testsuite/ex1-test: New testcase.

	* testsuite/ex1.c, testsuite/ex3.c,
	testsuite/ex4.c:  Added glibc example programs.

Niels Möller's avatar
Niels Möller committed
297
2002-07-18  Niels Möller  <niels@s3.kth.se>
298
299
300

	* configure.ac: Don't use -ggdb3 with gcc-2.96.

Niels Möller's avatar
Niels Möller committed
301
2002-05-06  Niels Möller  <niels@s3.kth.se>
302
303
304
305
306

	* configure.ac: Use AH_TEMPLATE for
	PROGRAM_INVOCATION_NAME and PROGRAM_INVOCATION_SHORT_NAME. The
	third arg to AC_DEFINE_UNQUOTED seems not to work here. 

Niels Möller's avatar
Niels Möller committed
307
2002-05-05  Niels Möller  <nisse@lysator.liu.se>
308
309
310
311
312
313
314
315
316
317
318
319

	* acconfig.h: Deleted file.

	* configure.ac: Pass no arguments to AM_INIT_AUTOMAKE.
	Don't substitute LIBOBJS.

	* acinclude.m4: Use the three-argument form of
	AC_DEFINE_UNQUOTED. 

	* configure.ac: Update for automake-1.6.
	* configure.ac: Renamed file, used to be configure.in.
	
Niels Möller's avatar
Niels Möller committed
320
2001-03-26  Niels Möller  <nisse@cuckoo.localdomain>
321
322
323

	* configure.in: Bumped argp version to standalone-1.1. 

Niels Möller's avatar
Niels Möller committed
324
2001-03-26  Niels Möller  <nisse@ehand.com>
325
326
327

	* configure.in (CPPFLAGS): Added -D_GNU_SOURCE.

Niels Möller's avatar
Niels Möller committed
328
2001-02-18  Niels Möller  <nisse@cuckoo.localdomain>
329
330
331
332

	* argp-parse.c (argp_default_parser): Let OPT_HANG print
	the process id to stderr.

Niels Möller's avatar
Niels Möller committed
333
2001-01-15  Niels Möller  <nisse@ehand.com>
334
335
336
337

	* argp.h: #define PRINTF_STYLE, and use it instead of
	using __attribute__ directly.

Niels Möller's avatar
Niels Möller committed
338
2001-01-07  Niels Möller  <nisse@cuckoo.localdomain>
339
340
341
342
343
344
345
346

	* argp.h: Added _argp_short_program_name and
	__argp_short_program_name. 

	* argp-parse.c (parser_init): Use
	argp_short_program_name. 
	(parser_parse_next): Removed old permutation handling code. 

Niels Möller's avatar
Niels Möller committed
347
2001-01-06  Niels Möller  <nisse@cuckoo.localdomain>
348
349
350

	* argp-namefrob.h: Added _argp_short_program_name.

Niels Möller's avatar
Niels Möller committed
351
2001-01-02  Niels Möller  <nisse@cuckoo.localdomain>
352
353
354
355
356
357
358
359
360
361
362
363
364
365

	* argp-help.c (hol_entry_help): Avoid using a
	non-constant struct initializer.
	(UNUSED): Define as a macro expanding to __attribute__ ..., if
	compiling with gcc.

	* argp-fmtstream.h (PRINTF_STYLE): Define this macro,
	to expand to __attribute__ ... if compiling with gcc.

	* argp-fmtstream.c (__argp_fmtstream_write,
	__argp_fmtstream_puts, __argp_fmtstream_putc): Duplicate the
	inline definitions in argp-fmtstream.h, for compilers that don't
	do inlining.

Niels Möller's avatar
Niels Möller committed
366
2000-12-28  Niels Möller  <nisse@cuckoo.localdomain>
367
368
369
370
371
372
373
374
375

	* argp-help.c (fill_in_uparams): Use unsigned char * for
	VAR and ARG. Fixed calls of isalnum, isspace and friends, reported
	by Kalle Olavi Niemitalo.
	(canon_doc_option): Fixed calls of isalnum, isspace and friends,
	reported by Kalle Olavi Niemitalo.
	(hol_entry_cmp): Fixed calls of tolower, reported by Kalle Olavi
	Niemitalo.

Niels Möller's avatar
Niels Möller committed
376
2000-12-23  Niels Möller  <nisse@lysator.liu.se>
377
378
379
380
381

	* acinclude.m4: New file. 
	* acinclude.m4: Reverted the definition of AC_CHECK_VAR
	to take includes as argument, and renamed it to ARGP_CHECK_VAR.

Niels Möller's avatar
Niels Möller committed
382
2000-12-11  Niels Möller  <nisse@cuckoo.localdomain>
383
384
385
386
387
388
389

	* Removed getopt.c, getopt.h and getopt1.c from the src/argp
	directory. 

	* argp-parse.c (match_option, ARGP_COMPLETE): #if:ed out
	completion code for long options.

Niels Möller's avatar
Niels Möller committed
390
2000-11-30  Niels Möller  <nisse@cuckoo.localdomain>
391
392
393
394
395
396
397
398
399
400
401

	* argp-parse.c (match_option): Better abbreviations.
	Replaced try_getopt with args_only, changed calling convention for
	parser_parse_arg. 

	* configure.in: Don't check for getopt.

	* argp.h: Don't include getopt.h.

	* argp-parse.c (calc_sizes): Updated comment.

Niels Möller's avatar
Niels Möller committed
402
2000-11-29  Niels Möller  <nisse@cuckoo.localdomain>
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432

	* configure.in: Use AC_REPLACE_FUNCS for mempcpy, strndup
	and strchrnul.
	(AC_CHECK_VAR): Changed second argument to take the type of the
	variable. 

	* argp-parse.c (struct parser): New fields
	posixly_correct and ordering.
	(parser_init): Choose ordering.
	(enum arg_type): New value ARG_LONG_ONLY.
	(parser_parse_next): Added error messages similar to getopt's. 

	* argp-help.c (STRNDUP): New macro to refer to strndup
	or __strndup, as appropriate.
	(STRERROR): Define this macro as a wrapper for strerror or
	sys_errlist. 
	(__argp_basename): New function.

	* argp-namefrob.h (__argp_basename): Added
	__argp_basename. 

	* Makefile.am (libargp_a_LIBADD): Include LIBOBJS in
	libargp.a. 

	* argp.h: Added prototype for _argp_basename and
	__argp_basename. 

	* strndup.c, strchrnul.c mempcpy.c:
	Moved replacement functions to separate files.

Niels Möller's avatar
Niels Möller committed
433
2000-11-28  Niels Möller  <nisse@cuckoo.localdomain>
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448

	* argp-parse.c: Deleted getopt-related code.
	(struct parser): New field nextchar. Deleted fields try_getotp and long_opts.
	(find_short_option): New function.
	(match_option): New function.
	(find_long_option): New function.
	(struct parser_convert_state): Deleted field long_end.
	(convert_options): Don't build getopt_long-style option array. 
	(parser_convert): Deleted FLAGS arument.
	(struct parser_sizes): Deleted field long_len.
	(parser_init): Set short_opts to NULL, unless ARGP_LONG_ONLY is
	used. 
	(classify_arg): New function.
	(parser_parse_next): Don't use getopt_long().

Niels Möller's avatar
Niels Möller committed
449
2000-11-27  Niels Möller  <nisse@cuckoo.localdomain>
450
451
452
453

	* argp-help.c (argp_doc): Use the name strndup, not
	__strndup. That probably breaks glibc builds.

Niels Möller's avatar
Niels Möller committed
454
2000-11-27  Niels Möller  <nisse@lysator.liu.se>
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479

	* argp-test.c (asprintf): Bug fix.

	* argp.h: Dummy definition of __THROW.

	* argp-test.c: Fixed asprintf implementation.

	* argp-parse.c (__argp_usage, __option_is_short,
	__option_is_end): Define these function, in case the user isn't
	inlining them.

	* argp-help.c: #define __mempcpy if needed. Use unsigned
	arguments to the ctype macros. Handle systems where
	program_invocation_name and program_invocation_short_name doesn't
	exist.
	* argp-help.c (short_program_name): New function.

	* Makefile.am: Use @LIBOBJS@ when building test program. 

	* configure.in: Check for getopt_long. Substitute
	LIBOBJS. Add -I$srcdir to CPPFLAGS.

	* src/argp: Added getopt.h, getopt.c and getopt1.c, which are
	needed for separate compilation of argp.

Niels Möller's avatar
Niels Möller committed
480
2000-11-27  Niels Möller  <nisse@cuckoo.localdomain>
481
482
483

	* Updated argp from glibc-2.2.