remake  4.3+dbg-1.5
up.h
Go to the documentation of this file.
1 
2 /*
3 Copyright (C) 2011, 2020 R. Bernstein <rocky@gnu.org>
4 This file is part of GNU Make (remake variant).
5 
6 GNU Make is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10 
11 GNU Make is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with GNU Make; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20 
22 dbg_cmd_up (char *psz_amount)
23 {
24  unsigned int i_amount=1;
25 
26  if (!psz_amount || !*psz_amount) {
27  i_amount = 1;
28  } else {
29  if (!get_uint(psz_amount, &i_amount, true))
30  return debug_readloop;
31  }
32  return dbg_adjust_frame(i_amount, false);
33 }
34 
35 static void
36 dbg_cmd_up_init(unsigned int c)
37 {
38  short_command[c].func = &dbg_cmd_up;
39  short_command[c].use = _("up [AMOUNT]");
40 }
41 
42 
43 
44 /*
45  * Local variables:
46  * eval: (c-set-style "gnu")
47  * indent-tabs-mode: nil
48  * End:
49  */
bool get_uint(const char *psz_arg, unsigned int *pi_result, bool b_warn)
debug_return_t dbg_cmd_up(char *psz_amount)
Definition: up.h:22
debug_return_t
Definition: trace.h:32
#define _(msgid)
Definition: make.h:293
Definition: trace.h:40
debug_return_t dbg_adjust_frame(int i_amount, int b_absolute)