projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dfb4d58
)
src/Project/Gtk.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 26 May 2015 05:46:07 +0000
(13:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 26 May 2015 05:46:07 +0000
(13:46 +0800)
src/Project/Gtk.vala
patch
|
blob
|
history
diff --git
a/src/Project/Gtk.vala
b/src/Project/Gtk.vala
index
13e414a
..
0c29891
100644
(file)
--- a/
src/Project/Gtk.vala
+++ b/
src/Project/Gtk.vala
@@
-263,39
+263,43
@@
namespace Project {
for (var i = 0; i < allfiles.size; i ++) {
var fn = cfiles.get(i);
for (var i = 0; i < allfiles.size; i ++) {
var fn = cfiles.get(i);
- if (Regex.match_simple("\\.vala\\.c$", fn)) {
- continue;
- }
- if (Regex.match_simple("\\.bjs\\.c$", fn)) {
- continue;
- }
-
- if (Regex.match_simple("\\.vala$", fn)) {
- ret.add( fn);
- continue;
- }
- // vala.c -- ignore..
-
- // not a c file...
- if (!Regex.match_simple("\\.c$", fn)) {
- continue;
- }
-
- // is the c file the same as a vala file...
-
- var vv = fn;
try {
try {
+
+ if (Regex.match_simple("\\.vala\\.c$", fn)) {
+ continue;
+ }
+
+ if (Regex.match_simple("\\.bjs$", fn)) {
+ continue;
+ }
+
+ if (Regex.match_simple("\\.vala$", fn)) {
+ ret.add( fn);
+ continue;
+ }
+ // vala.c -- ignore..
+
+ // not a c file...
+ if (!Regex.match_simple("\\.c$", fn)) {
+ continue;
+ }
+
+ // is the c file the same as a vala file...
+
+ var vv = fn;
+
vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala");
vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala");
- } catch (Error e) {
- continue;
- }
+
- if (ret.index_of( vv) > -1) {
+ if (ret.index_of( vv) > -1) {
+ continue;
+ }
+ // add the 'c' file..
+ ret.add(fn);
+ } catch (Error e) {
continue;
}
continue;
}
- // add the 'c' file..
- ret.add(fn);
}
// sort.
ret.sort((fa,fb) => {
}
// sort.
ret.sort((fa,fb) => {