diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-21 14:35:34 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-21 14:35:34 +0000 |
| commit | 707972408b72421508a391ccc1e5066d04f7bd5f (patch) | |
| tree | dfe473dada5a56ee6d92ff8287cdd6f42e3ff407 /test/browser.cxx | |
| parent | 128526fc282b69b2abcd0c24e6d042c9dea8c862 (diff) | |
Get rid of CR's in some files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/browser.cxx')
| -rw-r--r-- | test/browser.cxx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/test/browser.cxx b/test/browser.cxx index 9f31d807d..b1e8589f0 100644 --- a/test/browser.cxx +++ b/test/browser.cxx @@ -1,5 +1,5 @@ // -// "$Id: browser.cxx,v 1.5.2.6.2.2 2001/12/01 01:54:30 matthiaswm Exp $" +// "$Id: browser.cxx,v 1.5.2.6.2.3 2001/12/21 14:35:33 easysw Exp $" // // Browser test program for the Fast Light Tool Kit (FLTK). // @@ -113,25 +113,25 @@ int main(int argc, char **argv) { browser->callback(b_cb); // browser->scrollbar_right(); //browser->has_scrollbar(Fl_Browser::BOTH_ALWAYS); - if (!browser->load(fname)) {
-#ifdef _MSC_VER
- // if 'browser' was started from the VisualC environment in Win32,
- // the current directory is set to the environment itself,
- // so we need to correct the browser file path
- int done = 1;
- if ( i == argc )
- {
- fname = "../test/browser.cxx";
- done = browser->load(fname);
- }
- if ( !done )
- {
- printf("Can't load %s, %s\n", fname, strerror(errno));
- exit(1);
- }
+ if (!browser->load(fname)) { +#ifdef _MSC_VER + // if 'browser' was started from the VisualC environment in Win32, + // the current directory is set to the environment itself, + // so we need to correct the browser file path + int done = 1; + if ( i == argc ) + { + fname = "../test/browser.cxx"; + done = browser->load(fname); + } + if ( !done ) + { + printf("Can't load %s, %s\n", fname, strerror(errno)); + exit(1); + } #else printf("Can't load %s, %s\n", fname, strerror(errno)); - exit(1);
+ exit(1); #endif } browser->position(0); @@ -157,6 +157,6 @@ int main(int argc, char **argv) { } // -// End of "$Id: browser.cxx,v 1.5.2.6.2.2 2001/12/01 01:54:30 matthiaswm Exp $". +// End of "$Id: browser.cxx,v 1.5.2.6.2.3 2001/12/21 14:35:33 easysw Exp $". // |
