Browse Source

Remove file ops for Mac.

tags/0.9.1
alexgutteridge 18 years ago
parent
commit
7efef778dc
3 changed files with 13 additions and 1 deletions
  1. +3
    -0
      ext/cIGraph.c
  2. +3
    -0
      ext/cIGraph_file.c
  3. +7
    -1
      test/test_all.rb

+ 3
- 0
ext/cIGraph.c View File

@@ -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");


+ 3
- 0
ext/cIGraph_file.c View File

@@ -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

+ 7
- 1
test/test_all.rb View File

@@ -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'
require 'tc_file_read_write'

unless CONFIG['host'] =~ /apple/
require 'tc_file_read_write'
end

require 'tc_generators_deterministic'
require 'tc_generators_random'
require 'tc_independent_vertex_sets'


Loading…
Cancel
Save