This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.18-368-ge256c42


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  e256c4214c9484873921d4bdb723b842b5627e42 (commit)
      from  9d88065565c12cfc5d5340baabc01e4fb4323d38 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e256c4214c9484873921d4bdb723b842b5627e42

commit e256c4214c9484873921d4bdb723b842b5627e42
Author: Will Newton <will.newton@linaro.org>
Date:   Sat Nov 2 09:45:48 2013 -0700

    manual/memory.texi: Remove register keyword from examples.
    
    The register keyword doesn't add any information to the examples
    and is not useful for modern compilers.
    
    ChangeLog:
    
    2013-11-06  Will Newton  <will.newton@linaro.org>
    
    	* manual/memory.texi (Malloc Examples): Remove register
    	keyword from examples.

diff --git a/ChangeLog b/ChangeLog
index 6b5d002..1165247 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-06  Will Newton  <will.newton@linaro.org>
+
+	* manual/memory.texi (Malloc Examples): Remove register
+	keyword from examples.
+
 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
 
 	* locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
diff --git a/manual/memory.texi b/manual/memory.texi
index 0c3d39e..a80f87c 100644
--- a/manual/memory.texi
+++ b/manual/memory.texi
@@ -355,7 +355,7 @@ it is:
 void *
 xmalloc (size_t size)
 @{
-  register void *value = malloc (size);
+  void *value = malloc (size);
   if (value == 0)
     fatal ("virtual memory exhausted");
   return value;
@@ -371,7 +371,7 @@ a newly allocated null-terminated string:
 char *
 savestring (const char *ptr, size_t len)
 @{
-  register char *value = (char *) xmalloc (len + 1);
+  char *value = (char *) xmalloc (len + 1);
   value[len] = '\0';
   return (char *) memcpy (value, ptr, len);
 @}
@@ -502,7 +502,7 @@ as @code{xmalloc} does for @code{malloc}:
 void *
 xrealloc (void *ptr, size_t size)
 @{
-  register void *value = realloc (ptr, size);
+  void *value = realloc (ptr, size);
   if (value == 0)
     fatal ("Virtual memory exhausted");
   return value;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    5 +++++
 manual/memory.texi |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]