FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

wasn't sending pos arg for puts() · objcode/node@8a8e9df · GitHub

Commit 8a8e9df

Browse files
committed
wasn't sending pos arg for puts()
1 parent a4593e3 commit 8a8e9df

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎configure‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ all-progress:
8080
8181
install:
8282
if test -n "\$(DESTDIR)"; then \\
83-
$WAF install --yes --destdir="\$(DESTDIR)" ; \\
83+
$WAF install --destdir="\$(DESTDIR)" ; \\
8484
else \\
85-
$WAF install --yes ; \\
85+
$WAF install ; \\
8686
fi;
8787
8888
uninstall:

‎src/file.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ File.cat = function (path, callback) {
4040
}
4141

4242
File.prototype.puts = function (data, callback) {
43-
this.write(data + "\n", callback);
43+
this.write(data + "\n", -1, callback);
44+
};
45+
46+
File.prototype.print = function (data, callback) {
47+
this.write(data, -1, callback);
4448
};
4549

4650
File.prototype.open = function (path, mode, callback) {

‎src/main.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ node.path = new function () {
126126
function finish() {
127127
//node.debug("finish 1 load <" + filename + ">");
128128
if (scaffold.onLoad instanceof Function) {
129-
//node.debug("foo bar <" + filename + ">");
129+
//node.debug("calling onLoad for <" + filename + ">");
130130
scaffold.onLoad();
131131
}
132132
//node.debug("finish 2 load <" + filename + ">");

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL