1114402Sru// -*- C++ -*- 2114402Sru/* Copyright (C) 1989, 1990, 1991, 1992, 2000 Free Software Foundation, Inc. 3114402Sru Written by James Clark (jjc@jclark.com) 4114402Sru 5114402SruThis file is part of groff. 6114402Sru 7114402Srugroff is free software; you can redistribute it and/or modify it under 8114402Sruthe terms of the GNU General Public License as published by the Free 9114402SruSoftware Foundation; either version 2, or (at your option) any later 10114402Sruversion. 11114402Sru 12114402Srugroff is distributed in the hope that it will be useful, but WITHOUT ANY 13114402SruWARRANTY; without even the implied warranty of MERCHANTABILITY or 14114402SruFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15114402Srufor more details. 16114402Sru 17114402SruYou should have received a copy of the GNU General Public License along 18114402Sruwith groff; see the file COPYING. If not, write to the Free Software 19151497SruFoundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */ 20114402Sru 21114402Sru#include "lib.h" 22114402Sru#include "searchpath.h" 23114402Sru#include "macropath.h" 24114402Sru#include "defs.h" 25114402Sru 26114402Sru#define MACROPATH_ENVVAR "GROFF_TMAC_PATH" 27114402Sru 28114402Srusearch_path macro_path(MACROPATH_ENVVAR, MACROPATH, 1, 1); 29114402Srusearch_path safer_macro_path(MACROPATH_ENVVAR, MACROPATH, 1, 0); 30114402Srusearch_path config_macro_path(MACROPATH_ENVVAR, MACROPATH, 0, 0); 31