Skip to content

Commit

Permalink
Made continue_running() static to limit its scope to src/hbdb.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
soh-cah-toa committed Jul 12, 2011
1 parent ef16714 commit 875c525
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 0 additions & 5 deletions include/parrot/hbdb.h
Expand Up @@ -116,9 +116,6 @@ typedef struct {
/* HEADERIZER BEGIN: src/hbdb.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */

void continue_running(PARROT_INTERP)
__attribute__nonnull__(1);

void hbdb_cmd_break(PARROT_INTERP, ARGIN(const char *cmd))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
Expand Down Expand Up @@ -164,8 +161,6 @@ void hbdb_start(PARROT_INTERP, ARGIN(opcode_t *pc))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

#define ASSERT_ARGS_continue_running __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_hbdb_cmd_break __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(cmd))
Expand Down
9 changes: 7 additions & 2 deletions src/hbdb.c
Expand Up @@ -59,6 +59,9 @@ typedef struct hbdb_cmd_table_t hbdb_cmd_table_t;
static void command_line(PARROT_INTERP)
__attribute__nonnull__(1);

static void continue_running(PARROT_INTERP)
__attribute__nonnull__(1);

static void display_breakpoint(
ARGIN(hbdb_t *hbdb),
ARGIN(hbdb_breakpoint_t *bp))
Expand Down Expand Up @@ -90,6 +93,8 @@ static const char * skip_whitespace(ARGIN(const char *cmd))

#define ASSERT_ARGS_command_line __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_continue_running __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_display_breakpoint __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(hbdb) \
, PARROT_ASSERT_ARG(bp))
Expand Down Expand Up @@ -851,7 +856,7 @@ command_line(PARROT_INTERP)

/*
=item C<void continue_running(PARROT_INTERP)>
=item C<static void continue_running(PARROT_INTERP)>
Manipulates a few status flags to indicate that the debugger should continue
running.
Expand All @@ -860,7 +865,7 @@ running.
*/

void
static void
continue_running(PARROT_INTERP)
{
/* Change status flags to indicate that debugger is running, not stopped */
Expand Down

0 comments on commit 875c525

Please sign in to comment.