hgomez      01/10/26 06:55:53

  Modified:    jk/native/common jk_global.h
  Log:
  First step in mod_jk port to EBCDIC, for BS/2000, OS/390
  and for sure AS/400....
  
  Revision  Changes    Path
  1.10      +30 -1     jakarta-tomcat-connectors/jk/native/common/jk_global.h
  
  Index: jk_global.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_global.h,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- jk_global.h       2001/10/01 21:39:48     1.9
  +++ jk_global.h       2001/10/26 13:55:53     1.10
  @@ -59,7 +59,7 @@
    * Description: Global definitions and include files that should exist     *
    *              anywhere                                                   *
    * Author:      Gal Shachor <[EMAIL PROTECTED]>                           *
  - * Version:     $Revision: 1.9 $                                               *
  + * Version:     $Revision: 1.10 $                                               *
    ***************************************************************************/
   
   #ifndef JK_GLOBAL_H
  @@ -161,6 +161,35 @@
   #define JK_OPT_FWDURIDEFAULT        JK_OPT_FWDURICOMPAT
   
   #define JK_OPT_FWDKEYSIZE           0x0004
  +
  +/* Check for EBCDIC systems */
  +
  +/* Check for Apache 2.0 running on an EBCDIC system */
  +#if APR_CHARSET_EBCDIC 
  +
  +#define USE_CHARSET_EBCDIC
  +#define jk_xlate_to_ascii(b, l) ap_xlate_proto_to_ascii(b, l)
  +#define jk_xlate_from_ascii(b, l) ap_xlate_proto_from_ascii(b, l)
  +
  +#else   /* APR_CHARSET_EBCDIC */
  +
  +/* Check for Apache 1.3 running on an EBCDIC system */
  +#ifdef CHARSET_EBCDIC
  +
  +#define USE_CHARSET_EBCDIC
  +#define jk_xlate_to_ascii(b, l) ebcdic2ascii(b, b, l)
  +#define jk_xlate_from_ascii(b, l) ascii2ebcdic(b, b, l)
  +
  +#else /* CHARSET_EBCDIC */
  +
  +/* We're in on an ASCII system
  +
  +#define jk_xlate_to_ascii(b, l)             /* NOOP */
  +#define jk_xlate_from_ascii(b, l)           /* NOOP */
  +
  +#endif /* CHARSET_EBCDIC */
  +
  +#endif /* APR_CHARSET_EBCDIC */
   
   #ifdef __cplusplus
   }
  
  
  


Reply via email to