Skip to content
Browse files

support node.js 0.6.11 and remove require.paths

  • Loading branch information...
1 parent 1e9bcb7 commit 4504bda9ae6598bb0c1d10c357e90e0efc488af9 @humasect committed Feb 22, 2012
Showing with 7 additions and 7 deletions.
  1. +2 −2 lib/repl.js
  2. +1 −1 lib/sibilant.js
  3. +1 −1 misc/sibilant-mode.el
  4. +2 −2 src/repl.sibilant
  5. +1 −1 src/sibilant.sibilant
View
4 lib/repl.js
@@ -5,7 +5,7 @@ var input = process.openStdin(),
sibilant = require("./sibilant"),
context = undefined,
cmdBuffer = "",
- sys = require("sys");
+ util = require("util");
var createContext = (function() {
var context = vm.createContext();;
(module)["filename"] = (process.cwd() + "/exec");;
@@ -51,7 +51,7 @@ readline.on("line", (function(cmd) {
(readline.history)[0] = cmdBuffer;;
(function() {
if (typeof(result) !== 'undefined') {
- return output.write(("result: " + sys.inspect(result) + "\n"));
+ return output.write(("result: " + util.inspect(result) + "\n"));
};
})();
(context)["_"] = result;;
View
2 lib/sibilant.js
@@ -672,5 +672,5 @@ macros.include = (function(file) {
});
//(require.paths.unshift (concat **dirname "/../include"))
-sibilant.include("./include/macros");
+sibilant.include((process.env.NODE_PATH + "/sibilant/include/macros"));
View
2 misc/sibilant-mode.el
@@ -123,7 +123,7 @@
(thunk 0))
;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.sibl\\(?:ilant\\)?$" . sibilant-mode))
+(add-to-list 'auto-mode-alist '("\\.sib\\(?:ilant\\)?$" . sibilant-mode))
(provide 'sibilant-mode)
;;; sibilant-mode.el ends here
View
4 src/repl.sibilant
@@ -5,7 +5,7 @@
sibilant (require "./sibilant")
context undefined
cmd-buffer ""
- sys (require 'sys))
+ util (require 'util))
(defun create-context ()
(defvar context (vm.create-context))
@@ -40,7 +40,7 @@
(set readline.history 0 cmd-buffer)
(when (defined? result)
(output.write (concat "result: "
- (sys.inspect result) "\n")))
+ (util.inspect result) "\n")))
(set context "_" result)
(setf cmd-buffer ""))
(progn
View
2 src/sibilant.sibilant
@@ -77,4 +77,4 @@
;;(require.paths.unshift (concat **dirname "/../include"))
-(sibilant.include "./include/macros")
+(sibilant.include (concat process.env.NODE*PATH "/sibilant/include/macros"))

0 comments on commit 4504bda

Please sign in to comment.
Something went wrong with that request. Please try again.