[canviz] r353 committed - Change "#include" to "//#include" so that it will be ignored if you're...

0 views
Skip to first unread message

can...@googlecode.com

unread,
Jan 31, 2012, 4:32:46 PM1/31/12
to canviz-...@googlegroups.com
Revision: 353
Author: ryandesign.com
Date: Tue Jan 31 13:29:54 2012
Log: Change "#include" to "//#include" so that it will be ignored if
you're including individual files directly

http://code.google.com/p/canviz/source/detail?r=353

Modified:
/path/trunk/Jakefile
/path/trunk/src/Bezier.js
/path/trunk/src/Ellipse.js
/path/trunk/src/Path.js
/path/trunk/src/Polygon.js
/path/trunk/src/Rect.js
/path/trunk/src/all.js

=======================================
--- /path/trunk/Jakefile Tue Jan 31 13:27:42 2012
+++ /path/trunk/Jakefile Tue Jan 31 13:29:54 2012
@@ -19,7 +19,7 @@
includeFiles.push(file);
var lines = fs.readFileSync(file, 'utf8').split("\n");
for (var i = 0; i < lines.length; ++i) {
- var matches =
/^\s*#include\s*(?:'([^']+)'|"([^"]+)")\s*$/.exec(lines[i]);
+ var matches =
/^\s*\/\/#include\s*(?:'([^']+)'|"([^"]+)")\s*$/.exec(lines[i]);
if (matches) {
var includeFile = path.join(path.dirname(file), matches[1]);
if (includeFiles.indexOf(includeFile) === -1) {
=======================================
--- /path/trunk/src/Bezier.js Sun Jan 29 07:04:30 2012
+++ /path/trunk/src/Bezier.js Tue Jan 31 13:29:54 2012
@@ -1,5 +1,5 @@
-#include 'Point.js'
-#include 'Rect.js'
+//#include 'Point.js'
+//#include 'Rect.js'

function Bezier(points) {
this.points = points;
=======================================
--- /path/trunk/src/Ellipse.js Sun Jan 29 07:04:30 2012
+++ /path/trunk/src/Ellipse.js Tue Jan 31 13:29:54 2012
@@ -1,5 +1,5 @@
-#include 'Path.js'
-#include 'Point.js'
+//#include 'Path.js'
+//#include 'Point.js'

function Ellipse(cx, cy, rx, ry, options) {
this.cx = cx; // center x
=======================================
--- /path/trunk/src/Path.js Sun Jan 29 07:04:30 2012
+++ /path/trunk/src/Path.js Tue Jan 31 13:29:54 2012
@@ -1,5 +1,5 @@
-#include 'Bezier.js'
-#include 'Rect.js'
+//#include 'Bezier.js'
+//#include 'Rect.js'

function Path(segments, options) {
this.segments = segments || [];
=======================================
--- /path/trunk/src/Polygon.js Sun Jan 29 07:04:30 2012
+++ /path/trunk/src/Polygon.js Tue Jan 31 13:29:54 2012
@@ -1,4 +1,4 @@
-#include 'Path.js'
+//#include 'Path.js'

function Polygon(points, options) {
this.points = points || [];
=======================================
--- /path/trunk/src/Rect.js Sun Jan 29 07:04:30 2012
+++ /path/trunk/src/Rect.js Tue Jan 31 13:29:54 2012
@@ -1,5 +1,5 @@
-#include 'Point.js'
-#include 'Polygon.js'
+//#include 'Point.js'
+//#include 'Polygon.js'

function Rect(l, t, r, b, options) {
this.l = l;
=======================================
--- /path/trunk/src/all.js Sun Jan 29 07:04:30 2012
+++ /path/trunk/src/all.js Tue Jan 31 13:29:54 2012
@@ -1,6 +1,6 @@
-#include 'Bezier.js'
-#include 'Ellipse.js'
-#include 'Path.js'
-#include 'Point.js'
-#include 'Polygon.js'
-#include 'Rect.js'
+//#include 'Bezier.js'
+//#include 'Ellipse.js'
+//#include 'Path.js'
+//#include 'Point.js'
+//#include 'Polygon.js'
+//#include 'Rect.js'

Reply all
Reply to author
Forward
0 new messages