~ubuntu-branches/ubuntu/raring/parrot/raring-proposed

« back to all changes in this revision

Viewing changes to src/pmc/boolean.pmc

  • Committer: Bazaar Package Importer
  • Author(s): Allison Randal
  • Date: 2011-07-30 18:45:03 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110730184503-34d4mprtfx6pt5h3
Tags: 3.6.0-1
* New upstream release
* debian/watch:
  - Modified regular expression to capture numbered directory name
    (patch from Dominique Dumont).
* debian/rules:
  - Split build-arch and build-indep, resolving lintian warning.
  - Update path to pbc_disassemble for manpage generation (patch
    from Dominique Dumont).
* debian/patches:
  - Added patch 02_fix_perl_interpreter_path.patch, resolving
    lintian warnings.
* debian/control:
  - Added DM-Upload-Allowed field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
Copyright (C) 2001-2010, Parrot Foundation.
 
2
Copyright (C) 2001-2011, Parrot Foundation.
3
3
 
4
4
=head1 NAME
5
5
 
104
104
*/
105
105
 
106
106
    VTABLE INTVAL get_bool() {
 
107
        UNUSED(INTERP);
107
108
        return get_boolean_FLAG(SELF);
108
109
    }
109
110
 
164
165
 
165
166
/*
166
167
 
 
168
=item C<INTVAL is_equal(PMC *value)>
 
169
 
 
170
The C<==> operation.
 
171
 
 
172
=cut
 
173
 
 
174
*/
 
175
 
 
176
    VTABLE INTVAL is_equal(PMC *value) {
 
177
        return (INTVAL)(get_boolean_FLAG(SELF) == VTABLE_get_bool(INTERP, value));
 
178
    }
 
179
 
 
180
/*
 
181
 
167
182
=item C<void freeze(PMC *info)>
168
183
 
169
184
Used to archive the C<Boolean>.