Branch: Tag:

2016-01-26

2016-01-26 21:08:15 by Martin Nilsson <nilsson@fastmail.com>

SIMPLE_TOO_FEW_ARGS_ERROR should be SIMPLE_WRONG_NUM_ARGS_ERROR since long ago. Replaced them and tighten up argument control in places.

5556:    int collect_stats = 0, return_count = 0;       if (args < 1) -  SIMPLE_TOO_FEW_ARGS_ERROR ("count_memory", 1); +  SIMPLE_WRONG_NUM_ARGS_ERROR ("count_memory", 1);       mc_block_lookahead = mc_block_lookahead_default;    mc_block_pike_cycle_depth = 0;
6164:    struct mc_marker *m;    struct svalue *k;    -  if (args < 1) { -  SIMPLE_TOO_FEW_ARGS_ERROR("identify_loops", 1); -  } +  if (args != 1) +  SIMPLE_WRONG_NUM_ARGS_ERROR("identify_loops", 1);    -  if (args > 1) pop_n_elems(args-1); -  args = 1; -  +     s = Pike_sp - 1;       if (!REFCOUNTED_TYPE(TYPEOF(*s))) {