Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlot-patches
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From:
Subject: camlot-patches
  Here are some useful patches to the first release of Camlot v5:

*** Include/config.sparc	Wed Jun 23 14:13:13 1993
--- Include/config.sparc~	Wed Jun 23 14:13:12 1993
***************
*** 44,50 ****
  #define DATAMAX struct rlimit rl; \
                  char* datamax; \
  		getrlimit(RLIMIT_DATA, &rl); \
!                 datamax = (char*)&etext + rl.rlim_cur;
  
  /* comment out if stack grows down */
  /*#define STACKGROWSUP*/
--- 44,50 ----
  #define DATAMAX struct rlimit rl; \
                  char* datamax; \
  		getrlimit(RLIMIT_DATA, &rl); \
!                 datamax = etext + rl.rlim_cur;
  
  /* comment out if stack grows down */
  /*#define STACKGROWSUP*/


*** Include/config.dec3100	Fri Jun 18 12:28:52 1993
--- Include/config.dec3100~	Wed Jun 16 15:23:26 1993
***************
*** 42,50 ****
  /* maximum end of data segment */
  extern void *__data_start;
  #define DATAMAX struct rlimit rl; \
-                 char* datamax; \
                  getrlimit(RLIMIT_DATA, &rl); \
!                 datamax = (char*)0x10000000 + rl.rlim_cur;
  
  /* comment out if stack grows down */
  /*#define STACKGROWSUP*/
--- 42,49 ----
  /* maximum end of data segment */
  extern void *__data_start;
  #define DATAMAX struct rlimit rl; \
                  getrlimit(RLIMIT_DATA, &rl); \
!                 char* datamax = (char*)0x10000000 + rl.rlim_cur;
  
  /* comment out if stack grows down */
  /*#define STACKGROWSUP*/

*** Linker/link.ml	Fri Jun 18 14:55:59 1993
--- Linker/link.ml~	Fri Jun 18 14:55:59 1993
***************
*** 21,27 ****
  ;;
  
  let link lib objects exec =
!     let z2k2_main = path_tmp ^ "#camlot_" ^ (basename exec) in
      let main_k2 = open_out (z2k2_main ^ ".k2")
      and modules = assoc lib default_used_implementations in
      let out s = output_string main_k2 s
--- 21,27 ----
  ;;
  
  let link lib objects exec =
!     let z2k2_main = path_tmp ^ "#camlot_" ^ exec in
      let main_k2 = open_out (z2k2_main ^ ".k2")
      and modules = assoc lib default_used_implementations in
      let out s = output_string main_k2 s

*** GC/gc.c	Wed Jun 23 14:16:25 1993
--- GC/gc.c~	Wed Jun 23 14:16:24 1993
***************
*** 1003,1009 ****
  #ifdef STACKGROWSUP    
       for(p = stack_top; p >= stack_bottom; p--)
  #else
!      for(p = stack_top; p <= stack_bottom; p++)
  #endif
         {
             CheckStackReference((void *)p);
--- 1003,1009 ----
  #ifdef STACKGROWSUP    
       for(p = stack_top; p >= stack_bottom; p--)
  #else
!      for(p = stack_bottom; p <= stack_top; p++)
  #endif
         {
             CheckStackReference((void *)p);


		Re'gis Cridlig