NO_NONNULLS -> NO_NNARGS

I find:
    extern char *an(const char *) NONNULL NO_NNARGS;

slightly better than this:
    extern char *an(const char *) NONNULL NO_NONNULLS;
This commit is contained in:
nhmall
2023-12-20 22:26:16 -05:00
parent ab74019dcb
commit c3ce08b794
7 changed files with 128 additions and 128 deletions

View File

@@ -26,7 +26,7 @@ static void done_hangup(int);
#endif
#endif
static void disclose(int, boolean);
static void get_valuables(struct obj *) NO_NONNULLS;
static void get_valuables(struct obj *) NO_NNARGS;
static void sort_valuables(struct valuable_data *, int);
static void artifact_score(struct obj *, boolean, winid);
static boolean fuzzer_savelife(int);

View File

@@ -32,7 +32,7 @@ static boolean isspecmon(struct monst *);
static boolean validspecmon(struct monst *, int);
static int wiz_force_cham_form(struct monst *);
static struct permonst *accept_newcham_form(struct monst *, int);
static void kill_eggs(struct obj *) NO_NONNULLS;
static void kill_eggs(struct obj *) NO_NNARGS;
static void pacify_guard(struct monst *);
extern const struct shclass shtypes[]; /* defined in shknam.c */

View File

@@ -15,7 +15,7 @@
static const char *intermed(void);
/* sometimes find_qarti(gi.invent), and gi.invent can be null */
static struct obj *find_qarti(struct obj *) NO_NONNULLS;
static struct obj *find_qarti(struct obj *) NO_NNARGS;
static const char *neminame(void);
static const char *guardname(void);
static const char *homebase(void);

View File

@@ -23,10 +23,10 @@ static void save_bubbles(NHFILE *, xint8);
static void save_stairs(NHFILE *);
static void save_bc(NHFILE *);
static void saveobj(NHFILE *, struct obj *);
static void saveobjchn(NHFILE *, struct obj **) NO_NONNULLS;
static void saveobjchn(NHFILE *, struct obj **) NO_NNARGS;
static void savemon(NHFILE *, struct monst *);
static void savemonchn(NHFILE *, struct monst *) NO_NONNULLS;
static void savetrapchn(NHFILE *, struct trap *) NO_NONNULLS;
static void savemonchn(NHFILE *, struct monst *) NO_NNARGS;
static void savetrapchn(NHFILE *, struct trap *) NO_NNARGS;
static void save_gamelog(NHFILE *);
static void savegamestate(NHFILE *);
static void savelev_core(NHFILE *, xint8);

View File

@@ -13,7 +13,7 @@
#define MAGIC_COOKIE 1000
static int zaptype(int);
static void probe_objchain(struct obj *) NO_NONNULLS;
static void probe_objchain(struct obj *) NO_NNARGS;
static boolean zombie_can_dig(coordxy x, coordxy y);
static void polyuse(struct obj *, int, int);
static void create_polymon(struct obj *, int);