remake  4.3+dbg-1.5
Macros | Functions | Variables
make.h File Reference
#include <config.h>
#include <alloca.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/timeb.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include <limits.h>
#include <sys/param.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <locale.h>
#include <gettext.h>
#include <sys/resource.h>

Go to the source code of this file.

Macros

#define HAVE_CONFIG_H   1
 
#define _GNU_SOURCE   1
 
#define isblank(c)   ((c) == ' ' || (c) == '\t')
 
#define sigmask(sig)   (1 << ((sig) - 1))
 
#define PATH_MAX   MAXPATHLEN
 
#define MAXPATHLEN   1024
 
#define GET_PATH_MAX   PATH_MAX
 
#define CHAR_BIT   8
 
#define INTEGER_TYPE_MINIMUM(t)   (! INTEGER_TYPE_SIGNED (t) ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))
 
#define INTEGER_TYPE_MAXIMUM(t)   (~ (t) 0 - INTEGER_TYPE_MINIMUM (t))
 
#define CHAR_MAX   INTEGER_TYPE_MAXIMUM (char)
 
#define S_ISREG(mode)   (((mode) & S_IFMT) == S_IFREG)
 
#define S_ISDIR(mode)   (((mode) & S_IFMT) == S_IFDIR)
 
#define __attribute__(x)
 
#define __format__   format
 
#define __printf__   printf
 
#define ANSI_STRING   1
 
#define EXIT_SUCCESS   0
 
#define EXIT_FAILURE   1
 
#define FILE_TIMESTAMP   uintmax_t
 
#define streq(a, b)
 
#define patheq(a, b)   streq(a, b)
 
#define strneq(a, b, l)   (strncmp ((a), (b), (l)) == 0)
 
#define ENUM_BITFIELD(bits)
 
#define _(msgid)   gettext (msgid)
 
#define N_(msgid)   gettext_noop (msgid)
 
#define S_(msg1, msg2, num)   ngettext (msg1,msg2,num)
 
#define SET_STACK_SIZE
 
#define RECIPEPREFIX_NAME   ".RECIPEPREFIX"
 
#define RECIPEPREFIX_DEFAULT   '\t'
 
#define MIN(_a, _b)   ((_a)<(_b)?(_a):(_b))
 
#define MAX(_a, _b)   ((_a)>(_b)?(_a):(_b))
 
#define initialize_main(pargc, pargv)
 
#define EINTRLOOP(_v, _c)   while (((_v)=_c)==-1 && errno==EINTR)
 

Functions

void die (int)
 
void pfatal_with_name (const char *)
 
void perror_with_name (const char *, const char *)
 
void * xmalloc (size_t)
 
void * xcalloc (size_t)
 
void * xrealloc (void *, size_t)
 
char * xstrdup (const char *)
 
char * xstrndup (const char *, size_t)
 
char * next_token (const char *)
 
char * end_of_token (const char *)
 
void collapse_continuations (char *)
 
char * lindex (const char *, const char *, int)
 
int alpha_compare (const void *, const void *)
 
void print_spaces (unsigned int)
 
char * find_percent (char *)
 
const char * find_percent_cached (const char **)
 
FILE * open_tmpfile (char **, const char *)
 
int ar_name (const char *)
 
void ar_parse_name (const char *, char **, char **)
 
int ar_touch (const char *)
 
int ar_member_date (const char *, time_t *)
 
int dir_file_exists_p (const char *, const char *)
 
int file_exists_p (const char *)
 
int file_impossible_p (const char *)
 
void file_impossible (const char *)
 
const char * dir_name (const char *)
 
void hash_init_directories (void)
 
void define_default_variables (void)
 
void set_default_suffixes (void)
 
void install_default_suffix_rules (void)
 
void install_default_implicit_rules (void)
 
void build_vpath_lists (void)
 
void construct_vpath_list (char *pattern, char *dirpath)
 
const char * vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr, unsigned int *vpath_index, unsigned int *path_index)
 
int gpath_search (const char *file, size_t len)
 
void construct_include_path (const char **arg_dirs)
 
void user_access (void)
 
void make_access (void)
 
void child_access (void)
 
char * strip_whitespace (const char **begpp, const char **endpp)
 
void strcache_init (void)
 
void strcache_print_stats (const char *prefix)
 
int strcache_iscached (const char *str)
 
const char * strcache_add (const char *str)
 
long int atol ()
 
long int lseek ()
 
char * getcwd ()
 

Variables

int errno
 
struct rlimit stack_limit
 
char ** environ
 
int just_print_flag
 
int silent_flag
 
int ignore_errors_flag
 
int keep_going_flag
 
int print_data_base_flag
 
int question_flag
 
int touch_flag
 
int always_make_flag
 
int env_overrides
 
int no_builtin_rules_flag
 
int no_builtin_variables_flag
 
int print_version_flag
 
int print_directory_flag
 
int check_symlink_flag
 
int warn_undefined_variables_flag
 
int posix_pedantic
 
int not_parallel
 
int second_expansion
 
int clock_skew_detected
 
int rebuilding_makefiles
 
int one_shell
 
int batch_mode_shell
 
char cmd_prefix
 
unsigned int job_slots
 
int job_fds [2]
 
int job_rfd
 
double max_load_average
 
char * argv0
 
const char *const * global_argv
 
char * starting_directory
 
char * directory_before_chdir
 
unsigned int makelevel
 
char * version_string
 
char * remote_description
 
char * make_host
 
unsigned int commands_started
 
int handling_fatal_signal
 

Macro Definition Documentation

◆ _

#define _ (   msgid)    gettext (msgid)

◆ __attribute__

#define __attribute__ (   x)

◆ __format__

#define __format__   format

◆ __printf__

#define __printf__   printf

◆ _GNU_SOURCE

#define _GNU_SOURCE   1

◆ ANSI_STRING

#define ANSI_STRING   1

◆ CHAR_BIT

#define CHAR_BIT   8

◆ CHAR_MAX

#define CHAR_MAX   INTEGER_TYPE_MAXIMUM (char)

◆ EINTRLOOP

#define EINTRLOOP (   _v,
  _c 
)    while (((_v)=_c)==-1 && errno==EINTR)

◆ ENUM_BITFIELD

#define ENUM_BITFIELD (   bits)

◆ EXIT_FAILURE

#define EXIT_FAILURE   1

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

◆ FILE_TIMESTAMP

#define FILE_TIMESTAMP   uintmax_t

◆ GET_PATH_MAX

#define GET_PATH_MAX   PATH_MAX

◆ HAVE_CONFIG_H

#define HAVE_CONFIG_H   1

◆ initialize_main

#define initialize_main (   pargc,
  pargv 
)

◆ INTEGER_TYPE_MAXIMUM

#define INTEGER_TYPE_MAXIMUM (   t)    (~ (t) 0 - INTEGER_TYPE_MINIMUM (t))

◆ INTEGER_TYPE_MINIMUM

#define INTEGER_TYPE_MINIMUM (   t)    (! INTEGER_TYPE_SIGNED (t) ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))

◆ isblank

#define isblank (   c)    ((c) == ' ' || (c) == '\t')

◆ MAX

#define MAX (   _a,
  _b 
)    ((_a)>(_b)?(_a):(_b))

◆ MAXPATHLEN

#define MAXPATHLEN   1024

◆ MIN

#define MIN (   _a,
  _b 
)    ((_a)<(_b)?(_a):(_b))

◆ N_

#define N_ (   msgid)    gettext_noop (msgid)

◆ PATH_MAX

#define PATH_MAX   MAXPATHLEN

◆ patheq

#define patheq (   a,
 
)    streq(a, b)

◆ RECIPEPREFIX_DEFAULT

#define RECIPEPREFIX_DEFAULT   '\t'

◆ RECIPEPREFIX_NAME

#define RECIPEPREFIX_NAME   ".RECIPEPREFIX"

◆ S_

#define S_ (   msg1,
  msg2,
  num 
)    ngettext (msg1,msg2,num)

◆ S_ISDIR

#define S_ISDIR (   mode)    (((mode) & S_IFMT) == S_IFDIR)

◆ S_ISREG

#define S_ISREG (   mode)    (((mode) & S_IFMT) == S_IFREG)

◆ SET_STACK_SIZE

#define SET_STACK_SIZE

◆ sigmask

#define sigmask (   sig)    (1 << ((sig) - 1))

◆ streq

#define streq (   a,
 
)
Value:
((a) == (b) || \
(*(a) == *(b) && (*(a) == '\0' || !strcmp ((a) + 1, (b) + 1))))

◆ strneq

#define strneq (   a,
  b,
 
)    (strncmp ((a), (b), (l)) == 0)

Function Documentation

◆ alpha_compare()

int alpha_compare ( const void *  ,
const void *   
)

◆ ar_member_date()

int ar_member_date ( const char *  ,
time_t *   
)

◆ ar_name()

int ar_name ( const char *  )

◆ ar_parse_name()

void ar_parse_name ( const char *  ,
char **  ,
char **   
)

◆ ar_touch()

int ar_touch ( const char *  )

◆ atol()

long int atol ( )

◆ build_vpath_lists()

void build_vpath_lists ( void  )

◆ child_access()

void child_access ( void  )

◆ collapse_continuations()

void collapse_continuations ( char *  )

◆ construct_include_path()

void construct_include_path ( const char **  arg_dirs)

Construct the list of include directories from the arguments and the default list.

◆ construct_vpath_list()

void construct_vpath_list ( char *  pattern,
char *  dirpath 
)

◆ define_default_variables()

void define_default_variables ( void  )

◆ die()

void die ( int  )

◆ dir_file_exists_p()

int dir_file_exists_p ( const char *  ,
const char *   
)

◆ dir_name()

const char* dir_name ( const char *  )

◆ end_of_token()

char* end_of_token ( const char *  )

◆ file_exists_p()

int file_exists_p ( const char *  )

◆ file_impossible()

void file_impossible ( const char *  )

◆ file_impossible_p()

int file_impossible_p ( const char *  )

◆ find_percent()

char* find_percent ( char *  )

◆ find_percent_cached()

const char* find_percent_cached ( const char **  )

◆ getcwd()

char* getcwd ( )

◆ gpath_search()

int gpath_search ( const char *  file,
size_t  len 
)

◆ hash_init_directories()

void hash_init_directories ( void  )

◆ install_default_implicit_rules()

void install_default_implicit_rules ( void  )

◆ install_default_suffix_rules()

void install_default_suffix_rules ( void  )

◆ lindex()

char* lindex ( const char *  ,
const char *  ,
int   
)

◆ lseek()

long int lseek ( )

◆ make_access()

void make_access ( void  )

◆ next_token()

char* next_token ( const char *  )

◆ open_tmpfile()

FILE* open_tmpfile ( char **  ,
const char *   
)

◆ perror_with_name()

void perror_with_name ( const char *  ,
const char *   
)

◆ pfatal_with_name()

void pfatal_with_name ( const char *  )

◆ print_spaces()

void print_spaces ( unsigned  int)

◆ set_default_suffixes()

void set_default_suffixes ( void  )

◆ strcache_add()

const char* strcache_add ( const char *  str)

◆ strcache_init()

void strcache_init ( void  )

◆ strcache_iscached()

int strcache_iscached ( const char *  str)

◆ strcache_print_stats()

void strcache_print_stats ( const char *  prefix)

◆ strip_whitespace()

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

◆ user_access()

void user_access ( void  )

◆ vpath_search()

const char* vpath_search ( const char *  file,
FILE_TIMESTAMP mtime_ptr,
unsigned int *  vpath_index,
unsigned int *  path_index 
)

◆ xcalloc()

void* xcalloc ( size_t  )

◆ xmalloc()

void* xmalloc ( size_t  )

◆ xrealloc()

void* xrealloc ( void *  ,
size_t   
)

◆ xstrdup()

char* xstrdup ( const char *  )

◆ xstrndup()

char* xstrndup ( const char *  ,
size_t   
)

Variable Documentation

◆ always_make_flag

int always_make_flag

◆ argv0

char* argv0

Value of argv[0] which seems to get modified. Can we merge this with program below?

◆ batch_mode_shell

int batch_mode_shell

◆ check_symlink_flag

int check_symlink_flag

◆ clock_skew_detected

int clock_skew_detected

◆ cmd_prefix

char cmd_prefix

◆ commands_started

unsigned int commands_started

◆ directory_before_chdir

char* directory_before_chdir

Our current directory before processing any -C options.

◆ env_overrides

int env_overrides

◆ environ

char** environ

◆ errno

int errno

◆ global_argv

const char* const* global_argv

Our initial arguments – used for debugger restart execvp.

◆ handling_fatal_signal

int handling_fatal_signal

◆ ignore_errors_flag

int ignore_errors_flag

◆ job_fds

int job_fds[2]

◆ job_rfd

int job_rfd

◆ job_slots

unsigned int job_slots

◆ just_print_flag

int just_print_flag

◆ keep_going_flag

int keep_going_flag

Referenced by dbg_cmd_show().

◆ make_host

char * make_host

◆ makelevel

unsigned int makelevel

Value of the MAKELEVEL variable at startup (or 0).

◆ max_load_average

double max_load_average

◆ no_builtin_rules_flag

int no_builtin_rules_flag

◆ no_builtin_variables_flag

int no_builtin_variables_flag

◆ not_parallel

int not_parallel

◆ one_shell

int one_shell

◆ posix_pedantic

int posix_pedantic

◆ print_data_base_flag

int print_data_base_flag

◆ print_directory_flag

int print_directory_flag

◆ print_version_flag

int print_version_flag

◆ question_flag

int question_flag

◆ rebuilding_makefiles

int rebuilding_makefiles

◆ remote_description

char * remote_description

◆ second_expansion

int second_expansion

◆ silent_flag

int silent_flag

◆ stack_limit

struct rlimit stack_limit

◆ starting_directory

char* starting_directory

◆ touch_flag

int touch_flag

◆ version_string

char* version_string

Referenced by dbg_cmd_show().

◆ warn_undefined_variables_flag

int warn_undefined_variables_flag