aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/gluegen/pcpp/PCPP.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-07-22 18:29:56 +0000
committerKenneth Russel <[email protected]>2005-07-22 18:29:56 +0000
commitebd2c94e33c643ad6102e76f22d1624e9b986737 (patch)
tree05e44db841b94ce9dd9eebcafa124f8ad9b840a9 /src/net/java/games/gluegen/pcpp/PCPP.java
parentb277014b8c7bec589d8b085bd6a7638c13ffa507 (diff)
Added new IgnoreExtension directive to the GLEmitter which allows a
block of functions and #defines associated with a particular extension to be ignored in one shot. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@335 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/gluegen/pcpp/PCPP.java')
-rw-r--r--src/net/java/games/gluegen/pcpp/PCPP.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/net/java/games/gluegen/pcpp/PCPP.java b/src/net/java/games/gluegen/pcpp/PCPP.java
index 0990bb155..51fa8f9bf 100644
--- a/src/net/java/games/gluegen/pcpp/PCPP.java
+++ b/src/net/java/games/gluegen/pcpp/PCPP.java
@@ -125,6 +125,19 @@ public class PCPP {
}
}
+ public String findFile(String filename) {
+ String sep = File.separator;
+ for (Iterator iter = includePaths.iterator(); iter.hasNext(); ) {
+ String inclPath = (String) iter.next();
+ String fullPath = inclPath + sep + filename;
+ File file = new File(fullPath);
+ if (file.exists()) {
+ return fullPath;
+ }
+ }
+ return null;
+ }
+
//----------------------------------------------------------------------
// Internals only below this point
//
@@ -748,19 +761,6 @@ public class PCPP {
}
}
- private String findFile(String filename) {
- String sep = System.getProperty("file.separator");
- for (Iterator iter = includePaths.iterator(); iter.hasNext(); ) {
- String inclPath = (String) iter.next();
- String fullPath = inclPath + sep + filename;
- File file = new File(fullPath);
- if (file.exists()) {
- return fullPath;
- }
- }
- return null;
- }
-
////////////
// Output //
////////////