scsh-users
[Top] [All Lists]

scsh in CVS won't build with gcc 3

To: scsh-bugs@zurich.csail.mit.edu
Subject: scsh in CVS won't build with gcc 3
From: "Brian D. Carlstrom" <bdc@zurich.csail.mit.edu>
Date: Wed, 1 Oct 2003 15:08:30 -0700
Reply-to: "Brian D. Carlstrom" <bdc@alum.mit.edu>
Apparently around gcc 3.1.x, the non-ANSI multi-line string constant
style was removed. I gathered that wrapping all the lines with "<line>"\
is the right solution, but other alternatives might exist. If this is
fine I can commit the fix to CVS.

-bri

zot:~/scsh/scsh $ cvs diff -c scsh/process_args.c 
bdc@cvs.scsh.sourceforge.net's password: 
Index: scsh/process_args.c
===================================================================
RCS file: /cvsroot/scsh/scsh/scsh/process_args.c,v
retrieving revision 1.4
diff -c -r1.4 process_args.c
*** scsh/process_args.c 5 May 2003 07:09:35 -0000       1.4
--- scsh/process_args.c 1 Oct 2003 22:04:44 -0000
***************
*** 5,48 ****
  #define streq(a,b) (strcmp((a),(b))==0)
  
  static void usage(void) {
!     printf("
! Usage: scsh [meta-arg] [vm-option+] [end-option scheme-args]
! 
! meta-arg: \\ <script-file-name>
! 
! switch:       -e <entry-point>        Specify top-level entry point.
!       -o <structure>          Open structure in current package.
!       -m <package>            Switch to package.
!       -n <new-package>        Switch to new package.
! 
! 
!       -lm <module-file-name>  Load module into config package.
!         -le <exec-file-name>    Load file into exec package.
!       -l  <file-name>         Load file into current package.
! 
!       -ll <module-file-name>  As in -lm, but search the library path list.
!       +lp  <dir>              Add <dir> to front of library path list.
!       lp+  <dir>              Add <dir> to end of library path list.
!       +lpe <dir>              +lp, with env var and ~user expansion.
!       lpe+ <dir>              lp+, with env var and ~user expansion.
!       +lpsd                   Add script-file's dir to front of path list.
!       lpsd+                   Add script-file's dir to end of path list.
!       -lp-clear               Clear library path list to ().
!       -lp-default             Reset library path list to system default.
! 
!       -ds                     Do script.
!       -dm                     Do script module.
!       -de                     Do script exec.
! 
!         -h <cells>              Set heap size.
!         -i <file>               Specify image.
!         -stacksize <cells>      Set stack size
! 
! end-option:   -s <script>     Specify script.
!               -sfd <num>      Script is on file descriptor <num>.
!               -c <exp>        Evaluate expression.
!               --              Interactive session.
! ");
  }
  
  static void bad_args(char* msg, char* arg) {
--- 5,48 ----
  #define streq(a,b) (strcmp((a),(b))==0)
  
  static void usage(void) {
!     printf(""\
! "Usage: scsh [meta-arg] [vm-option+] [end-option scheme-args]"\
! ""\
! "meta-arg: \\ <script-file-name>"\
! ""\
! "switch:      -e <entry-point>        Specify top-level entry point."\
! "     -o <structure>          Open structure in current package."\
! "     -m <package>            Switch to package."\
! "     -n <new-package>        Switch to new package."\
! ""\
! ""\
! "     -lm <module-file-name>  Load module into config package."\
! "        -le <exec-file-name>    Load file into exec package."\
! "     -l  <file-name>         Load file into current package."\
! ""\
! "     -ll <module-file-name>  As in -lm, but search the library path list."\
! "     +lp  <dir>              Add <dir> to front of library path list."\
! "     lp+  <dir>              Add <dir> to end of library path list."\
! "     +lpe <dir>              +lp, with env var and ~user expansion."\
! "     lpe+ <dir>              lp+, with env var and ~user expansion."\
! "     +lpsd                   Add script-file's dir to front of path list."\
! "     lpsd+                   Add script-file's dir to end of path list."\
! "     -lp-clear               Clear library path list to ()."\
! "     -lp-default             Reset library path list to system default."\
! ""\
! "     -ds                     Do script."\
! "     -dm                     Do script module."\
! "     -de                     Do script exec."\
! ""\
! "        -h <cells>              Set heap size."\
! "        -i <file>               Specify image."\
! "        -stacksize <cells>      Set stack size"\
! ""\
! "end-option:  -s <script>     Specify script."\
! "             -sfd <num>      Script is on file descriptor <num>."\
! "             -c <exp>        Evaluate expression."\
! "             --              Interactive session."\
! "");
  }
  
  static void bad_args(char* msg, char* arg) {
zot:~/scsh/scsh $ 

<Prev in Thread] Current Thread [Next in Thread>