remake  4.3+dbg-1.5
Data Structures | Macros | Functions | Variables
dep.h File Reference
#include "gnuremake.h"

Go to the source code of this file.

Data Structures

struct  nameseq
 
struct  dep
 
struct  goaldep
 

Macros

#define NAMESEQ(_t)
 
#define RM_NO_DEFAULT_GOAL   (1 << 0) /* Do not set default goal. */
 
#define RM_INCLUDED   (1 << 1) /* Search makefile search path. */
 
#define RM_DONTCARE   (1 << 2) /* No error if it doesn't exist. */
 
#define RM_NO_TILDE   (1 << 3) /* Don't expand ~ in file name. */
 
#define RM_NOFLAG   0
 
#define DEP(_t)
 
#define PARSEFS_NONE   0x0000
 
#define PARSEFS_NOSTRIP   0x0001
 
#define PARSEFS_NOAR   0x0002
 
#define PARSEFS_NOGLOB   0x0004
 
#define PARSEFS_EXISTS   0x0008
 
#define PARSEFS_NOCACHE   0x0010
 
#define PARSEFS_ONEWORD   0x0020
 
#define PARSE_FILE_SEQ(_s, _t, _c, _p, _f)   (_t *)parse_file_seq ((_s),sizeof (_t),(_c),(_p),(_f))
 
#define PARSE_SIMPLE_SEQ(_s, _t)   (_t *)parse_file_seq ((_s),sizeof (_t),MAP_NUL,NULL,PARSEFS_NONE)
 
#define dep_name(d)   ((d)->name == 0 ? (d)->file->name : (d)->name)
 
#define alloc_seq_elt(_t)   xcalloc (sizeof (_t))
 
#define alloc_ns()   alloc_seq_elt (struct nameseq)
 
#define alloc_dep()   alloc_seq_elt (struct dep)
 
#define alloc_goaldep()   alloc_seq_elt (struct goaldep)
 
#define free_ns(_n)   free (_n)
 
#define free_dep(_d)   free_ns (_d)
 
#define free_goaldep(_g)   free_dep (_g)
 
#define free_dep_chain(_d)   free_ns_chain ((struct nameseq *)(_d))
 
#define free_goal_chain(_g)   free_ns_chain ((struct nameseq *)(_g))
 

Functions

void * parse_file_seq (char **stringp, size_t size, int stopmap, const char *prefix, int flags)
 
char * remake_tilde_expand (const char *name)
 
struct nameseqar_glob (const char *arname, const char *member_pattern, size_t size)
 
struct depcopy_dep_chain (const struct dep *d)
 
void free_ns_chain (struct nameseq *n)
 
struct goaldepread_all_makefiles (const char **makefiles)
 
void eval_buffer (char *buffer, const gmk_floc *floc)
 
enum update_status update_goal_chain (struct goaldep *goals)
 

Variables

struct goaldepread_makefiles
 

Macro Definition Documentation

◆ alloc_dep

#define alloc_dep ( )    alloc_seq_elt (struct dep)

◆ alloc_goaldep

#define alloc_goaldep ( )    alloc_seq_elt (struct goaldep)

◆ alloc_ns

#define alloc_ns ( )    alloc_seq_elt (struct nameseq)

◆ alloc_seq_elt

#define alloc_seq_elt (   _t)    xcalloc (sizeof (_t))

◆ DEP

#define DEP (   _t)
Value:
NAMESEQ (_t); \
struct file *file; \
const char *stem; \
unsigned int flags : 8; \
unsigned int changed : 1; \
unsigned int ignore_mtime : 1; \
unsigned int staticpattern : 1; \
unsigned int need_2nd_expansion : 1; \
unsigned int ignore_automatic_vars : 1
#define NAMESEQ(_t)
Definition: dep.h:23
Definition: filedef.h:34

◆ dep_name

#define dep_name (   d)    ((d)->name == 0 ? (d)->file->name : (d)->name)

◆ free_dep

#define free_dep (   _d)    free_ns (_d)

◆ free_dep_chain

#define free_dep_chain (   _d)    free_ns_chain ((struct nameseq *)(_d))

◆ free_goal_chain

#define free_goal_chain (   _g)    free_ns_chain ((struct nameseq *)(_g))

◆ free_goaldep

#define free_goaldep (   _g)    free_dep (_g)

◆ free_ns

#define free_ns (   _n)    free (_n)

◆ NAMESEQ

#define NAMESEQ (   _t)
Value:
_t *next; \
const char *name

◆ PARSE_FILE_SEQ

#define PARSE_FILE_SEQ (   _s,
  _t,
  _c,
  _p,
  _f 
)    (_t *)parse_file_seq ((_s),sizeof (_t),(_c),(_p),(_f))

◆ PARSE_SIMPLE_SEQ

#define PARSE_SIMPLE_SEQ (   _s,
  _t 
)    (_t *)parse_file_seq ((_s),sizeof (_t),MAP_NUL,NULL,PARSEFS_NONE)

◆ PARSEFS_EXISTS

#define PARSEFS_EXISTS   0x0008

◆ PARSEFS_NOAR

#define PARSEFS_NOAR   0x0002

◆ PARSEFS_NOCACHE

#define PARSEFS_NOCACHE   0x0010

◆ PARSEFS_NOGLOB

#define PARSEFS_NOGLOB   0x0004

◆ PARSEFS_NONE

#define PARSEFS_NONE   0x0000

◆ PARSEFS_NOSTRIP

#define PARSEFS_NOSTRIP   0x0001

◆ PARSEFS_ONEWORD

#define PARSEFS_ONEWORD   0x0020

◆ RM_DONTCARE

#define RM_DONTCARE   (1 << 2) /* No error if it doesn't exist. */

◆ RM_INCLUDED

#define RM_INCLUDED   (1 << 1) /* Search makefile search path. */

◆ RM_NO_DEFAULT_GOAL

#define RM_NO_DEFAULT_GOAL   (1 << 0) /* Do not set default goal. */

◆ RM_NO_TILDE

#define RM_NO_TILDE   (1 << 3) /* Don't expand ~ in file name. */

◆ RM_NOFLAG

#define RM_NOFLAG   0

Function Documentation

◆ ar_glob()

struct nameseq* ar_glob ( const char *  arname,
const char *  member_pattern,
size_t  size 
)

◆ copy_dep_chain()

struct dep * copy_dep_chain ( const struct dep d)

◆ eval_buffer()

void eval_buffer ( char *  buffer,
const gmk_floc floc 
)

◆ free_ns_chain()

void free_ns_chain ( struct nameseq n)

◆ parse_file_seq()

void* parse_file_seq ( char **  stringp,
size_t  size,
int  stopmap,
const char *  prefix,
int  flags 
)

◆ read_all_makefiles()

struct goaldep* read_all_makefiles ( const char **  makefiles)

◆ remake_tilde_expand()

char* remake_tilde_expand ( const char *  name)

◆ update_goal_chain()

enum update_status update_goal_chain ( struct goaldep goals)

Variable Documentation

◆ read_makefiles

struct goaldep* read_makefiles

The chain of makefiles read by read_makefile.