[svn:parrot] r41166 - in trunk/src: pmc string
mikehh at svn.parrot.org
mikehh at svn.parrot.org
Tue Sep 8 22:19:58 UTC 2009
Author: mikehh
Date: Tue Sep 8 22:19:55 2009
New Revision: 41166
URL: https://trac.parrot.org/parrot/changeset/41166
Log:
codetest failures - Found tab in leading whitespace
Modified:
trunk/src/pmc/resizablestringarray.pmc
trunk/src/string/api.c
Modified: trunk/src/pmc/resizablestringarray.pmc
==============================================================================
--- trunk/src/pmc/resizablestringarray.pmc Tue Sep 8 21:29:57 2009 (r41165)
+++ trunk/src/pmc/resizablestringarray.pmc Tue Sep 8 22:19:55 2009 (r41166)
@@ -38,8 +38,8 @@
VTABLE STRING *get_string_keyed_int(INTVAL key) {
STRING **str_array;
- INTVAL size;
- GET_ATTR_size(interp, SELF, size);
+ INTVAL size;
+ GET_ATTR_size(interp, SELF, size);
if (key < 0) {
if (key < -size)
@@ -73,8 +73,8 @@
VTABLE void set_string_keyed_int(INTVAL key, STRING *value) {
STRING **str_array;
- INTVAL size;
- GET_ATTR_size(interp, SELF, size);
+ INTVAL size;
+ GET_ATTR_size(interp, SELF, size);
if (key < 0) {
if (key < -size)
@@ -104,8 +104,8 @@
*/
VTABLE void push_string(STRING *value) {
- INTVAL next_idx;
- GET_ATTR_size(interp, SELF, next_idx);
+ INTVAL next_idx;
+ GET_ATTR_size(interp, SELF, next_idx);
SELF.set_string_keyed_int(next_idx, value);
}
@@ -121,8 +121,8 @@
VTABLE STRING *pop_string() {
STRING *value;
- INTVAL size;
- GET_ATTR_size(interp, SELF, size);
+ INTVAL size;
+ GET_ATTR_size(interp, SELF, size);
if (size == 0)
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_OUT_OF_BOUNDS,
@@ -218,8 +218,8 @@
else if (new_size <= resize_threshold) {
/* zero out anything that was previously allocated
* if we're growing the array */
- INTVAL old_size;
- GET_ATTR_size(interp, SELF, old_size);
+ INTVAL old_size;
+ GET_ATTR_size(interp, SELF, old_size);
if (new_size > old_size) {
INTVAL i;
for (i = old_size; i < new_size; i++)
@@ -266,10 +266,10 @@
VTABLE PMC *clone() {
PMC *copy = SUPER();
- INTVAL size;
- GET_ATTR_size(interp, SELF, size);
+ INTVAL size;
+ GET_ATTR_size(interp, SELF, size);
/* copy trimmed extra space */
- SET_ATTR_resize_threshold(INTERP, copy, size);
+ SET_ATTR_resize_threshold(INTERP, copy, size);
return copy;
}
@@ -285,8 +285,8 @@
VTABLE STRING *shift_string() {
STRING *value;
- INTVAL size;
- GET_ATTR_size(interp, SELF, size);
+ INTVAL size;
+ GET_ATTR_size(interp, SELF, size);
if (size == 0)
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_OUT_OF_BOUNDS,
Modified: trunk/src/string/api.c
==============================================================================
--- trunk/src/string/api.c Tue Sep 8 21:29:57 2009 (r41165)
+++ trunk/src/string/api.c Tue Sep 8 22:19:55 2009 (r41166)
@@ -488,7 +488,7 @@
{
ASSERT_ARGS(Parrot_str_concat)
if (a && a->strlen) {
- if (b && b->strlen) {
+ if (b && b->strlen) {
const ENCODING *enc;
const CHARSET *cs = string_rep_compatible(interp, a, b, &enc);
STRING *result;
More information about the parrot-commits
mailing list