Debian Codegraph @

src/function.h

raw symbols SCIP
1 /* $Id: function.h,v 1.10 2007/01/04 12:03:20 rockyb Exp $
2 Copyright (C) 1988, 1989, 1991-1997, 1999, 2002, 2004, 2005
3 Free Software Foundation, Inc.
4 Copyright (C) 2005 R. Bernstein <[email protected]>
5 This file is part of GNU Make (remake variant).
6
7 GNU Make is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU Make is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Make; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 /** \file function.h
23 *
24 * \brief Builtin function expansion for GNU Make.
25 */
26
27 #ifndef FUNCTION_H
28 #define FUNCTION_H
29
30 #include "make.h"
31
32 /*!
33 Replace all carriage returns and linefeeds with spaces.
34 Carriage return is replaced on UNIX as well. Is this desirable?
35 */
36 extern void fold_newlines (char *buffer, unsigned int *length);
37
38 extern void hash_init_function_table (void);
39
40 extern void hash_free_function_table (void);
41
42 /*! Set begpp to point to the first non-whitespace character of the string,
43 and endpp to point to the last non-whitespace character of the string.
44 If the string is empty or contains nothing but whitespace, endpp will be
45 begpp-1.
46 */
47 extern char *strip_whitespace (const char **begpp, const char **endpp);
48
49 /*!
50 $(eval *makefile-string*)
51
52 Always resolves to the empty string.
53
54 Treat the arguments as a segment of makefile, and parse them.
55 */
56 extern char *func_eval (char *o, char **argv, const char *funcname UNUSED);
57
58
59 #endif /*FUNCTION_H*/