From 327408c12fc852ed9d119b4925b69c0c1285118d Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 26 Apr 2010 15:33:58 -0600 Subject: [PATCH] drop suffix from pref-file name --- collects/racket/nest.rkt | 28 ---------------------------- src/gracket/wxs/wxscheme.cxx | 12 ++++++------ src/racket/src/file.c | 8 ++++---- 3 files changed, 10 insertions(+), 38 deletions(-) delete mode 100644 collects/racket/nest.rkt diff --git a/collects/racket/nest.rkt b/collects/racket/nest.rkt deleted file mode 100644 index b17e2b3da4..0000000000 --- a/collects/racket/nest.rkt +++ /dev/null @@ -1,28 +0,0 @@ -#lang scheme/base - -(provide nest) - -;; A form that makes it easy to combine many "right-drifting" nested -;; expressions into a single one, sort of like a generalized version of the `*' -;; from `let*' and similar forms. -(define-syntax nest - (syntax-rules () - [(nest () body0 body ...) - (let () body0 body ...)] - ;; this allows putting definitions in the body - [(nest ([form forms ...]) body0 body ...) - (form forms ... (let () body0 body ...))] - [(nest ([form forms ...] . more) body0 body ...) - (form forms ... (nest more body0 body ...))])) - -;; using this instead will allow splicing body expressions in the last form -;; whatever it happens to be, which can be (ab)used in strange ways -#; -(define-syntax nest - (syntax-rules () - [(nest () body ...) - (begin body ...)] - [(nest ([form forms ...]) body ...) - (form forms ... body ...)] - [(nest ([form forms ...] . more) body ...) - (form forms ... (nest more body ...))])) diff --git a/src/gracket/wxs/wxscheme.cxx b/src/gracket/wxs/wxscheme.cxx index b47a695ac7..9cfea49053 100644 --- a/src/gracket/wxs/wxscheme.cxx +++ b/src/gracket/wxs/wxscheme.cxx @@ -2541,7 +2541,7 @@ Scheme_Object *wxSchemeFindDirectory(int argc, Scheme_Object **argv) if (which == id_init_file) return append_path(home, - scheme_make_path("\\gracketrc.rkt" + ends_in_slash)); + scheme_make_path("\\gracketrc" + ends_in_slash)); if (which == id_setup_file) return append_path(home, scheme_make_path("\\gracket.ini" + ends_in_slash)); @@ -2584,7 +2584,7 @@ Scheme_Object *wxSchemeFindDirectory(int argc, Scheme_Object **argv) if (which == id_init_file) return append_path(home, - scheme_make_path(":gracketrc.rkt" + ends_in_colon)); + scheme_make_path(":gracketrc" + ends_in_colon)); if (which == id_setup_file) return append_path(home, scheme_make_path(":gracket.fnt" + ends_in_colon)); @@ -2778,9 +2778,9 @@ int wxGetPreference(const char *name, char *res, long len) if (!ends_in_slash) s[l++] = '/'; # ifdef wx_mac - memcpy(s + l, "org.racket-lang.prefs.rkt", 24); + memcpy(s + l, "org.racket-lang.prefs", 24); # else - memcpy(s + l, "racket-prefs.rkt", 13); + memcpy(s + l, "racket-prefs", 13); # endif #endif @@ -2796,7 +2796,7 @@ int wxGetPreference(const char *name, char *res, long len) memcpy(s, home, l); if (!ends_in_slash) s[l++] = '\\'; - memcpy(s + l, "racket-prefs.rkt", 13); + memcpy(s + l, "racket-prefs", 13); #endif /*************** Mac OS Classic ***************/ @@ -2825,7 +2825,7 @@ int wxGetPreference(const char *name, char *res, long len) memcpy(s, home, l); if (!ends_in_slash) s[l++] = ':'; - memcpy(s + l, "org.racket-lang.prefs.rkt", 24); + memcpy(s + l, "org.racket-lang.prefs", 24); } #endif diff --git a/src/racket/src/file.c b/src/racket/src/file.c index f28e8f3b02..704897f40c 100644 --- a/src/racket/src/file.c +++ b/src/racket/src/file.c @@ -5839,9 +5839,9 @@ find_system_path(int argc, Scheme_Object **argv) return append_path(home, scheme_make_path("/.racketrc" + ends_in_slash)); if (which == id_pref_file) { #if defined(OS_X) && !defined(XONX) - return append_path(home, scheme_make_path("/org.racket-lang.prefs.rkt" + ends_in_slash)); + return append_path(home, scheme_make_path("/org.racket-lang.prefs" + ends_in_slash)); #else - return append_path(home, scheme_make_path("/racket-prefs.rkt" + ends_in_slash)); + return append_path(home, scheme_make_path("/racket-prefs" + ends_in_slash)); #endif } } @@ -5982,9 +5982,9 @@ find_system_path(int argc, Scheme_Object **argv) } if (which == id_init_file) - return append_path(home, scheme_make_path("\\racketrc.rkt" + ends_in_slash)); + return append_path(home, scheme_make_path("\\racketrc" + ends_in_slash)); if (which == id_pref_file) - return append_path(home, scheme_make_path("\\racket-prefs.rkt" + ends_in_slash)); + return append_path(home, scheme_make_path("\\racket-prefs" + ends_in_slash)); return home; } #endif