Hi,
(Trying patcher for the first time ... ;-)
This patch hasn't been commited. It is about the use of the auto
keyword. It is, from what I know, not needed since auto is the
default. In C++0x auto will get a new meaning and the current usage
will be illegal.
(Could it be so evil that there are compilers out there that would not
place an automatic variable in a register if the auto keyword is
used?)
2011-03-20 Mats Lidell <matsl(a)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.
ChangeLog patch:
Diff command: hg extdiff -o -U0
Files affected: src/ChangeLog
--- patched-auto-c++.6c3a695f54f5/src/ChangeLog 2011-03-20 23:46:29.079105581 +0100
+++ /src/xemacs/work/patched-auto-c++/src/ChangeLog 2011-03-20 23:46:22.514215501 +0100
@@ -0,0 +1,7 @@
+2011-03-20 Mats Lidell <matsl(a)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.
+
Source patch:
Diff command: hg diff --git
Files affected: src/alloca.c
diff --git a/src/alloca.c b/src/alloca.c
--- a/src/alloca.c
+++ b/src/alloca.c
@@ -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
Yours
--
%% Mats
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches