(linenum→info "unix/slp.c:2238")

bsd-games/2.17/adventure/extern.h

    1: /*      $NetBSD: extern.h,v 1.10 2004/01/27 20:30:28 jsm Exp $       */
    2: 
    3: /*
    4:  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
    5:  *
    6:  * Redistribution and use in source and binary forms, with or without
    7:  * modification, are permitted provided that the following conditions
    8:  * are met:
    9:  * 1. Redistributions of source code must retain the above copyright
   10:  *    notice, this list of conditions and the following disclaimer.
   11:  * 2. Redistributions in binary form must reproduce the above copyright
   12:  *    notice, this list of conditions and the following disclaimer in the
   13:  *    documentation and/or other materials provided with the distribution.
   14:  * 3. All advertising materials mentioning features or use of this software
   15:  *    must display the following acknowledgement:
   16:  *      This product includes software developed by Christos Zoulas.
   17:  * 4. The name of the author may not be used to endorse or promote products
   18:  *    derived from this software without specific prior written permission.
   19:  *
   20:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   21:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   22:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   23:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   24:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   25:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   26:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   27:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   28:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   29:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   30:  */
   31: 
   32: #include <string.h>
   33: 
   34: /* crc.c */
   35: void crc_start(void);
   36: unsigned long crc(const char *, int);
   37: 
   38: /* done.c */
   39: int score(void);
   40: void done(int) __attribute__((__noreturn__));
   41: void die(int);
   42: 
   43: /* init.c */
   44: void init(void);
   45: char   *decr(int, int, int, int, int);
   46: void linkdata(void);
   47: void trapdel(int);
   48: void startup(void);
   49: 
   50: /* io.c */
   51: void getin(char **, char **);
   52: int yes(int, int, int);
   53: int yesm(int, int, int);
   54: int next(void);
   55: void rdata(void);
   56: int rnum(void);
   57: void rdesc(int);
   58: void rtrav(void);
   59: #ifdef DEBUG
   60: void twrite(int);
   61: #endif
   62: void rvoc(void);
   63: void rlocs(void);
   64: void rdflt(void);
   65: void rliq(void);
   66: void rhints(void);
   67: void rspeak(int);
   68: void mspeak(int);
   69: struct text;
   70: void speak(const struct text *);
   71: void pspeak(int, int);
   72: 
   73: /* save.c */
   74: int save(const char *);
   75: int restore(const char *);
   76: 
   77: /* subr.c */
   78: int toting(int);
   79: int here(int);
   80: int at(int);
   81: int liq2(int);
   82: int liq(void);
   83: int liqloc(int);
   84: int bitset(int, int);
   85: int forced(int);
   86: int dark(void);
   87: int pct(int);
   88: int fdwarf(void);
   89: int march(void);
   90: int mback(void);
   91: int specials(void);
   92: int trbridge(void);
   93: void badmove(void);
   94: void bug(int) __attribute__((__noreturn__));
   95: void checkhints(void);
   96: int trsay(void);
   97: int trtake(void);
   98: int dropper(void);
   99: int trdrop(void);
  100: int tropen(void);
  101: int trkill(void);
  102: int trtoss(void);
  103: int trfeed(void);
  104: int trfill(void);
  105: void closing(void);
  106: void caveclose(void);
  107: 
  108: /* vocab.c */
  109: void dstroy(int);
  110: void juggle(int);
  111: void move(int, int);
  112: int put(int, int, int);
  113: void carry(int, int);
  114: void drop(int, int);
  115: int vocab(const char *, int, int);
  116: 
  117: /* These three used to be functions in vocab.c */
  118: #define copystr(src, dest)      strcpy((dest), (src))
  119: #define weq(str1, str2)         (!strncmp((str1), (str2), 5))
  120: #define length(str)             (strlen((str)) + 1)
  121: 
  122: void prht(void);
  123: 
  124: /* wizard.c */
  125: void datime(int *, int *);
  126: void poof(void);
  127: int Start(void);
  128: int wizard(void);
  129: void ciao(void);
  130: int ran(int);
Syntax (Markdown)