Source:NetHack 3.2.0/mail.h

From NetHackWiki
Revision as of 08:48, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.2.0/mail.h moved to Source:NetHack 3.2.0/mail.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below is the full text to mail.h from the source code of NetHack 3.2.0. To link to a particular line, write [[NetHack 3.2.0/mail.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)mail.h	3.2	91/10/11	*/
2.    /* NetHack may be freely redistributed.  See license for details. */
3.    
4.    /* used by ckmailstatus() to pass information to the mail-daemon in newmail() */
5.    
6.    #ifndef MAIL_H
7.    #define MAIL_H
8.    
9.    #define MSG_OTHER 0	/* catch-all; none of the below... */
10.   #define MSG_MAIL  1	/* unimportant, uninteresting mail message */
11.   #define MSG_CALL  2	/* annoying phone/talk/chat-type interruption */
12.   
13.   struct mail_info {
14.   	int	 message_typ;		/* MSG_foo value */
15.   	const char *display_txt;	/* text for daemon to verbalize */
16.   	const char *object_nam;		/* text to tag object with */
17.   	const char *response_cmd;	/* command to eventually execute */
18.   };
19.   
20.   #endif /* MAIL_H */