Remove file ops for Mac.
This commit is contained in:
parent
91994bb4a9
commit
7efef778dc
|
@ -449,6 +449,8 @@ void Init_igraph(){
|
|||
|
||||
rb_define_method(cIGraph_sorting, "topological_sorting", cIGraph_topological_sorting, 1); /* in cIGraph_topological_sort.c */
|
||||
|
||||
#ifdef __APPLE__
|
||||
#else
|
||||
/* Functions for reading graphs from files */
|
||||
cIGraph_fileread = rb_define_module_under(cIGraph, "FileRead");
|
||||
rb_include_module(cIGraph, cIGraph_fileread);
|
||||
|
@ -473,6 +475,7 @@ void Init_igraph(){
|
|||
rb_define_method(cIGraph_filewrite, "write_graph_lgl", cIGraph_write_graph_lgl, 4); /* in cIGraph_file.c */
|
||||
rb_define_method(cIGraph_filewrite, "write_graph_dimacs", cIGraph_write_graph_dimacs, 4); /* in cIGraph_file.c */
|
||||
rb_define_method(cIGraph_filewrite, "write_graph_pajek", cIGraph_write_graph_pajek, 1); /* in cIGraph_file.c */
|
||||
#endif
|
||||
|
||||
/* Graph layout functions */
|
||||
cIGraph_layout = rb_define_module_under(cIGraph, "Layout");
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
#include "ruby.h"
|
||||
#include "cIGraph.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#else
|
||||
/* call-seq:
|
||||
* IGraph::FileRead.read_graph_edgelist(file,mode) -> IGraph
|
||||
*
|
||||
|
@ -842,3 +844,4 @@ VALUE cIGraph_write_graph_pajek(VALUE self, VALUE file){
|
|||
return e;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#Tests all test cases for rsruby
|
||||
require 'rbconfig'
|
||||
include Config
|
||||
|
||||
require 'test/unit'
|
||||
|
||||
|
@ -17,7 +19,11 @@ require 'tc_cores'
|
|||
require 'tc_dijkstra'
|
||||
require 'tc_directedness'
|
||||
require 'tc_error_handling'
|
||||
|
||||
unless CONFIG['host'] =~ /apple/
|
||||
require 'tc_file_read_write'
|
||||
end
|
||||
|
||||
require 'tc_generators_deterministic'
|
||||
require 'tc_generators_random'
|
||||
require 'tc_independent_vertex_sets'
|
||||
|
|
Loading…
Reference in New Issue