File:  [Coherent Logic Development] / freem / src / fma_globals.h
Revision 1.1: download - view: text, annotated - select for diffs
Sun Jan 19 02:04:04 2025 UTC (14 months, 1 week ago) by snw
Branches: MAIN
CVS tags: HEAD
Initial revision

    1: /*
    2:  *                            *
    3:  *                           * *
    4:  *                          *   *
    5:  *                     ***************
    6:  *                      * *       * *
    7:  *                       *  MUMPS  *
    8:  *                      * *       * *
    9:  *                     ***************
   10:  *                          *   *
   11:  *                           * *
   12:  *                            *
   13:  *
   14:  *   fma_globals.h
   15:  *    fmadm - globals
   16:  *
   17:  *  
   18:  *   Author: Serena Willis <jpw@coherent-logic.com>
   19:  *    Copyright (C) 1998 MUG Deutschland
   20:  *    Copyright (C) 2020 Coherent Logic Development LLC
   21:  *
   22:  *
   23:  *   This file is part of FreeM.
   24:  *
   25:  *   FreeM is free software: you can redistribute it and/or modify
   26:  *   it under the terms of the GNU Affero Public License as published by
   27:  *   the Free Software Foundation, either version 3 of the License, or
   28:  *   (at your option) any later version.
   29:  *
   30:  *   FreeM is distributed in the hope that it will be useful,
   31:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   32:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   33:  *   GNU Affero Public License for more details.
   34:  *
   35:  *   You should have received a copy of the GNU Affero Public License
   36:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   37:  *
   38:  **/
   39: 
   40: #if !defined(_FMA_GLOBALS_H)
   41: #define _FMA_GLOBALS_H
   42: 
   43: #define FALSE   0
   44: #define TRUE    1
   45: 
   46: #define POINT 28
   47: #define MINUS 26
   48: #define OMEGA 29
   49: #define g_EOL 30
   50: #define ALPHA 31
   51: 
   52: #define ROOT 0L
   53:     /* length of blocks. status bytes defined as offset to blocklength */
   54: #define BLOCKLEN 1024
   55: #define DATALIM (BLOCKLEN-11)
   56: #define LLPTR   (BLOCKLEN-10)
   57: #define NRBLK    LLPTR
   58: #define RLPTR   (BLOCKLEN- 6)
   59: #define FREE     RLPTR
   60: #define BTYP    (BLOCKLEN- 3)
   61: #define OFFS    (BLOCKLEN- 2)
   62: 
   63: /* length of blockpointers in bytes */
   64: #define PLEN     3
   65: 
   66: #define EMPTY    0
   67: #define FBLK     1
   68: #define POINTER  2
   69: #define BOTTOM   6
   70: #define DATA     8
   71: 
   72: #define PROTECT 30
   73: 
   74: #define LF      10
   75: #define CR      13
   76: 
   77: #define NUL      0
   78: #define DEL    127
   79: 
   80: /* maximum level (i.e. tree depth) */
   81: /* trace limit in globals module, i.e. trees wo'nt grow to the sky */
   82: #define MAXLEV 10
   83: /* error limit */
   84: #define ERRLIM 10000
   85: 
   86: 
   87: int fma_globals_list (int optc, char **opts);
   88: int fma_globals_remove (int optc, char **opts);
   89: int fma_globals_examine (int optc, char **opts);
   90: int fma_globals_verify (int optc, char **opts);
   91: 
   92: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>