Mercurial > hg > xemacs-beta
changeset 5382:d363790fd936
Remove use of auto keyword. It is default and will be illegal in C++0X.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Wed, 23 Mar 2011 00:08:35 +0100 |
parents | 4f39e57a82b4 |
children | 294ab9180fad 5256fedd50e6 |
files | src/ChangeLog src/alloca.c |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Mar 17 16:20:09 2011 +0100 +++ b/src/ChangeLog Wed Mar 23 00:08:35 2011 +0100 @@ -1,3 +1,10 @@ +2011-03-20 Mats Lidell <matsl@xemacs.org> + + * alloca.c (find_stack_direction): + * alloca.c (xemacs_c_alloca): + Remove use of auto keyword. It is default and will be illegal in + C++0X. + 2011-03-17 Didier Verna <didier@xemacs.org> * data.c (init_errors_once_early): Define Qextent_read_only error.
--- a/src/alloca.c Thu Mar 17 16:20:09 2011 +0100 +++ b/src/alloca.c Wed Mar 23 00:08:35 2011 +0100 @@ -78,7 +78,7 @@ find_stack_direction (void) { static char *addr = NULL; /* Address of first `dummy', once known. */ - auto char dummy; /* To get stack address. */ + char dummy; /* To get stack address. */ if (addr == NULL) { /* Initial entry. */ @@ -131,7 +131,7 @@ pointer xemacs_c_alloca (unsigned int size) { - auto char probe; /* Probes stack depth: */ + char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe); #if STACK_DIRECTION == 0