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