public Gee.ArrayList<string> filesForCompile(string in_path)
{
- var allfiles = this.filesAll();
+ var allfiles = this.filesAll(in_path);
var ret = new Gee.ArrayList<string>();
public Gee.ArrayList<string> filesForOpen(string in_path)
{
- var allfiles = this.filesAll();
+ var allfiles = this.filesAll(in_path);
var ret = new Gee.ArrayList<string>();
for (var i = 0; i < allfiles.size; i ++) {
- var fn = cfiles.get(i);
+ var fn = allfiles.get(i);
try {
if (Regex.match_simple("\\.vala\\.c$", fn)) {
}
if (Regex.match_simple("\\.vala$", fn)) {
- var vv = (new Regex("\\.vala$")).replace( fn, fn, 0, ".bjs");
+ var vv = (new Regex("\\.vala$")).replace( fn, fn.length, 0, ".bjs");
if (allfiles.index_of( vv) > -1) {
continue;
}
// not a c file...
if (Regex.match_simple("\\.c$", fn)) {
- var vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala");
+ var vv = (new Regex("\\.c$")).replace( fn, fn.length, 0, ".vala");
if (allfiles.index_of( vv) > -1) {
continue;
}