mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-18 19:09:31 +00:00
db224b5b07
the README for details of changes.
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/*
|
|
* Copyright 1995-1998 by Devin Reade <gdr@trenco.gno.org>. For distribution
|
|
* information see the README file that is part of the manpack archive,
|
|
* or contact the author, above.
|
|
*
|
|
* $Id: globals.c,v 1.2 1998/03/29 07:15:58 gdr-ftp Exp $
|
|
*/
|
|
|
|
#include "man.h"
|
|
|
|
#ifndef NULL
|
|
#define NULL 0x0L
|
|
#endif
|
|
|
|
/*
|
|
* The compression suffixes and how to uncompress the files.
|
|
* If you use ".l" (that's "ell") as a suffix, you will break the
|
|
* algorithm for dereferencing aroff "links".
|
|
*/
|
|
|
|
compressionType compressArray[] = {
|
|
{ ".Z", "compress -cd" },
|
|
{ ".F", "freeze -cd" },
|
|
{ ".gz", "gzip -cd" },
|
|
{ NULL, NULL }
|
|
};
|
|
|
|
char linebuf[BUFFERSIZE];
|
|
char linebuf2[BUFFERSIZE];
|
|
char *manpath;
|
|
|
|
Section sections[] = {
|
|
{ "1", "1" },
|
|
{ "2", "2" },
|
|
{ "3", "3" },
|
|
{ "3f", "3f" },
|
|
{ "4", "4" },
|
|
{ "5", "5" },
|
|
{ "6", "6" },
|
|
{ "7", "7" },
|
|
{ "8", "8" },
|
|
{ "new", "n" }, /* the words "new", "local", "public", */
|
|
{ "local", "l" }, /* and "old" can be abbreviated on the */
|
|
{ "public", "p" }, /* command line with "n", "l", "p", and */
|
|
{ "old", "o" }, /* "o", respectively */
|
|
{ NULL, NULL } /* MUST be NULL-terminated! */
|
|
};
|