Debian Codegraph @

src/expand.h

raw symbols SCIP
1 /* $Id: expand.h,v 1.9 2006/12/18 10:12:25 rockyb Exp $
2 Copyright (C) 2005, 2020 R. Bernstein <[email protected]>
3 This file is part of GNU Make (remake variant).
4
5 GNU Make is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 GNU Make 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. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNU Make; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20 /** \file src/expand.h
21 *
22 * \brief Header for src/expand.c - variable expansion functions
23 */
24
25 #ifndef REMAKE_EXPAND_H
26 #define REMAKE_EXPAND_H
27
28 #include "variable.h"
29 #include "filedef.h"
30
31 /*! Like variable_expand_for_file, but the returned string is malloc'd.
32 This function is called a lot. It wants to be efficient. */
33
34 extern char *allocated_variable_expand_for_file(const char *psz_line,
35 file_t *p_file);
36
37
38 /*! Expand an argument for an expansion function. The text starting
39 at STR and ending at END is variable-expanded into a
40 null-terminated string that is returned as the value. This is done
41 without clobbering `variable_buffer' or the current
42 variable-expansion that is in progress. */
43
44 //extern char *expand_argument(const char *str, const char *end);
45
46 /*! Install a new variable_buffer context, returning the current one for
47 safe-keeping. */
48
49 //extern void install_variable_buffer (char **pp_buf, unsigned int *pi_len);
50
51 /*! Restore a previously-saved variable_buffer setting (free the current one).
52 */
53
54 #define recursively_expand(v) recursively_expand_for_file (v, NULL)
55
56 /*! Recursively expand V. The returned string is malloc'd. */
57 //extern char *recursively_expand_for_file(variable_t *v, file_t *file);
58
59 /*! Subroutine of variable_expand and friends:
60 The text to add is LENGTH chars starting at STRING to the variable_buffer.
61 The text is added to the buffer at PTR, and the updated pointer into
62 the buffer is returned as the value. Thus, the value returned by
63 each call to variable_buffer_output should be the first argument to
64 the following call. */
65
66 //extern void restore_variable_buffer(char *p_buf, unsigned int len);
67
68 /** Expand PSZ_LINE. Expansion uses P_FILE_SET if it is not NULL. */
69 extern char *variable_expand_set (char *psz_line,
70 variable_set_list_t *p_file_set);
71
72 #endif /*REMAKE_EXPAND_H*/