Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"targets": [
{
"target_name": "libswipl",
"sources": [
"./src/libswipl.cc"
],
"include_dirs": [
"./src",
"$(SWI_PROLOG_HOME)"
],
"direct_dependent_settings": {
"linkflags": [
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE"
]
},
"libraries": [
"-lswipl"
]
}
]
}
6 changes: 3 additions & 3 deletions swipl.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

var swipl = require("./libswipl");
var swipl = require("./build/Release/swipl");

function Module(mod) {
this.module_name = mod;
Expand All @@ -31,7 +31,7 @@ Module.prototype = {
module : function(mod) {
return new Module(mod);
},

term_type : function(term) {
var r = swipl.term_type(term);
if(this.DEBUG) console.log("[libswipl] term_type: " + r + " " + term);
Expand All @@ -48,7 +48,7 @@ Module.prototype = {
var r = query.next_solution();
if (r) {
result = r;
if(this.DEBUG) console.log("[libswipl] call_predicate: "
if(this.DEBUG) console.log("[libswipl] call_predicate: "
+ JSON.stringify(r));
} else {
var ex = query.exception();
Expand Down
33 changes: 0 additions & 33 deletions wscript

This file was deleted.