Permalink
Browse files

Fix C++ build

(Courtesy of NotFound)
  • Loading branch information...
1 parent c3091a8 commit ae01b4e7c14baaafa43fac476e737ef0661c62d9 @fperrad committed Sep 26, 2009
Showing with 41 additions and 38 deletions.
  1. +3 −0 CREDITS
  2. +12 −12 src/pmc/luanumber.pmc
  3. +26 −26 src/pmc/luastring.pmc
View
@@ -102,6 +102,9 @@ N: Moritz Lenz
U: moritz
D: fix SVN properties
+U: Notfound
+D: fix C++ build
+
N: Nuno Carvalho
U: smash
D: fix SVN properties
View
@@ -307,7 +307,7 @@ Used to unarchive the number.
}
MULTI PMC *add(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -349,7 +349,7 @@ Used to unarchive the number.
}
MULTI void i_add(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -393,7 +393,7 @@ Used to unarchive the number.
}
MULTI PMC *subtract(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -436,7 +436,7 @@ Used to unarchive the number.
}
MULTI void i_subtract(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -479,7 +479,7 @@ Used to unarchive the number.
}
MULTI PMC *multiply(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -519,7 +519,7 @@ Used to unarchive the number.
}
MULTI void i_multiply(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -562,7 +562,7 @@ Used to unarchive the number.
}
MULTI PMC *divide(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -603,7 +603,7 @@ Used to unarchive the number.
}
MULTI void i_divide(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -647,7 +647,7 @@ Used to unarchive the number.
}
MULTI PMC *modulus(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -689,7 +689,7 @@ Used to unarchive the number.
}
MULTI void i_modulus(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -732,7 +732,7 @@ Used to unarchive the number.
}
MULTI PMC *pow(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -773,7 +773,7 @@ Used to unarchive the number.
}
MULTI void i_pow(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, value, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
View
@@ -200,7 +200,7 @@ the specified C<PMC>.
*/
VTABLE PMC* neg(PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -223,7 +223,7 @@ the specified C<PMC>.
*/
VTABLE void i_neg() {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -294,7 +294,7 @@ Used to unarchive the string.
*/
MULTI PMC* add(LuaNumber value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -310,7 +310,7 @@ Used to unarchive the string.
}
MULTI PMC* add(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -348,7 +348,7 @@ Used to unarchive the string.
*/
MULTI void i_add(LuaNumber value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -362,7 +362,7 @@ Used to unarchive the string.
}
MULTI void i_add(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -398,7 +398,7 @@ Used to unarchive the string.
*/
MULTI PMC* subtract(LuaNumber value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -414,7 +414,7 @@ Used to unarchive the string.
}
MULTI PMC* subtract(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -452,7 +452,7 @@ Used to unarchive the string.
*/
MULTI void i_subtract(LuaNumber value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -466,7 +466,7 @@ Used to unarchive the string.
}
MULTI void i_subtract(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -503,7 +503,7 @@ Used to unarchive the string.
*/
MULTI PMC* multiply(LuaNumber value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -519,7 +519,7 @@ Used to unarchive the string.
}
MULTI PMC* multiply(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -557,7 +557,7 @@ Used to unarchive the string.
*/
MULTI void i_multiply(LuaNumber value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -571,7 +571,7 @@ Used to unarchive the string.
}
MULTI void i_multiply(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -607,7 +607,7 @@ Used to unarchive the string.
*/
MULTI PMC* divide(LuaNumber value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -623,7 +623,7 @@ Used to unarchive the string.
}
MULTI PMC* divide(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -662,7 +662,7 @@ Used to unarchive the string.
*/
MULTI void i_divide(LuaNumber value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -676,7 +676,7 @@ Used to unarchive the string.
}
MULTI void i_divide(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -712,7 +712,7 @@ Used to unarchive the string.
*/
MULTI PMC* modulus(LuaNumber value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -728,7 +728,7 @@ Used to unarchive the string.
}
MULTI PMC* modulus(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -767,7 +767,7 @@ Used to unarchive the string.
*/
MULTI void i_modulus(LuaNumber value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -781,7 +781,7 @@ Used to unarchive the string.
}
MULTI void i_modulus(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -817,7 +817,7 @@ Used to unarchive the string.
*/
MULTI PMC* pow(LuaNumber value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -833,7 +833,7 @@ Used to unarchive the string.
}
MULTI PMC* pow(LuaString value, PMC *dest) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -872,7 +872,7 @@ Used to unarchive the string.
*/
MULTI void i_pow(LuaNumber value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);
@@ -886,7 +886,7 @@ Used to unarchive the string.
}
MULTI void i_pow(LuaString value) {
- PMC * const n;
+ PMC *n;
Parrot_PCCINVOKE(INTERP, SELF, Parrot_str_new_constant(INTERP, "tonumber"),
"->P", &n);

0 comments on commit ae01b4e

Please sign in to comment.