remake  4.3+dbg-1.5
fns.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2005, 2008, 2011 R. Bernstein <rocky@gnu.org>
3 This file is part of GNU Make (remake variant).
4 
5 GNU Make is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9 
10 GNU Make is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with GNU Make; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19 
25 #ifndef DBG_FNS_H
26 #define DBG_FNS_H
27 
28 #include "debug.h"
29 #include "filedef.h"
30 #include "trace.h"
31 #include "rule.h"
32 
33 extern gmk_floc *p_target_loc;
34 extern char *psz_target_name;
35 
38 extern gmk_floc fake_floc;
39 
40 brkpt_mask_t get_brkpt_option(const char *psz_break_type);
41 const gmk_floc *get_current_floc(void);
42 
47 const file_t * get_current_target(void);
48 
54 extern bool get_int(const char *psz_arg, /*out*/ int *pi_result,
55  bool b_warn);
56 
60 extern bool get_uint(const char *psz_arg, /*out*/ unsigned int *pi_result,
61  bool b_warn);
62 
69 extern char *get_word(char **ppsz_str);
70 
77 file_t *
78 get_target(/*in/out*/ char **ppsz_args, /*out*/ const char **ppsz_target);
79 
82 extern bool is_abbrev_of(const char *psz_substr,
83  const char *psz_word, unsigned int i_min);
85 extern void on_off_toggle(const char *psz_onoff, int *var) ;
86 
88 extern void print_debugger_location(const file_t *p_target,
89  debug_enter_reason_t reason,
90  const floc_stack_node_t *p_stack_floc);
91 
94 extern char *stripwhite (char *string);
95 
97 extern const char *var_to_on_off(int i_bool);
98 
102 extern bool dbg_cmd_show_exp(char *psz_arg, bool expand);
103 
105 extern void print_db_level(debug_level_mask_t e_debug_level);
106 
108 extern variable_t *try_without_dollar(const char *psz_varname);
109 
110 extern void dbg_print_invocation(void);
111 
112 extern rule_t *find_rule (const char *psz_name);
113 extern void shell_rc_status(int rc);
114 
115 extern void chomp(char * line);
116 
117 #endif /* DBG_FNS_H*/
Header for routines related to tracing and debugging support.
gmk_floc * p_target_loc
bool get_uint(const char *psz_arg, unsigned int *pi_result, bool b_warn)
variable_t * try_without_dollar(const char *psz_varname)
rule_t * find_rule(const char *psz_name)
void shell_rc_status(int rc)
unsigned int brkpt_mask_t
Definition: types.h:64
Definition: rule.h:25
const file_t * get_current_target(void)
void chomp(char *line)
void on_off_toggle(const char *psz_onoff, int *var)
gmk_floc fake_floc
const gmk_floc * get_current_floc(void)
char * stripwhite(char *string)
void dbg_print_invocation(void)
bool is_abbrev_of(const char *psz_substr, const char *psz_word, unsigned int i_min)
void print_debugger_location(const file_t *p_target, debug_enter_reason_t reason, const floc_stack_node_t *p_stack_floc)
debug_level_mask_t
debug masks which control tracing output.
Definition: debug.h:30
bool dbg_cmd_show_exp(char *psz_arg, bool expand)
file_t * get_target(char **ppsz_args, const char **ppsz_target)
debug_enter_reason_t
Definition: trace.h:46
const char * var_to_on_off(int i_bool)
char * get_word(char **ppsz_str)
Definition: gnuremake.h:23
Node for an item in the "include Makefile" stack.
Definition: trace.h:99
bool get_int(const char *psz_arg, int *pi_result, bool b_warn)
brkpt_mask_t get_brkpt_option(const char *psz_break_type)
char * psz_target_name
void print_db_level(debug_level_mask_t e_debug_level)
Definition: variable.h:56
Definition: filedef.h:34