home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume36 / translit / part10 / paths.h < prev   
Encoding:
C/C++ Source or Header  |  1993-03-22  |  2.9 KB  |  73 lines

  1. /* Include file for translit.c program
  2.  * Copyright (c) 1993 Jan Labanowski and JKL Enterprises, Inc.
  3.  *   Jan Labanowski, jkl@osc.edu, JKL@OHSTPY.BITNET Jan. 5, 1993
  4.  * You must modify this file before you try to compile the program
  5.  */
  6.  
  7.  
  8. /* these are "standard" include files. Some may have different names on
  9.    your system. If program complains here, you need to check it */
  10.  
  11. #include <stdio.h>
  12. #include <string.h>     /* some older machines have <strings.h> !!! */
  13. #include <stdlib.h>     /* some machines use <unix.h> here or some/no-thing */
  14. #include <ctype.h>
  15.  
  16.  
  17. /* These are some defines which relate to the system and compiler
  18.  * you are running:
  19.  *     1 (one) means YES, TRUE,
  20.  *     0 (zero) means NO, FALSE
  21.  */
  22. #define GETOPT  1   /* does your C compiler have getopt routine? Most compilers
  23.                        do, but for example VAX C does not. Some PCs do not,
  24.                        UN*X usually has.  Enter 1 if you have
  25.                        getopt and 0 if you do not. */
  26.  
  27. #define GETENV  1   /* does your C compiler and system have getenv routine?
  28.                        To my knowledge all UN*X, VAX-VMS and MS-DOS have.
  29.                        Enter 1 if you have it, and 0 if you do not. If you do
  30.                        not have GETENV, you do not have environment. */
  31.  
  32. #define STRCHR  1   /* the routine finding a position of a character in 
  33.                        a string is called strchr. If you do not have this
  34.                        routine, say 0, if you have it, say 1 */
  35.  
  36. #define STRCSPN 1   /* some compiler libaries do not have the strcspn routine.
  37.                        If you have it enter 1, if you do not, enter 0 */
  38.  
  39. #define STATICFUN   1   /* if your compiler supports declarations of 
  40.                            static functions:
  41.                                 static int boo(foo)
  42.                            enter 1. If it chokes on it, change to 0.  */
  43.  
  44.  
  45. /* if transliteration table file is not found in the current directory
  46.  * program looks for this file in directory pointed by PATH. For UNIX
  47.  * it might be something like "/usr/local/lib/", and for MS-DOS it maybe
  48.  * something like: "C:\\INCLUDE\\". Remember to put a slash(backslash)
  49.  * after last subdirectory name. For DOS remember that backslashes have
  50.  * to be quoted, i.e., you enter the backslash twice. I did not check it
  51.  * for the VAX.
  52.  */
  53.                  /* search path for transliteration rules files */
  54. #define TPATH    "/usr/local/lib/translit/"
  55.  
  56. /* DECONVNAME --- default file name for conversion table (no path, just
  57.  * file name.
  58.  */
  59. #define DEFCONVNAME "koi8-tex.rus"
  60.  
  61.  
  62. /* if environment variables TRANSP and TRANSF are defined, the
  63.    TPATH and DECONVNAME are taken from them, not from the above defs.
  64.    If these environment variables are booked you need to put here
  65.    something else.  */
  66.  
  67. /* name of envoronment variable with TPATH */
  68. #define TRANSPATH "TRANSP"
  69.  
  70. /* name of environment variable with DEFCONVNAME */
  71. #define DEFNAME   "TRANSF"
  72.  
  73.