diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-12 19:46:45 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-12 19:46:45 +0000 |
commit | 3f24af9bf4eb9b03c7bfe188eba1e9cadc1ae4ad (patch) | |
tree | 605928edb601a58710dd81dc6f1253e604104372 /libcpp | |
parent | 4fe9de846eab9213fe5b189767266f20f170f02b (diff) | |
download | gcc-3f24af9bf4eb9b03c7bfe188eba1e9cadc1ae4ad.tar.gz |
gcc/
* dbgcnt.c (dbg_cnt_process_single_pair): constify.
* opts.c (common_handle_option): constify.
gcc/cp/
* repo.c (extract_string, get_base_filename, init_repo): constify.
libcpp/
* directives.c (cpp_define): constify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151661 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 4 | ||||
-rw-r--r-- | libcpp/directives.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 1b020ac0ab8..033106322a4 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,7 @@ +2009-09-10 Jason Merrill <jason@redhat.com> + + * directives.c (cpp_define): constify. + 2009-09-02 Ian Lance Taylor <iant@google.com> * macro.c (stringify_arg): Escape CPP_WCHAR tokens. diff --git a/libcpp/directives.c b/libcpp/directives.c index 9c988dfa136..c5a1895b86e 100644 --- a/libcpp/directives.c +++ b/libcpp/directives.c @@ -2156,7 +2156,8 @@ do_unassert (cpp_reader *pfile) void cpp_define (cpp_reader *pfile, const char *str) { - char *buf, *p; + char *buf; + const char *p; size_t count; /* Copy the entire option so we can modify it. |