]> gcc.gnu.org Git - gcc.git/commit - gcc/prefix.c
Makefile.in (gcc.o, [...]): Depend on prefix.h.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 5 Jan 1999 19:11:22 +0000 (19:11 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 5 Jan 1999 19:11:22 +0000 (19:11 +0000)
commit460ee1120c62c6c543e8bdfac4ee287e754e3a61
treef98dde49db8ef6f1d425e196eb7db84dab10c8b4
parent258ce95eb63d074fc9d39d7e1f82316a4fb7874d
Makefile.in (gcc.o, [...]): Depend on prefix.h.

        * Makefile.in (gcc.o, prefix.o, cccp.o, cpplib.o): Depend on prefix.h.
        * cccp.c: Include prefix.h, don't prototype prefix.c functions.
        (new_include_prefix): Constify char* parameters.
        * cppfiles.c (read_name_map): Likewise.
        (append_include_chain): Likewise.  Also, use a writable char* copy
        of parameter `dir' which we then modify, rather than using the
        parameter itself to store the new writable string.
        (remap_filename): Constify some variables.  Also, use a writable
        char* to store an allocated string which we will be modifying.
        * cpplib.c: Include prefix.h, don't prototype prefix.c functions.
        (cpp_start_read): Constify variable `str'.
        * cpplib.h (append_include_chain): Constify a char* parameter.
        * gcc.c Include prefix.h, don't prototype prefix.c functions.
        (add_prefix, save_string): Constify char* parameters.
        (fatal, error): Add ATTRIBUTE_PRINTF_1 to prototypes.
        * prefix.c: Include prefix.h.
        (get_key_value, translate_name, save_string, update_path,
        set_std_prefix): Constify various char* parameters and variables.
        (save_string): Use xmalloc, not malloc.
        (translate_name): Use a writable temporary variable to create and
        modify a string before setting it to a const char*.
        * prefix.h: New file to prototype functions exported from prefix.c.

From-SVN: r24498
gcc/ChangeLog
gcc/Makefile.in
gcc/cccp.c
gcc/cppfiles.c
gcc/cpplib.c
gcc/cpplib.h
gcc/gcc.c
gcc/prefix.c
gcc/prefix.h [new file with mode: 0644]
This page took 0.05422 seconds and 5 git commands to generate.