remake  4.3+dbg-1.5
print.h
Go to the documentation of this file.
1 /* $Id: print.h,v 1.10 2005/12/23 03:29:34 rockyb Exp $
2 Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3 Copyright (C) 2008 R. Bernstein <rocky@gnu.org>
4 
5 This file is part of GNU Make.
6 
7 GNU Make is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11 
12 GNU Make is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with GNU Make; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21 
28 #ifndef PRINT_H
29 #define PRINT_H
30 
31 #include "variable.h"
32 #include "job.h"
33 #include "trace.h"
34 
36 void err_with_stack (target_stack_node_t *p_call, const char *fmt, ...)
38 void fatal_err (target_stack_node_t *p_call, const char *fmt, ...);
39 
40 /* Think of the below not as an enumeration but as #defines done in a
41  way that we'll be able to use the value in a gdb. */
45 
47 extern void log_access (char *flavor);
48 
51 extern void log_working_directory (int);
52 
54 extern void perror_with_name (const char *, const char *);
55 
57 extern void pfatal_with_name_err (const char *psz_name, int errnum);
58 
60 extern void pfatal_with_name (const char *psz_name);
61 
63 extern void print_variable (variable_t *p_v);
64 
66 extern void print_variable_expand (variable_t *p_v);
67 
69 extern void print_file_target_prefix (const file_t *p_target);
70 
72 extern void print_target_prefix (const char *p_name);
73 
75 extern void print_floc_prefix (const gmk_floc *p_floc);
76 
78 extern debug_return_t print_child_cmd (child_t *p_child,
80 
81 extern void print_target_stack_entry(const file_t *p_target, int i, int i_pos);
82 
86 extern void print_target_stack (target_stack_node_t *p, int i_pos, int i_max);
87 
90 extern void print_floc_stack (int i_pos, int i_max);
91 
93 extern bool print_read_makefiles(const char *psz_filename);
94 
96 extern void print_cmdline (void);
97 
98 #endif /*PRINT_H*/
#define __printf__
Definition: make.h:198
Header for routines related to tracing and debugging support.
void void void __format__(__printf__, 3, 4)))
debug_return_t
Definition: trace.h:32
Node for an item in the target call stack.
Definition: trace.h:79
#define __attribute__(x)
Definition: make.h:192
Definition: gnuremake.h:23
Definition: job.h:47
Definition: variable.h:56
Definition: filedef.h:34