Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use nqp::const::stat_... #120

Merged
merged 2 commits into from

2 participants

@timo
Collaborator

this enhances portability. it builds upon changes to nqp that were already pushed and the nqp revision requirement has been bumped as well. all spectests passed.

@jnthn jnthn merged commit 17f5e59 into from
@timo timo deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2013
  1. @timo

    use the new NQP STAT constants

    timo authored
  2. @timo
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 8 deletions.
  1. +7 −7 src/core/IO.pm
  2. +1 −1  tools/build/NQP_REVISION
View
14 src/core/IO.pm
@@ -31,15 +31,15 @@ sub prompt($msg) {
my role IO::FileTestable {
method d() {
- self.e && nqp::p6bool(nqp::stat(nqp::unbox_s($.path), pir::const::STAT_ISDIR))
+ self.e && nqp::p6bool(nqp::stat(nqp::unbox_s($.path), nqp::const::STAT_ISDIR))
}
method e() {
- nqp::p6bool(nqp::stat(nqp::unbox_s($.path), pir::const::STAT_EXISTS))
+ nqp::p6bool(nqp::stat(nqp::unbox_s($.path), nqp::const::STAT_EXISTS))
}
method f() {
- self.e && nqp::p6bool(nqp::stat(nqp::unbox_s($.path), pir::const::STAT_ISREG))
+ self.e && nqp::p6bool(nqp::stat(nqp::unbox_s($.path), nqp::const::STAT_ISREG))
}
method l() {
@@ -53,7 +53,7 @@ my role IO::FileTestable {
method s() {
self.e
&& nqp::p6box_i( nqp::stat(nqp::unbox_s($.path),
- pir::const::STAT_FILESIZE) );
+ nqp::const::STAT_FILESIZE) );
}
method w() {
@@ -69,15 +69,15 @@ my role IO::FileTestable {
}
method modified() {
- nqp::p6box_i(nqp::stat(nqp::unbox_s($.path), pir::const::STAT_MODIFYTIME));
+ nqp::p6box_i(nqp::stat(nqp::unbox_s($.path), nqp::const::STAT_MODIFYTIME));
}
method accessed() {
- nqp::p6box_i(nqp::stat(nqp::unbox_s($.path), pir::const::STAT_ACCESSTIME));
+ nqp::p6box_i(nqp::stat(nqp::unbox_s($.path), nqp::const::STAT_ACCESSTIME));
}
method changed() {
- nqp::p6box_i(nqp::stat(nqp::unbox_s($.path), pir::const::STAT_CHANGETIME));
+ nqp::p6box_i(nqp::stat(nqp::unbox_s($.path), nqp::const::STAT_CHANGETIME));
}
}
View
2  tools/build/NQP_REVISION
@@ -1 +1 @@
-2013.03-8-gebd44e7
+2013.03-9-g445f1ac
Something went wrong with that request. Please try again.