Skip to content

Commit

Permalink
don't declare as non-null parameter which we are calling with explici…
Browse files Browse the repository at this point in the history
…t NULL
  • Loading branch information
NotFound committed May 19, 2011
1 parent a115d7c commit 610bb7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 6 additions & 10 deletions include/parrot/debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,8 @@ void PDB_disable_breakpoint(PARROT_INTERP, ARGIN(const char *command))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

void PDB_disassemble(PARROT_INTERP, ARGIN(const char *command))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
void PDB_disassemble(PARROT_INTERP, ARGIN_NULLOK(const char *command))
__attribute__nonnull__(1);

size_t PDB_disassemble_op(PARROT_INTERP,
ARGOUT(char *dest),
Expand Down Expand Up @@ -336,9 +335,8 @@ void PDB_help(PARROT_INTERP, ARGIN(const char *command))
void PDB_info(PARROT_INTERP)
__attribute__nonnull__(1);

void PDB_init(PARROT_INTERP, ARGIN(const char *command))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
void PDB_init(PARROT_INTERP, ARGIN_NULLOK(const char *command))
__attribute__nonnull__(1);

void PDB_list(PARROT_INTERP, ARGIN(const char *command))
__attribute__nonnull__(1)
Expand Down Expand Up @@ -427,8 +425,7 @@ void PDB_watchpoint(PARROT_INTERP, ARGIN(const char *command))
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(command))
#define ASSERT_ARGS_PDB_disassemble __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(command_unused))
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_PDB_disassemble_op __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(dest) \
Expand Down Expand Up @@ -458,8 +455,7 @@ void PDB_watchpoint(PARROT_INTERP, ARGIN(const char *command))
#define ASSERT_ARGS_PDB_info __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_PDB_init __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(command_unused))
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_PDB_list __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(command))
Expand Down
4 changes: 2 additions & 2 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ Init the program.
*/

void
PDB_init(PARROT_INTERP, ARGIN(SHIM(const char *command)))
PDB_init(PARROT_INTERP, ARGIN_NULLOK(SHIM(const char *command)))
{
ASSERT_ARGS(PDB_init)
PDB_t * const pdb = interp->pdb;
Expand Down Expand Up @@ -2894,7 +2894,7 @@ Disassemble the bytecode.
*/

void
PDB_disassemble(PARROT_INTERP, ARGIN(SHIM(const char *command)))
PDB_disassemble(PARROT_INTERP, ARGIN_NULLOK(SHIM(const char *command)))
{
ASSERT_ARGS(PDB_disassemble)
PDB_t * const pdb = interp->pdb;
Expand Down

0 comments on commit 610bb7a

Please sign in to comment.