Back to index

tetex-bin  3.0
expand.h
Go to the documentation of this file.
00001 /* expand.h: general expansion.
00002 
00003 Copyright (C) 1993, 94, 96 Karl Berry.
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Library General Public
00007 License as published by the Free Software Foundation; either
00008 version 2 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Library General Public License for more details.
00014 
00015 You should have received a copy of the GNU Library General Public
00016 License along with this library; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00018 
00019 #ifndef KPATHSEA_EXPAND_H
00020 #define KPATHSEA_EXPAND_H
00021 
00022 #include <kpathsea/c-proto.h>
00023 #include <kpathsea/types.h>
00024 
00025 /* Call kpse_var_expand and kpse_tilde_expand (in that order).  Result
00026    is always in fresh memory, even if no expansions were done.  */
00027 extern KPSEDLL string kpse_expand P1H(const_string s);
00028 
00029 /* Do brace expansion and call `kpse_expand' on each element of the
00030    result; return the final expansion (always in fresh memory, even if
00031    no expansions were done).  We don't call `kpse_expand_default'
00032    because there is a whole sequence of defaults to run through; see
00033    `kpse_init_format'.  */
00034 extern KPSEDLL string kpse_brace_expand P1H(const_string path);
00035 
00036 /* Do brace expansion and call `kpse_expand' on each argument of the
00037    result, then expand any `//' constructs.  The final expansion (always
00038    in fresh memory) is a path of all the existing directories that match
00039    the pattern. */
00040 extern KPSEDLL string kpse_path_expand P1H(const_string path);
00041 
00042 #endif /* not KPATHSEA_EXPAND_H */