summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye2010-11-28 20:55:45 -0700
committerRob Savoye2010-11-28 20:55:45 -0700
commit90f6ec6f292a0eca9ce8d63cb56f87ba7f1efae8 (patch)
tree1c6496e185228ed576bc95e10a04bbf76e3b58c7
parentf1cfef2058284119c00770811e22a20d6e9d6f4b (diff)
downloadgnuradio-90f6ec6f292a0eca9ce8d63cb56f87ba7f1efae8.tar.gz
gnuradio-90f6ec6f292a0eca9ce8d63cb56f87ba7f1efae8.tar.bz2
gnuradio-90f6ec6f292a0eca9ce8d63cb56f87ba7f1efae8.zip
drop ifdef around exists test
-rw-r--r--gr-run-waveform/xyzzy-load.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/gr-run-waveform/xyzzy-load.c b/gr-run-waveform/xyzzy-load.c
index 810f5c51b..65e22c561 100644
--- a/gr-run-waveform/xyzzy-load.c
+++ b/gr-run-waveform/xyzzy-load.c
@@ -257,26 +257,6 @@ SCM_DEFINE (scm_xyzzy_search_path, "xyyzy-search-path", 2, 1, 0,
/* If the file exists at all, we should return it. If the
file is inaccessible, then that's an error. */
-#if 0
- const char *magic = "/-xyzzy-";
- if (strncmp(scm_to_locale_string(dir), magic, strlen(magic)) == 0) {
- /* Look in the fake filesystem for this file. If we find it, we prepend a
- magic number to the front so we can identify these special files later
- on when trying to read from them. */
- if (xyzzy_file_exists(buf.buf)) {
- result = scm_from_locale_string (buf.buf);
- goto end;
- }
- } else {
- if (stat (buf.buf, &mode) == 0
- && ! (mode.st_mode & S_IFDIR))
- {
- result = scm_from_locale_string (buf.buf);
- goto end;
- }
- }
-#else
-
fprintf(stderr, "TRACE %s: %d: \"%s\"\n", __FUNCTION__, __LINE__, buf.buf);
if (xyzzy_file_exists(buf.buf)
@@ -286,7 +266,6 @@ SCM_DEFINE (scm_xyzzy_search_path, "xyyzy-search-path", 2, 1, 0,
result = scm_from_locale_string (buf.buf);
goto end;
}
-#endif
}
if (!SCM_NULL_OR_NIL_P (exts))
@@ -308,4 +287,5 @@ void
scm_xyzzy_init (void)
{
scm_c_define_gsubr ("xyzzy-search-path", 2, 1, 0, (SCM (*)()) scm_xyzzy_search_path);
+ /* scm_make_port_type("gnuradio", xyzzy_fill_input, xyzzy_write); */
}