summaryrefslogtreecommitdiffstats
path: root/rogue/rogue.h
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-09-08 21:45:25 +0000
committerjsm <jsm@NetBSD.org>1999-09-08 21:45:25 +0000
commit82852318e37fa7eddacc3dd162a2d16d3a7487b9 (patch)
treeba4e5f04137e24700deb25aaa5abefb172b8c030 /rogue/rogue.h
parent04f4d7044367099914cf1906ae27ac20c24e44cf (diff)
downloadbsdgames-darwin-82852318e37fa7eddacc3dd162a2d16d3a7487b9.tar.gz
bsdgames-darwin-82852318e37fa7eddacc3dd162a2d16d3a7487b9.tar.zst
bsdgames-darwin-82852318e37fa7eddacc3dd162a2d16d3a7487b9.zip
Add `__noreturn__' and `__unused__' attributes where appropriate to
the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
Diffstat (limited to 'rogue/rogue.h')
-rw-r--r--rogue/rogue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/rogue/rogue.h b/rogue/rogue.h
index 6375bda0..92d49c09 100644
--- a/rogue/rogue.h
+++ b/rogue/rogue.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rogue.h,v 1.8 1998/11/10 13:01:32 hubertf Exp $ */
+/* $NetBSD: rogue.h,v 1.9 1999/09/08 21:45:30 jsm Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -587,7 +587,7 @@ boolean is_pack_letter __P((short *, unsigned short *));
boolean is_passable __P((int, int));
boolean is_vowel __P((short));
void kick_into_pack __P((void));
-void killed_by __P((const object *, short));
+void killed_by __P((const object *, short)) __attribute__((__noreturn__));
long lget_number __P((const char *));
void light_passage __P((int, int));
void light_up_room __P((int));
@@ -747,7 +747,7 @@ void wanderer __P((void));
void wdrain_life __P((object *));
void wear __P((void));
void wield __P((void));
-void win __P((void));
+void win __P((void)) __attribute__((__noreturn__));
void wizardize __P((void));
void write_pack __P((const object *, FILE *));
void write_string __P((char *, FILE *));