fix problems with the embedded command-line length (merge to 4.2.3)
svn: r16962
This commit is contained in:
parent
8a5c0e854a
commit
178d0f8e34
|
@ -1008,10 +1008,12 @@
|
|||
mac-mred-collects-path-adjust
|
||||
values)
|
||||
collects-path)))
|
||||
(define word-size (if (fixnum? (expt 2 32)) 8 4))
|
||||
(unless (or long-cmdline?
|
||||
((apply + (length cmdline) (map (lambda (s)
|
||||
(bytes-length (string->bytes/utf-8 s)))
|
||||
cmdline)) . < . 50))
|
||||
((apply +
|
||||
(map (lambda (s)
|
||||
(+ word-size (bytes-length (string->bytes/utf-8 s))))
|
||||
cmdline)) . < . 60))
|
||||
(error 'create-embedding-executable "command line too long"))
|
||||
(check-collects-path 'create-embedding-executable collects-path collects-path-bytes)
|
||||
(let ([exe (find-exe mred? variant)])
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
|
||||
#define SDESC "Set! works on undefined identifiers"
|
||||
|
||||
char *cmdline_exe_hack = "[Replace me for EXE hack ]";
|
||||
char *cmdline_exe_hack =
|
||||
("[Replace me for EXE hack "
|
||||
" ]");
|
||||
|
||||
#ifdef MZ_PRECISE_GC
|
||||
# define GC_PRECISION_TYPE "3"
|
||||
|
|
Loading…
Reference in New Issue
Block a user