public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch][linker plugin-api] Add const to the add_input_file and  add_input_library callbacks
@ 2010-06-18 18:02 Rafael Espindola
  0 siblings, 0 replies; only message in thread
From: Rafael Espindola @ 2010-06-18 18:02 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

I committed the attached patch. It was approved by Ian in the binutils
mailing list.

2010-06-18  Rafael Espindola  <espindola@google.com>

       * plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library):
       Make argument const.

Cheers,
-- 
Rafael Ávila de Espíndola

[-- Attachment #2: const.patch --]
[-- Type: text/x-patch, Size: 1022 bytes --]

diff --git a/include/ChangeLog b/include/ChangeLog
index a879adb..6b8053f 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-18  Rafael Espindola  <espindola@google.com>
+
+	* plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library):
+	Make argument const.
+
 2010-06-08  Tristan Gingold  <gingold@adacore.com>
 
 	* dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and
diff --git a/include/plugin-api.h b/include/plugin-api.h
index 5821785..55cfe25 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -220,13 +220,13 @@ enum ld_plugin_status
 
 typedef
 enum ld_plugin_status
-(*ld_plugin_add_input_file) (char *pathname);
+(*ld_plugin_add_input_file) (const char *pathname);
 
 /* The linker's interface for adding a library that should be searched.  */
 
 typedef
 enum ld_plugin_status
-(*ld_plugin_add_input_library) (char *libname);
+(*ld_plugin_add_input_library) (const char *libname);
 
 /* The linker's interface for issuing a warning or error message.  */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-18 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-18 18:02 [patch][linker plugin-api] Add const to the add_input_file and add_input_library callbacks Rafael Espindola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).