[svn:parrot] r48963 - branches/sleeker_boolean/src/pmc
Paul at osuosl.org
Paul at osuosl.org
Sun Sep 12 16:12:35 UTC 2010
Author: Paul C. Anagnostopoulos
Date: Sun Sep 12 16:12:35 2010
New Revision: 48963
URL: https://trac.parrot.org/parrot/changeset/48963
Log:
Fixed coding standards issues with parens
Modified:
branches/sleeker_boolean/src/pmc/boolean.pmc
Modified: branches/sleeker_boolean/src/pmc/boolean.pmc
==============================================================================
--- branches/sleeker_boolean/src/pmc/boolean.pmc Sun Sep 12 16:01:28 2010 (r48962)
+++ branches/sleeker_boolean/src/pmc/boolean.pmc Sun Sep 12 16:12:35 2010 (r48963)
@@ -60,11 +60,11 @@
/* These two init functions set the boolean flag directly. */
- VTABLE void init () {
+ VTABLE void init() {
set_boolean_FLAG(SELF, 0);
}
- VTABLE void init_pmc (PMC *value) {
+ VTABLE void init_pmc(PMC *value) {
INTVAL v = PMC_IS_NULL(value) ? 0 : VTABLE_get_bool(INTERP, value);
set_boolean_FLAG(SELF, v);
}
@@ -91,20 +91,20 @@
*/
- VTABLE INTVAL get_bool () {
+ VTABLE INTVAL get_bool() {
return get_boolean_FLAG(SELF);
}
- VTABLE INTVAL get_integer () {
+ VTABLE INTVAL get_integer() {
return SELF.get_bool();
}
- VTABLE FLOATVAL get_number () {
+ VTABLE FLOATVAL get_number() {
INTVAL value = SELF.get_bool();
return (FLOATVAL)value;
}
- VTABLE STRING *get_string () {
+ VTABLE STRING *get_string() {
return Parrot_str_from_int(INTERP, SELF.get_integer());
}
@@ -134,35 +134,35 @@
*/
- VTABLE void set_bool (INTVAL value) {
+ VTABLE void set_bool(INTVAL value) {
set_boolean_FLAG(SELF, value);
}
- VTABLE void set_integer_native (INTVAL value) {
+ VTABLE void set_integer_native(INTVAL value) {
SELF.set_bool(value);
}
- VTABLE void set_number_native (FLOATVAL value) {
+ VTABLE void set_number_native(FLOATVAL value) {
SELF.set_bool(!FLOAT_IS_ZERO(value));
}
- VTABLE void set_string_native (STRING *value) {
+ VTABLE void set_string_native(STRING *value) {
SELF.set_bool(Parrot_str_boolean(INTERP, value));
}
-/** VTABLE PMC *neg (PMC *dest) {
+/** VTABLE PMC *neg(PMC *dest) {
dest = Parrot_pmc_new_init_int(INTERP, VTABLE_type(INTERP, SELF),
SELF.get_bool());
return dest;
}
- VTABLE void i_neg () {
+ VTABLE void i_neg() {
/* Nothing to do for an in-place negate.
}**/
/* No POD documentation, since the reader should see Scalar. */
- VTABLE void i_logical_not () {
+ VTABLE void i_logical_not() {
flip_boolean_FLAG(SELF);
}
@@ -180,12 +180,12 @@
*/
- VTABLE void freeze (PMC *info) {
+ VTABLE void freeze(PMC *info) {
SUPER(info);
VTABLE_push_integer(INTERP, info, SELF.get_bool());
}
- VTABLE void thaw (PMC *info) {
+ VTABLE void thaw(PMC *info) {
SUPER(info);
SELF.set_bool(VTABLE_shift_integer(INTERP, info));
}
More information about the parrot-commits
mailing list