diff options
author | dholland <dholland@NetBSD.org> | 2011-08-26 06:18:16 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2011-08-26 06:18:16 +0000 |
commit | 9e7fd816e02e66962d482b02209f112e1d5789fc (patch) | |
tree | a17f6ea5c647e0ec62bfe7ecad4192e0335b121b /rogue | |
parent | 9969175ad6caac230e2fee18f6f64f2be17a1fa6 (diff) | |
download | bsdgames-darwin-9e7fd816e02e66962d482b02209f112e1d5789fc.tar.gz bsdgames-darwin-9e7fd816e02e66962d482b02209f112e1d5789fc.tar.zst bsdgames-darwin-9e7fd816e02e66962d482b02209f112e1d5789fc.zip |
Use __dead and __printflike instead of __attribute__.
Diffstat (limited to 'rogue')
-rw-r--r-- | rogue/inventory.c | 7 | ||||
-rw-r--r-- | rogue/rogue.h | 17 | ||||
-rw-r--r-- | rogue/score.c | 6 |
3 files changed, 14 insertions, 16 deletions
diff --git a/rogue/inventory.c b/rogue/inventory.c index 1f744bde..934e8aa3 100644 --- a/rogue/inventory.c +++ b/rogue/inventory.c @@ -1,4 +1,4 @@ -/* $NetBSD: inventory.c,v 1.14 2009/08/12 08:44:45 dholland Exp $ */ +/* $NetBSD: inventory.c,v 1.15 2011/08/26 06:18:17 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)inventory.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: inventory.c,v 1.14 2009/08/12 08:44:45 dholland Exp $"); +__RCSID("$NetBSD: inventory.c,v 1.15 2011/08/26 06:18:17 dholland Exp $"); #endif #endif /* not lint */ @@ -470,8 +470,7 @@ struct sbuf { static void sbuf_init(struct sbuf *s, char *buf, size_t maxlen); static void sbuf_addstr(struct sbuf *s, const char *str); -static void sbuf_addf(struct sbuf *s, const char *fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); +static void sbuf_addf(struct sbuf *s, const char *fmt, ...) __printflike(2,3); static void desc_count(struct sbuf *s, int n); static void desc_called(struct sbuf *s, const object *); diff --git a/rogue/rogue.h b/rogue/rogue.h index d1bd8b5e..c1d860ba 100644 --- a/rogue/rogue.h +++ b/rogue/rogue.h @@ -1,4 +1,4 @@ -/* $NetBSD: rogue.h,v 1.21 2011/05/23 23:01:17 joerg Exp $ */ +/* $NetBSD: rogue.h,v 1.22 2011/08/26 06:18:17 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -466,7 +466,7 @@ void check_gold_seeker(object *); boolean check_imitator(object *); void check_message(void); int check_up(void); -void clean_up(const char *) __attribute__((__noreturn__)); +void clean_up(const char *) __dead; void clear_level(void); void cnfs(void); int coin_toss(void); @@ -483,7 +483,7 @@ void drop(void); int drop_check(void); void eat(void); void edit_opts(void); -void error_save(int) __attribute__((__noreturn__)); +void error_save(int) __dead; void fight(boolean); boolean flame_broil(object *); void free_object(object *); @@ -526,7 +526,7 @@ boolean is_direction(short, short *); boolean is_passable(int, int); boolean is_vowel(short); void kick_into_pack(void); -void killed_by(const object *, short) __attribute__((__noreturn__)); +void killed_by(const object *, short) __dead; long lget_number(const char *); void light_passage(int, int); void light_up_room(int); @@ -534,7 +534,7 @@ boolean m_confuse(object *); void make_level(void); void make_scroll_titles(void); boolean md_df(const char *); -void md_exit(int) __attribute__((__noreturn__)); +void md_exit(int) __dead; void md_gct(struct rogue_time *); int md_get_file_id(const char *); void md_gfmt(const char *, struct rogue_time *); @@ -547,8 +547,7 @@ void md_shell(const char *); void md_sleep(int); void md_slurp(void); /*void message(const char *, boolean);*/ -void messagef(boolean, const char *, ...) - __attribute__((__format__(__printf__, 2, 3))); +void messagef(boolean, const char *, ...) __printflike(2, 3); void mix_colors(void); int mon_can_go(const object *, short, short); int mon_damage(object *, short); @@ -577,7 +576,7 @@ void put_mons(void); void put_objects(void); void put_on_ring(void); void put_player(short); -void put_scores(const object *, short) __attribute__((__noreturn__)); +void put_scores(const object *, short) __dead; void put_stairs(void); void quaff(void); void quit(boolean); @@ -631,7 +630,7 @@ void wake_up(object *); void wanderer(void); void wear(void); void wield(void); -void win(void) __attribute__((__noreturn__)); +void win(void) __dead; void wizardize(void); long xxx(boolean); void xxxx(char *, short); diff --git a/rogue/score.c b/rogue/score.c index 231f0c6d..4bcf4e36 100644 --- a/rogue/score.c +++ b/rogue/score.c @@ -1,4 +1,4 @@ -/* $NetBSD: score.c,v 1.15 2009/08/12 08:44:45 dholland Exp $ */ +/* $NetBSD: score.c,v 1.16 2011/08/26 06:18:17 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: score.c,v 1.15 2009/08/12 08:44:45 dholland Exp $"); +__RCSID("$NetBSD: score.c,v 1.16 2011/08/26 06:18:17 dholland Exp $"); #endif #endif /* not lint */ @@ -61,7 +61,7 @@ static void center(short, const char *); static int get_value(const object *); static void id_all(void); static void sell_pack(void); -static void sf_error(void) __attribute__((__noreturn__)); +static void sf_error(void) __dead; void killed_by(const object *monster, short other) |