remake  4.3+dbg-1.5
Functions
function.h File Reference

Builtin function expansion for GNU Make. More...

#include "make.h"

Go to the source code of this file.

Functions

void fold_newlines (char *buffer, unsigned int *length)
 
void hash_init_function_table (void)
 
void hash_free_function_table (void)
 
char * strip_whitespace (const char **begpp, const char **endpp)
 
char * func_eval (char *o, char **argv, const char *funcname UNUSED)
 

Detailed Description

Builtin function expansion for GNU Make.

Function Documentation

◆ fold_newlines()

void fold_newlines ( char *  buffer,
unsigned int *  length 
)

Replace all carriage returns and linefeeds with spaces. Carriage return is replaced on UNIX as well. Is this desirable?

◆ func_eval()

char* func_eval ( char *  o,
char **  argv,
const char *funcname  UNUSED 
)

$(eval makefile-string)

Always resolves to the empty string.

Treat the arguments as a segment of makefile, and parse them.

◆ hash_free_function_table()

void hash_free_function_table ( void  )

◆ hash_init_function_table()

void hash_init_function_table ( void  )

◆ strip_whitespace()

char* strip_whitespace ( const char **  begpp,
const char **  endpp 
)

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.