/[man-db]/man-db/docs/ChangeLog
ViewVC logotype

Diff of /man-db/docs/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.327 by cjwatson, Mon Apr 28 14:12:43 2003 UTC revision 1.328 by cjwatson, Thu May 1 15:54:02 2003 UTC
# Line 1  Line 1 
1    Thu May  1 16:52:44 BST 2003  Colin Watson  <cjwatson@debian.org>
2    
3            Remove all assumptions that string literals have type 'char *'
4            rather than 'const char *'.
5    
6            * configure.in (CFLAGS): Add -Wwrite-strings for gcc.
7    
8            * lib/tempfile.c (xstrdup): First argument is const.
9              (path_search): Return 'const char *'.
10              (create_tempfile, create_tempdir): Copy return value of
11              path_search() right away rather than after checking for NULL.
12    
13            * libdb/db_ver.c (dbver): Take a private copy of VER_KEY.
14              (dbver_wr): Take private copies of VER_KEY and VER_ID.
15    
16            * src/accessdb.c (cat_root): Add const.
17            * src/catman.c (parse_for_sec): Remove __inline__; add const to both
18              arguments. Take private copies of "man" and the basic options.
19              (main): Copy "C" for locale. Make sections etc. 'const char **',
20              since STD_SECTIONS is an array of 'const char *'.
21            * src/check_mandirs.c (update_db_time, reset_db_time, update_db):
22              Take a private copy of KEY.
23            * src/filenames.c (make_filename): Make type const.
24            * src/filenames.h (make_filename): Update prototype.
25            * src/globbing.c (extension, mandir_layout): Add const.
26            * src/lexgrog.l (fname): Add const.
27              (find_name): Make filename const.
28              (main): Set program_name here from argv[0] rather than from a
29              string literal.
30            * include/manconfig.h.in (find_name): Update prototype.
31            * src/man.c (lang_dir): Add static. Copy string literals into ld.
32              Use xstrndup() rather than copying and then inserting '\0'.
33              (extension, alt_system_name, section_list, preprocessors, pager,
34              locale, std_sections, external, gxditview, html_pager): Add const.
35              (add_roff_line_length): First argument is const. Return a copy of
36              it if necessary.
37              (gripe_no_man): Copy external before passing it to basename().
38              (main): Copy "C" for internal_locale. Reorganize locale
39              reinitialization slightly so that locale can be const.
40              (man_getopt): Set 'const char *' and 'char *' variables to NULL
41              separately.
42              (is_section, compare_candidates, man): Use a 'const char **' to
43              iterate through section_list.
44              (make_roff_command): Remove __inline__. Take a copy of "" for dev
45              so that dev is always allocated memory. Handle filter in a more
46              const-safe way (although there's still a memory leak).
47              (get_section_list): Remove __inline__. Return 'const char **'.
48            * src/man.h (get_section_list): Update prototype.
49            * src/manp.c (get_from_list): Make return value and first argument
50              const.
51              (get_def): Make return value and both arguments const.
52              (get_sections): Return const.
53              (cat_manpath): Make path and catdir const.
54            * src/manp.h (get_def, get_sections): Update prototypes.
55            * src/manpath.c (main): Make alt_system const.
56            * src/whatis.c (use_grep): Make flags and anchor const.
57              (main): Make manp and alt_systems const. Copy "C" for locale.
58            * zsoelim/zsoelim.l (main): Copy argv[0] basename for program_name,
59              as basename()'s return value may not be long-lived. Copy "-" for
60              so_name[0].
61    
62            * src/mandb.c (main): Don't bother remembering the return value of
63              setlocale().
64            * src/manpath.c (main): Likewise.
65    
66  Mon Apr 28 15:11:28 BST 2003  Colin Watson  <cjwatson@debian.org>  Mon Apr 28 15:11:28 BST 2003  Colin Watson  <cjwatson@debian.org>
67    
68          * src/catman.c (main): Don't guard xstrdup() from NULL input, as it          * src/catman.c (main): Don't guard xstrdup() from NULL input, as it

Legend:
Removed from v.1.327  
changed lines
  Added in v.1.328

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26