home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / forth / pfe-0.000 / pfe-0 / pfe-0.9.13 / src / help.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-17  |  2.0 KB  |  70 lines

  1. /*
  2.  * This file is part of the portable Forth environment written in ANSI C.
  3.  * Copyright (C) 1995  Dirk Uwe Zoller
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13.  * See the GNU Library General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Library General Public
  16.  * License along with this library; if not, write to the Free
  17.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  * This file is version 0.9.13 of 17-July-95
  20.  * Check for the latest version of this package via anonymous ftp at
  21.  *    roxi.rz.fht-mannheim.de:/pub/languages/forth/pfe-VERSION.tar.gz
  22.  * or    sunsite.unc.edu:/pub/languages/forth/pfe-VERSION.tar.gz
  23.  * or    ftp.cygnus.com:/pub/forth/pfe-VERSION.tar.gz
  24.  *
  25.  * Please direct any comments via internet to
  26.  *    duz@roxi.rz.fht-mannheim.de.
  27.  * Thank You.
  28.  */
  29. /*
  30.  * help.h --- declarations for FORTH online help utilities.
  31.  * (duz 13Sep94)
  32.  */
  33.  
  34. #ifndef __HELP_H
  35. #define __HELP_H
  36.  
  37. #include <limits.h>
  38.  
  39.  
  40. typedef struct Hheader HHeader;    /* index file header */
  41. typedef struct Hrecord HRecord;    /* record in index file */
  42.  
  43. struct Hheader
  44. {
  45.   char magic [4];        /* magic number */
  46.   int nfiles;            /* how many help files are gathered */
  47.   int nitems;            /* total items in this index */
  48. };
  49.  
  50. struct Hrecord
  51. {
  52.   char name [32];        /* name of the definition */
  53.   int fidx;            /* index of file, see head */
  54.   long pos;            /* position in file */
  55. };
  56.  
  57. extern char *progname;
  58.  
  59. void fatal (const char *msg, ...);
  60. void sys_error (void);
  61. void file_errorz (const char *fn);
  62. void read_help_index (const char *pn, const char *fn);
  63. void print_help (const char *name);
  64.  
  65. #if defined STANDALONE
  66. void *xalloc (size_t size);
  67. #endif
  68.  
  69. #endif
  70.