Changeset 56


Ignore:
Timestamp:
Mar 2, 2008, 3:03:36 PM (10 years ago)
Author:
Sam Hocevar
Message:
  • Add licensing terms to most C / C++ files (Ref #5).
Location:
abuse/trunk/src
Files:
290 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/ability.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "ability.hpp"
    213#include "chars.hpp"
  • abuse/trunk/src/ant.cpp

    r16 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <ctype.h>
     13
    114#include "ant.hpp"
    215#include "lisp.hpp"
     
    922#include "clisp.hpp"
    1023#include "dev.hpp"
    11 #include <ctype.h>
    1224
    1325enum {  ANT_need_to_dodge,     // ant vars
  • abuse/trunk/src/automap.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "automap.hpp"
    213#include "game.hpp"
  • abuse/trunk/src/cache.cpp

    r41 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#include "config.h"
    211
    312#if (defined(__MACH__) || !defined(__APPLE__))
    4 #include <sys/stat.h>
     13#   include <sys/stat.h>
    514#endif
    615
  • abuse/trunk/src/calctrig.cpp

    r43 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <math.h>
    213
  • abuse/trunk/src/chars.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "chars.hpp"
    213#include "game.hpp"
  • abuse/trunk/src/chat.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "chat.hpp"
    213#include "dev.hpp"
  • abuse/trunk/src/chmorph.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "chmorph.hpp"
    213
  • abuse/trunk/src/client.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "client.hpp"
    213#include "server2.hpp"
     
    819#include "nfserver.hpp"
    920
    10 
    11 
    12 
  • abuse/trunk/src/clisp.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "ant.hpp"
    213#include "lisp.hpp"
  • abuse/trunk/src/collide.cpp

    r16 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "level.hpp"
    213#include "intsect.hpp"
  • abuse/trunk/src/compiled.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <string.h>
     13
    114#include "lisp.hpp"
    215#include "macs.hpp"
    316#include "jmalloc.hpp"
    4 #include <string.h>
    517
    618extern int total_objects;
  • abuse/trunk/src/config.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <ctype.h>
     13
    114#include "keys.hpp"
    215#include "lisp.hpp"
    3 #include <ctype.h>
    416#include "joy.hpp"
    517#include "jwindow.hpp"
  • abuse/trunk/src/console.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <ctype.h>
     13#include <stdarg.h>
     14
    115#include "linked.hpp"
    216#include "console.hpp"
    317#include "jmalloc.hpp"
    4 #include <ctype.h>
    5 #include <stdarg.h>
    618
    719extern window_manager *eh;
  • abuse/trunk/src/control.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "game.hpp"
    213#include "control.hpp"
  • abuse/trunk/src/cop.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "lisp.hpp"
    213#include "lisp_gc.hpp"
  • abuse/trunk/src/crc.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "crc.hpp"
    213
  • abuse/trunk/src/demo.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "demo.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/dev.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <ctype.h>
    213
  • abuse/trunk/src/devsel.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "devsel.hpp"
    213#include "scroller.hpp"
  • abuse/trunk/src/director.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "director.hpp"
    213#include "game.hpp"
  • abuse/trunk/src/dosnfc.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
    19
     10#include "config.h"
    211
    312void hi() { ; }
  • abuse/trunk/src/endgame.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13
    114#include "menu.hpp"
    215#include "lisp.hpp"
     
    1326#include "jrand.hpp"
    1427#include "director.hpp"
    15 #include <math.h>
    1628#include "lisp_gc.hpp"
    1729
  • abuse/trunk/src/extend.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include "extend.hpp"
     13#include "view.hpp"
     14#include "objects.hpp"
     15#include "lisp.hpp"
     16
    117/*
    218
     
    3147
    3248*/
    33 #include "extend.hpp"
    34 #include "view.hpp"
    35 #include "objects.hpp"
    36 #include "lisp.hpp"
    37 
    3849
    3950void simple_object::add_light(light_source *ls)
  • abuse/trunk/src/fnt6x13.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110/* File produced by Satan Paint (c) 1994 Jonathan Clark */
    211
  • abuse/trunk/src/game.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12//#ifdef __POWERPC__
     13//#include <profiler.h>  //prof
     14//#endif
     15
     16#include <ctype.h>
     17#include <setjmp.h>
     18
     19#ifdef __APPLE__
     20// SDL for OSX needs to override main()
     21#   include <SDL.h>
     22#endif
     23
    124#include "game.hpp"
    225#include "dev.hpp"
     
    3457#include "demo.hpp"
    3558#include "netcfg.hpp"
    36 
    37 //#ifdef __POWERPC__
    38 //#include <profiler.h>  //prof
    39 //#endif
    40 
    41 #include <ctype.h>
    42 #include <setjmp.h>
    43 
    44 #ifdef __APPLE__
    45 // SDL for OSX needs to override main()
    46 #include <SDL.h>
    47 #endif
    4859
    4960#define SHIFT_RIGHT_DEFAULT 0
  • abuse/trunk/src/gamma.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <math.h>
    213
  • abuse/trunk/src/go.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "go.hpp"
    213#include "level.hpp"
  • abuse/trunk/src/gui.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "cache.hpp"
    213#include "gui.hpp"
  • abuse/trunk/src/help.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "help.hpp"
    213#include "game.hpp"
  • abuse/trunk/src/human.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "human.hpp"
    213#include "game.hpp"
  • abuse/trunk/src/imlib/convert.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdio.h>
     13
    114/* Jonathan Clark April 5, 93   Converts Unix file for to DOS & vice versa. */
    2 #include <stdio.h>
    315
    416#define STReq(x,y) (!strcmp(x,y))
  • abuse/trunk/src/imlib/dprint.cpp

    r4 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <stdlib.h>
    213#include <stdarg.h>
    314#include <stdio.h>
     15
    416#include "macs.hpp"
    517
  • abuse/trunk/src/imlib/filesel.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#ifdef __WATCOMC__
     13#   include <direct.h>
     14#endif
     15
    116#include "filesel.hpp"
    217#include "input.hpp"
    318#include "scroller.hpp"
    419#include "jdir.hpp"
    5 
    6 #ifdef __WATCOMC__
    7 #include <direct.h>
    8 #endif
    920
    1021class file_picker : public spicker
  • abuse/trunk/src/imlib/filter.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "image.hpp"
    213#include "macs.hpp"
  • abuse/trunk/src/imlib/fonts.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <ctype.h>
     13
    114#include "fonts.hpp"
    2 #include <ctype.h>
    315
    416texture_font::texture_font(image *letters, image *font_pattern)
  • abuse/trunk/src/imlib/gifread.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13#include <string.h>
     14#include <stdio.h>
     15
    116#include "gifread.hpp"
    217#include "palette.hpp"
     
    722#include "system.h"
    823#include "dos.h"
    9 #include <math.h>
    10 #include <string.h>
    11 #include <stdio.h>
    1224#include "dir.h"
    1325#include "macs.hpp"
  • abuse/trunk/src/imlib/globals.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112unsigned xres,yres;
    213
  • abuse/trunk/src/imlib/glread.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdio.h>
     13
    114#include "macs.hpp"
    215#include "image.hpp"
     
    417#include "video.hpp"
    518#include "system.h"
    6 #include <stdio.h>
    719
    820image *read_glfont(char *fn)
  • abuse/trunk/src/imlib/glview.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13
    114#include "macs.hpp"
    215#include "mdlread.hpp"
     
    518#include "palette.hpp"
    619#include "linked.hpp"
    7 #include <math.h>
    820
    921#include "glread.hpp"
  • abuse/trunk/src/imlib/guistat.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "status.hpp"
    213#include "timing.hpp"
  • abuse/trunk/src/imlib/image-24.cpp

    r2 r56  
    1 /* image-24.cpp : a 24-bit implementation of the image class */
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
    211
    312#include "image.hpp"
     13
     14/* image-24.cpp : a 24-bit implementation of the image class */
    415
    516//
  • abuse/trunk/src/imlib/image.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13#ifdef __DOS
     14#   include <dir.h>
     15#else
     16#   include <unistd.h>
     17#endif
     18#include <stdlib.h>
     19
    120#include "image.hpp"
    221#include "macs.hpp"
    322#include "system.h"
    423#include "system.h"
    5 
    6 #include <math.h>
    7 #ifdef __DOS
    8   #include <dir.h>
    9 #else
    10   #include <unistd.h>
    11 #endif
    12 #include <stdlib.h>
    1324
    1425extern uint8_t current_background;
  • abuse/trunk/src/imlib/image24.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "image24.hpp"
    213#include "image.hpp"
  • abuse/trunk/src/imlib/include.cpp

    r4 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "include.hpp"
    213#include "ctype.h"
  • abuse/trunk/src/imlib/include/bitmap.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#define bitmap_width 16
    211#define bitmap_height 16
  • abuse/trunk/src/imlib/include/conio.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#include "system.h"
    211#ifdef __DOS
  • abuse/trunk/src/imlib/include/dir.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#include "system.h"
    211#ifdef __DOS
  • abuse/trunk/src/imlib/include/dos.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#include "system.h"
    211#ifdef __DOS
  • abuse/trunk/src/imlib/include/doscall.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#include "macs.hpp"
    211
  • abuse/trunk/src/imlib/include/dprint.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef DPRINT_HPP_
    211#define DPRINT_HPP_
  • abuse/trunk/src/imlib/include/emm.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __EMM_H_
    211#define __EMM_H_
  • abuse/trunk/src/imlib/include/errs.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110/* Various error codes used by decoder
    211 * and my own routines...   It's okay
  • abuse/trunk/src/imlib/include/event.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __EVENT_HPP_
    211#define __EVENT_HPP_
  • abuse/trunk/src/imlib/include/exitproc.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __EXITPROC_HPP_
    211#define __EXITPROC_HPP_
  • abuse/trunk/src/imlib/include/filesel.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __FSELECT_HPP_
    211#define __FSELECT_HPP_
  • abuse/trunk/src/imlib/include/filter.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _FILTER_HPP
    211#define _FILTER_HPP
  • abuse/trunk/src/imlib/include/fonts.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __FONTS_HPP_
    211#define __FONTS_HPP_
  • abuse/trunk/src/imlib/include/gifdecod.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GIFDECOD__
    211#define __GIFDECOD__
  • abuse/trunk/src/imlib/include/gifread.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _GIF_READ_H_
    211#define _GIF_READ_H_
  • abuse/trunk/src/imlib/include/globals.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GLOBALS_HPP__
    211#define __GLOBALS_HPP__
  • abuse/trunk/src/imlib/include/glread.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GLREAD_HPP_
    211#define __GLREAD_HPP_
  • abuse/trunk/src/imlib/include/guistat.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GU_STAT_HPP
    211#define __GU_STAT_HPP
  • abuse/trunk/src/imlib/include/image.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _IMGAE_HPP_
    211#define _IMGAE_HPP_
  • abuse/trunk/src/imlib/include/image24.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __IMAGE_24__
    211#define __IMAGE_24__
  • abuse/trunk/src/imlib/include/include.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __INCLUDE_HPP_
    211#define __INCLUDE_HPP_
  • abuse/trunk/src/imlib/include/input.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __INPUT_HPP_
    211#define __INPUT_HPP_
  • abuse/trunk/src/imlib/include/jdir.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _JDIR_HPP_
    211#define _JDIR_HPP_
  • abuse/trunk/src/imlib/include/jmalloc.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __jmalloc_hpp_
    211#define __jmalloc_hpp_
  • abuse/trunk/src/imlib/include/jnet.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __NET_HPP_
    211#define __NET_HPP_
  • abuse/trunk/src/imlib/include/joy.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __JOYSTICK_HPP_
    211#define __JOYSTICK_HPP_
  • abuse/trunk/src/imlib/include/jrand.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __JRAND_HPP_
    211#define __JRAND_HPP_
  • abuse/trunk/src/imlib/include/jwindow.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __JWIN__
    211#define __JWIN__
  • abuse/trunk/src/imlib/include/keys.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __KEYS_HPP_
    211#define __KEYS_HPP_
  • abuse/trunk/src/imlib/include/lbmread.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _LBMREAD_HPP_
    211#define _LBMREAD_HPP_
  • abuse/trunk/src/imlib/include/linked.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110// linked.hpp  - linked list and linked list node classes
    211// written June 2, 1992 by Jonathan Clark  (at home)
  • abuse/trunk/src/imlib/include/loader.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LOADER_HPP_
    211#define __LOADER_HPP_
  • abuse/trunk/src/imlib/include/macs.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef MACS__
    211#define MACS__
  • abuse/trunk/src/imlib/include/main.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __MAIN_HPP
    211#define __MAIN_HPP
  • abuse/trunk/src/imlib/include/mdlread.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _MDL_READ_HPP_
    211#define _MDL_READ_HPP_
  • abuse/trunk/src/imlib/include/monoprnt.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __MONOPRNT
    211#define __MONOPRNT
  • abuse/trunk/src/imlib/include/morph.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __MORPH_H_
    211#define __MORPH_H_
  • abuse/trunk/src/imlib/include/morph.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __MORPH_HPP_
    211#define __MORPH_HPP_
  • abuse/trunk/src/imlib/include/mouse.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __MOUSE_HPP_
    211#define __MOUSE_HPP_
  • abuse/trunk/src/imlib/include/packet.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __PACKET_HPP_
    211#define __PACKET_HPP_
  • abuse/trunk/src/imlib/include/palette.hpp

    r15 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _PALETTE_H_
    211#define _PALETTE_H_
  • abuse/trunk/src/imlib/include/pcxread.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __PCX_READ_HPP__
    211#define __PCX_READ_HPP__
  • abuse/trunk/src/imlib/include/pmenu.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __PMENU_HPP_
    211#define __PMENU_HPP_
  • abuse/trunk/src/imlib/include/ppmread.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __PPMREAD__
    211#define __PPMREAD__
  • abuse/trunk/src/imlib/include/readwav.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __READ_WAV_HPP_
    211#define __READ_WAV_HPP_
  • abuse/trunk/src/imlib/include/scroller.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _SCROLLER_HPP_
    211#define _SCROLLER_HPP_
  • abuse/trunk/src/imlib/include/sdriver.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SDRIVER_HPP_
    211#define __SDRIVER_HPP_
  • abuse/trunk/src/imlib/include/sound.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SOUND_HPP_
    211#define __SOUND_HPP_
  • abuse/trunk/src/imlib/include/specs.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SPECS_HPP_
    211#define __SPECS_HPP_
  • abuse/trunk/src/imlib/include/sprite.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SPRITE_HPP
    211#define __SPRITE_HPP
  • abuse/trunk/src/imlib/include/status.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __STATUS_HPP_
    211#define __STATUS_HPP_
  • abuse/trunk/src/imlib/include/std.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110/* STD.H - My own standard header file...
    211 */
  • abuse/trunk/src/imlib/include/supmorph.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SUPER_MORPH_HPP__
    211#define __SUPER_MORPH_HPP__
  • abuse/trunk/src/imlib/include/system.h

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SYS__
    211#define __SYS__
  • abuse/trunk/src/imlib/include/targa.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef TARGA_HPP_
    211#define TARGA_HPP_
  • abuse/trunk/src/imlib/include/texture.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __TEXTURE_HPP_
    211#define __TEXTURE_HPP_
  • abuse/trunk/src/imlib/include/timage.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __TIMAGE_HPP_
    211#define __TIMAGE_HPP_
  • abuse/trunk/src/imlib/include/timer.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __TIMER_HPP_
    211#define __TIMER_HPP_
  • abuse/trunk/src/imlib/include/timing.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __TIMING_HPP_
    211#define __TIMING_HPP_
  • abuse/trunk/src/imlib/include/tools.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __TOOLS_HPP_
    211#define __TOOLS_HPP_
  • abuse/trunk/src/imlib/include/video.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _VIDEO_HPP_
    211#define _VIDEO_HPP_
  • abuse/trunk/src/imlib/include/visobj.hpp

    r14 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef VIS_OBJECT_HPP
    211#define VIS_OBJECT_HPP
  • abuse/trunk/src/imlib/include/xinclude.h

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#include "system.h"
    211#include <X11/Xlib.h>
  • abuse/trunk/src/imlib/include/xwdread.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __READXWD_HPP
    211#define __READXWD_HPP
  • abuse/trunk/src/imlib/input.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "input.hpp"
    213#include "macs.hpp"
  • abuse/trunk/src/imlib/jmalloc.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <stdlib.h>
    213#include <string.h>
  • abuse/trunk/src/imlib/jrand.cpp

    r2 r56  
    1 #include "jrand.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    212#include <time.h>
    313#include <stdio.h>
     14
     15#include "jrand.hpp"
    416
    517unsigned short rtable[RAND_TABLE_SIZE];
  • abuse/trunk/src/imlib/jwindow.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "video.hpp"
    213#include "image.hpp"
  • abuse/trunk/src/imlib/keys.cpp

    r39 r56  
    1 #include "keys.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    212#include <string.h>
    313#include <ctype.h>
     14
     15#include "keys.hpp"
    416
    517char const *jk_key_names[]=
  • abuse/trunk/src/imlib/lbmread.cpp

    r17 r56  
    1 #include "lbmread.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    212#include <stdio.h>
    313#include <stdlib.h>
     14
     15#include "lbmread.hpp"
    416#include "system.h"
    5 
    6 
    717
    818image *read_lbm(char *filename, palette *&pal)
  • abuse/trunk/src/imlib/linked.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <stdio.h>
    213#include <stdlib.h>
  • abuse/trunk/src/imlib/loader.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "loader.hpp"
    213#include "image.hpp"
  • abuse/trunk/src/imlib/mdlread.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdio.h>
     13
    114#include "mdlread.hpp"
    215#include "macs.hpp"
    316#include "linked.hpp"
    417#include "system.h"
    5 #include <stdio.h>
    618
    719
  • abuse/trunk/src/imlib/morph.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "morph.hpp"
    213
  • abuse/trunk/src/imlib/packet.cpp

    r17 r56  
    1 #include "packet.hpp"
    2 #include "jmalloc.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    312#include <stdlib.h>
    413#include <string.h>
    514
     15#include "packet.hpp"
     16#include "jmalloc.hpp"
    617
    718int packet::advance(int32_t offset)
  • abuse/trunk/src/imlib/palette.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13
    114#include "palette.hpp"
    215#include "image.hpp"
     
    619#include "filter.hpp"
    720#include "jmalloc.hpp"
    8 #include <math.h>
    921
    1022palette *lastl=NULL;
  • abuse/trunk/src/imlib/pcxread.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "pcxread.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/imlib/pmenu.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "pmenu.hpp"
    213
  • abuse/trunk/src/imlib/ppmread.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdio.h>
     13
    114#include "image.hpp"
    215#include "palette.hpp"
    3 #include <stdio.h>
    416#include "macs.hpp"
    517#include "ppmread.hpp"
  • abuse/trunk/src/imlib/readwav.cpp

    r19 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "readwav.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/imlib/readxwd.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "image.hpp"
    213#include "palette.hpp"
  • abuse/trunk/src/imlib/scroller.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "scroller.hpp"
    213#define HS_ICON_W 10
  • abuse/trunk/src/imlib/specs.cpp

    r39 r56  
    1 #include "image.hpp"
    2 #include "palette.hpp"
    3 #include "specs.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    412#include <stdio.h>
    513#include <stdlib.h>
     
    715#include <ctype.h>
    816#include <fcntl.h>
     17#include <math.h>
     18#if (defined(__MACH__) || !defined(__APPLE__))
     19#   include <sys/types.h>
     20#   include <sys/stat.h>
     21#endif
     22
     23#include "image.hpp"
     24#include "palette.hpp"
     25#include "specs.hpp"
    926#include "system.h"
    1027#include "jmalloc.hpp"
    11 #include <math.h>
    1228#include "dprint.hpp"
    13 #if (defined(__MACH__) || !defined(__APPLE__))
    14 #include <sys/types.h>
    15 #include <sys/stat.h>
    16 #endif
    1729
    1830#if (defined(__APPLE__) && !defined(__MACH__))
  • abuse/trunk/src/imlib/sprite.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13
    114#include "macs.hpp"
    215#include "mdlread.hpp"
     
    518#include "palette.hpp"
    619#include "linked.hpp"
    7 #include <math.h>
    820#include "glread.hpp"
    921#include "gifread.hpp"
  • abuse/trunk/src/imlib/status.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "macs.hpp"
    213#include "status.hpp"
  • abuse/trunk/src/imlib/supmorph.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "supmorph.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/imlib/targa.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "image.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/imlib/texture.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13
    114#include "image.hpp"
    215#include "video.hpp"
    316#include "macs.hpp"
    417#include "event.hpp"
    5 #include <math.h>
    618
    719#define SHB 7
  • abuse/trunk/src/imlib/timage.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "timage.hpp"
    213
  • abuse/trunk/src/imlib/timer.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "system.h"
    213
  • abuse/trunk/src/imlib/tools.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "tools.hpp"
    213
  • abuse/trunk/src/imlib/tree.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <stdio.h>
    213#include <stdlib.h>
  • abuse/trunk/src/imlib/unpackgl.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdio.h>
     13#include <ctype.h>
     14
    115#include "system.h"
    216#include "jmalloc.hpp"
    317#include "macs.hpp"
    4 #include <stdio.h>
    5 #include <ctype.h>
    618
    719void unpackgl(char *fn, int pict_only)
  • abuse/trunk/src/imlib/visobj.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "visobj.hpp"
    213
  • abuse/trunk/src/imlib/wildargv.cpp

    r2 r56  
    11/*
    2 
    32 *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    4 
    53 *%       Copyright (C) 1989, by WATCOM Systems Inc. All rights     %
    6 
    74 *%       reserved. No part of this software may be reproduced      %
    8 
    95 *%       in any form or by any means - graphic, electronic or      %
    10 
    116 *%       mechanical, including photocopying, recording, taping     %
    12 
    137 *%       or information storage and retrieval systems - except     %
    14 
    158 *%       with the written permission of WATCOM Systems Inc.        %
    16 
    179 *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    18 
    1910  WILDARGV - split DOS command line into individual arguments expanding
    20 
    2111             those that contain ? or *.
    22 
    2312  This module is a substitute for the "initargv" module contained in the
    24 
    2513  library.
    2614
    27 
    28 
    2915  Modified:     By:             Reason:
    30 
    3116  ---------     ---             -------
    32 
    3317  23-aug-89     John Dahms      was ignoring files with Archive or
    34 
    3518                                read only attributes turned on. (Bug fix)
    36 
    3719  15-sep-91     F.W.Crigger     Use _LpCmdLine, _LpPgmName, _argc, _argv,
    38 
    3920                                ___Argc, ___Argv
    40 
    4121  02-nov-93     A.F.Scian       updated so that source will compile as C++
    42 
    4322*/
    44 
    4523#include <stdio.h>
    46 
    4724#include <stdlib.h>
    48 
    4925#include <string.h>
    50 
    5126#include <io.h>
    52 
    5327#include <direct.h>
    54 
    5528#include <malloc.h>
    5629
     30#ifdef __cplusplus
     31extern "C" {
     32#endif
    5733
     34extern  void    _Not_Enough_Memory();
     35extern  char    *_LpCmdLine;
     36extern  char    *_LpPgmName;
     37extern  int     _argc;                  /* argument count  */
     38extern  char  **_argv;                  /* argument vector */
     39extern  int     ___Argc;                /* argument count */
     40extern  char  **___Argv;                /* argument vector */
    5841
    5942#ifdef __cplusplus
    60 
    61 extern "C" {
    62 
     43};
    6344#endif
    6445
     46static void *_allocate( unsigned amount )
     47{
     48    void *p;
    6549
     50#if defined(__386__)
     51    p = malloc( amount );
     52#else
     53    p = _nmalloc( amount );
     54#if defined(__COMPACT__) || defined(__LARGE__) || defined(__HUGE__)
     55    if( (void near *) p == NULL )  p = malloc( amount );
     56#endif
     57#endif
     58    if( p == NULL )  _Not_Enough_Memory();
     59    return( p );
     60}
    6661
    67 extern  void    _Not_Enough_Memory();
     62static int _make_argv( char *p, char ***argv )
     63{
     64    int                 argc;
     65    char                *start;
     66    char                *new_arg;
     67    char                wildcard;
     68    char                lastchar;
     69    DIR *               dir;
     70    struct dirent       *dirent;
     71    char                drive[_MAX_DRIVE];
     72    char                directory[_MAX_DIR];
     73    char                name[_MAX_FNAME];
     74    char                extin[_MAX_EXT];
     75    char                pathin[_MAX_PATH];
    6876
    69 extern  char    *_LpCmdLine;
    70 
    71 extern  char    *_LpPgmName;
    72 
    73 extern  int     _argc;                  /* argument count  */
    74 
    75 extern  char  **_argv;                  /* argument vector */
    76 
    77 extern  int     ___Argc;                /* argument count */
    78 
    79 extern  char  **___Argv;                /* argument vector */
    80 
    81 
     77    argc = 1;
     78    for(;;) {
     79        while( *p == ' ' ) ++p; /* skip over blanks */
     80        if( *p == '\0' ) break;
     81        /* we are at the start of a parm */
     82        wildcard = 0;
     83        if( *p == '\"' ) {
     84            p++;
     85            new_arg = start = p;
     86            for(;;) {
     87                /* end of parm: NULLCHAR or quote */
     88                if( *p == '\"' ) break;
     89                if( *p == '\0' ) break;
     90                if( *p == '\\' ) {
     91                    if( p[1] == '\"'  ||  p[1] == '\\' )  ++p;
     92                }
     93                *new_arg++ = *p++;
     94            }
     95        } else {
     96            new_arg = start = p;
     97            for(;;) {
     98                /* end of parm: NULLCHAR or blank */
     99                if( *p == '\0' ) break;
     100                if( *p == ' ' ) break;
     101                if(( *p == '\\' )&&( p[1] == '\"' )) {
     102                    ++p;
     103                } else if( *p == '?'  ||  *p == '*' ) {
     104                    wildcard = 1;
     105                }
     106                *new_arg++ = *p++;
     107            }
     108        }
     109        *argv = (char **) realloc( *argv, (argc+2) * sizeof( char * ) );
     110        if( *argv == NULL )  _Not_Enough_Memory();
     111        (*argv)[ argc ] = start;
     112        ++argc;
     113        lastchar = *p;
     114        *new_arg = '\0';
     115        ++p;
     116        if( wildcard ) {
     117            /* expand file names */
     118            dir = opendir( start );
     119            if( dir != NULL ) {
     120                --argc;
     121                _splitpath( start, drive, directory, name, extin );
     122                for(;;) {
     123                    dirent = readdir( dir );
     124                    if( dirent == NULL ) break;
     125                    if( dirent->d_attr &
     126                      (_A_HIDDEN+_A_SYSTEM+_A_VOLID+_A_SUBDIR) ) continue;
     127                    _splitpath( dirent->d_name, NULL, NULL, name, extin );
     128                    _makepath( pathin, drive, directory, name, extin );
     129                    *argv = (char **) realloc( *argv, (argc+2) * sizeof( char * ) );
     130                    if( *argv == NULL )  _Not_Enough_Memory();
     131                    new_arg = (char *) _allocate( strlen( pathin ) + 1 );
     132                    strcpy( new_arg, pathin );
     133                    (*argv)[argc++] = new_arg;
     134                }
     135                closedir( dir );
     136            }
     137        }
     138        if( lastchar == '\0' ) break;
     139    }
     140    return( argc );
     141}
    82142
    83143#ifdef __cplusplus
    84 
    85 };
    86 
     144extern "C"
    87145#endif
    88 
    89 
    90 
    91 static void *_allocate( unsigned amount )
    92 
    93 {
    94 
    95     void *p;
    96 
    97 
    98 
    99 #if defined(__386__)
    100 
    101     p = malloc( amount );
    102 
    103 #else
    104 
    105     p = _nmalloc( amount );
    106 
    107 #if defined(__COMPACT__) || defined(__LARGE__) || defined(__HUGE__)
    108 
    109     if( (void near *) p == NULL )  p = malloc( amount );
    110 
    111 #endif
    112 
    113 #endif
    114 
    115     if( p == NULL )  _Not_Enough_Memory();
    116 
    117     return( p );
    118 
    119 }
    120 
    121 
    122 
    123 static int _make_argv( char *p, char ***argv )
    124 
    125 {
    126 
    127     int                 argc;
    128 
    129     char                *start;
    130 
    131     char                *new_arg;
    132 
    133     char                wildcard;
    134 
    135     char                lastchar;
    136 
    137     DIR *               dir;
    138 
    139     struct dirent       *dirent;
    140 
    141     char                drive[_MAX_DRIVE];
    142 
    143     char                directory[_MAX_DIR];
    144 
    145     char                name[_MAX_FNAME];
    146 
    147     char                extin[_MAX_EXT];
    148 
    149     char                pathin[_MAX_PATH];
    150 
    151 
    152 
    153     argc = 1;
    154 
    155     for(;;) {
    156 
    157         while( *p == ' ' ) ++p; /* skip over blanks */
    158 
    159         if( *p == '\0' ) break;
    160 
    161         /* we are at the start of a parm */
    162 
    163         wildcard = 0;
    164 
    165         if( *p == '\"' ) {
    166 
    167             p++;
    168 
    169             new_arg = start = p;
    170 
    171             for(;;) {
    172 
    173                 /* end of parm: NULLCHAR or quote */
    174 
    175                 if( *p == '\"' ) break;
    176 
    177                 if( *p == '\0' ) break;
    178 
    179                 if( *p == '\\' ) {
    180 
    181                     if( p[1] == '\"'  ||  p[1] == '\\' )  ++p;
    182 
    183                 }
    184 
    185                 *new_arg++ = *p++;
    186 
    187             }
    188 
    189         } else {
    190 
    191             new_arg = start = p;
    192 
    193             for(;;) {
    194 
    195                 /* end of parm: NULLCHAR or blank */
    196 
    197                 if( *p == '\0' ) break;
    198 
    199                 if( *p == ' ' ) break;
    200 
    201                 if(( *p == '\\' )&&( p[1] == '\"' )) {
    202 
    203                     ++p;
    204 
    205                 } else if( *p == '?'  ||  *p == '*' ) {
    206 
    207                     wildcard = 1;
    208 
    209                 }
    210 
    211                 *new_arg++ = *p++;
    212 
    213             }
    214 
    215         }
    216 
    217         *argv = (char **) realloc( *argv, (argc+2) * sizeof( char * ) );
    218 
    219         if( *argv == NULL )  _Not_Enough_Memory();
    220 
    221         (*argv)[ argc ] = start;
    222 
    223         ++argc;
    224 
    225         lastchar = *p;
    226 
    227         *new_arg = '\0';
    228 
    229         ++p;
    230 
    231         if( wildcard ) {
    232 
    233             /* expand file names */
    234 
    235             dir = opendir( start );
    236 
    237             if( dir != NULL ) {
    238 
    239                 --argc;
    240 
    241                 _splitpath( start, drive, directory, name, extin );
    242 
    243                 for(;;) {
    244 
    245                     dirent = readdir( dir );
    246 
    247                     if( dirent == NULL ) break;
    248 
    249                     if( dirent->d_attr &
    250 
    251                       (_A_HIDDEN+_A_SYSTEM+_A_VOLID+_A_SUBDIR) ) continue;
    252 
    253                     _splitpath( dirent->d_name, NULL, NULL, name, extin );
    254 
    255                     _makepath( pathin, drive, directory, name, extin );
    256 
    257                     *argv = (char **) realloc( *argv, (argc+2) * sizeof( char * ) );
    258 
    259                     if( *argv == NULL )  _Not_Enough_Memory();
    260 
    261                     new_arg = (char *) _allocate( strlen( pathin ) + 1 );
    262 
    263                     strcpy( new_arg, pathin );
    264 
    265                     (*argv)[argc++] = new_arg;
    266 
    267                 }
    268 
    269                 closedir( dir );
    270 
    271             }
    272 
    273         }
    274 
    275         if( lastchar == '\0' ) break;
    276 
     146void __Init_Argv()
     147    {
     148        _argv = (char **) _allocate( 2 * sizeof( char * ) );
     149        _argv[0] = _LpPgmName;  /* fill in program name */
     150        _argc = _make_argv( _LpCmdLine, &_argv );
     151        _argv[_argc] = NULL;
     152        ___Argc = _argc;
     153        ___Argv = _argv;
    277154    }
    278 
    279     return( argc );
    280 
    281 }
    282 
    283 
    284 
    285 #ifdef __cplusplus
    286 
    287 extern "C"
    288 
    289 #endif
    290 
    291 void __Init_Argv()
    292 
    293     {
    294 
    295         _argv = (char **) _allocate( 2 * sizeof( char * ) );
    296 
    297         _argv[0] = _LpPgmName;  /* fill in program name */
    298 
    299         _argc = _make_argv( _LpCmdLine, &_argv );
    300 
    301         _argv[_argc] = NULL;
    302 
    303         ___Argc = _argc;
    304 
    305         ___Argv = _argv;
    306 
    307     }
    308 
  • abuse/trunk/src/imlib/xwdread.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdio.h>
     13
    114/* readxwd.c */
    215/* This program is limited to X11 format XWD files */
     
    922#include "dos.h"
    1023#include "main.hpp"
    11 #include <stdio.h>
    1224#include "macs.hpp"
    1325#include "image24.hpp"
  • abuse/trunk/src/include/ability.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef ABILITIES_HPP_
    211#define ABILITIES_HPP_
  • abuse/trunk/src/include/ant.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __ANT_HPP_
    211#define __ANT_HPP_
  • abuse/trunk/src/include/automap.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __AUTOMAP_HPP_
    211#define __AUTOMAP_HPP_
  • abuse/trunk/src/include/bus_type.hpp

    r19 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef BUS_TYPE_HPP
    211#define BUS_TYPE_HPP
  • abuse/trunk/src/include/cache.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __CASHE_HPP_
    211#define __CASHE_HPP_
  • abuse/trunk/src/include/chars.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __CHARACTERZ_HPP_
    211#define __CHARACTERZ_HPP_
  • abuse/trunk/src/include/chat.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef CHAT_HPP_
    211#define CHAT_HPP_
  • abuse/trunk/src/include/chmorph.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __chmorph_hpp_
    211#define __chmorph_hpp_
  • abuse/trunk/src/include/client.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __CLIENT_HPP_
    211#define __CLIENT_HPP_
  • abuse/trunk/src/include/clisp.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __CLISP_HPP_
    211#ifndef SCADALISP
  • abuse/trunk/src/include/compiled.hpp

    r28 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __COMPILED_HPP_
    211#define __COMPILED_HPP_
  • abuse/trunk/src/include/config.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __CONFIG_HPP_
    211#define __CONFIG_HPP_
  • abuse/trunk/src/include/console.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __CONSOLE_HPP_
    211#define __CONSOLE_HPP_
  • abuse/trunk/src/include/control.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __CONTROLLED_HPP_
    211#define __CONTROLLED_HPP_
  • abuse/trunk/src/include/cop.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __COP_HPP_
    211#define __COP_HPP_
  • abuse/trunk/src/include/crc.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _CRC_HPP_
    211#define _CRC_HPP_
  • abuse/trunk/src/include/demo.hpp

    r16 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __DEMO_HPP_
    211#define __DEMO_HPP_
  • abuse/trunk/src/include/dev.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __DEV_HPP_
    211#define __DEV_HPP_
  • abuse/trunk/src/include/devsel.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __DEVSCROLL_HPP_
    211#define __DEVSCROLL_HPP_
  • abuse/trunk/src/include/director.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __DIRECTOR_HPP_
    211#define __DIRECTOR_HPP_
  • abuse/trunk/src/include/extend.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef EXTEND_HPP_
    211#define EXTEND_HPP_
  • abuse/trunk/src/include/fakelib.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __FAKELIB_HPP_
    211#define __FAKELIB_HPP_
  • abuse/trunk/src/include/game.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GAME_HPP_
    211#define __GAME_HPP_
  • abuse/trunk/src/include/gamma.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GAMMA_HPP_
    211#define __GAMMA_HPP_
  • abuse/trunk/src/include/go.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GO_HPP_
    211#define __GO_HPP_
  • abuse/trunk/src/include/gui.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __GUI_HPP_
    211#define __GUI_HPP_
  • abuse/trunk/src/include/help.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __HELP_HPP_
    211#define __HELP_HPP_
  • abuse/trunk/src/include/human.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __HUMAN_HPP_
    211#define __HUMAN_HPP_
  • abuse/trunk/src/include/id.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __ID_HPP_
    211#define __ID_HPP_
  • abuse/trunk/src/include/intsect.hpp

    r16 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __INTSECT_HPP_
    211#define __INTSECT_HPP_
  • abuse/trunk/src/include/isllist.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef ISLLIST_HH
    211#define ISLLIST_HH
  • abuse/trunk/src/include/isllist_bak.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef ISLLIST_HH
    211#define ISLLIST_HH
  • abuse/trunk/src/include/items.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __ITEMS_HPP__
    211#define __ITEMS_HPP__
  • abuse/trunk/src/include/language.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110char const *lang_string(char const *symbol);
  • abuse/trunk/src/include/laser.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LASER_HPP_
    211#define __LASER_HPP_
  • abuse/trunk/src/include/lcache.hpp

    r20 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LCACHE_HPP_
    211#define __LCACHE_HPP_
  • abuse/trunk/src/include/lcaller.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LCALLER_HPP_
    211#define __LCALLER_HPP_
  • abuse/trunk/src/include/level.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110
    211#ifndef __LEVEL_HPP_
  • abuse/trunk/src/include/light.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef LIGHT_HPP
    211#define LIGHT_HPP
  • abuse/trunk/src/include/lisp.hpp

    r43 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LISP_HPP_
    211#define __LISP_HPP_
  • abuse/trunk/src/include/lisp2.hpp

    r43 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _LISP_HPP_INCLUDED_
    211#define _LISP_HPP_INCLUDED_
  • abuse/trunk/src/include/lisp_gc.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#include "stack.hpp"
    211#ifndef __LISP_GC_HPP_
  • abuse/trunk/src/include/lisp_opt.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LISP_OPT_HPP_
    211#define __LISP_OPT_HPP_
  • abuse/trunk/src/include/lmenu.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LMENU_HPP_
    211#define __LMENU_HPP_
  • abuse/trunk/src/include/loader2.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LOADER_HPP_
    211#define __LOADER_HPP_
  • abuse/trunk/src/include/loadgame.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __LOADGAME_HPP__
    211#define __LOADGAME_HPP__
  • abuse/trunk/src/include/menu.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef GRUE_MENU_HPP
    211#define GRUE_MENU_HPP
  • abuse/trunk/src/include/morpher.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __MORPHER_HPP_
    211#define __MORPHER_HPP_
  • abuse/trunk/src/include/netcfg.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __NETCFG_HPP_
    211#define __NETCFG_HPP_
  • abuse/trunk/src/include/netface.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110// structure used to comminicate with the engine
    211
  • abuse/trunk/src/include/nfclient.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __NFCLIENT_HPP_
    211#define __NFCLIENT_HPP_
  • abuse/trunk/src/include/nfserver.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __NFSERVER_HPP_
    211#define __NFSERVER_HPP_
  • abuse/trunk/src/include/objects.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _OBJECTS_HPP_
    211#define _OBJECTS_HPP_
  • abuse/trunk/src/include/parse.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __PARSE_HPP_
    211#define __PARSE_HPP_
  • abuse/trunk/src/include/particle.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __PARTICLE_HPP_
    211#define __PARTICLE_HPP_
  • abuse/trunk/src/include/points.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __POINTS_HPP_
    211#define __POINTS_HPP_
  • abuse/trunk/src/include/profile.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __JPROF_HPP_
    211#define __JPROF_HPP_
  • abuse/trunk/src/include/property.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __PROPERTY_HPP_
    211#define __PROPERTY_HPP_
  • abuse/trunk/src/include/ramfile.hpp

    r2 r56  
    1 
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
    29
    310#ifndef __RAM_FILE_HPP_
  • abuse/trunk/src/include/sbar.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __STAT_BAR_H_
    211#define __STAT_BAR_H_
  • abuse/trunk/src/include/scene.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SCENE_HPP_
    211#define __SCENE_HPP_
  • abuse/trunk/src/include/seq.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SEQUENCE_HPP_
    211#define __SEQUENCE_HPP_
  • abuse/trunk/src/include/server2.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SERVER2_HPP_
    211#define __SERVER2_HPP_
  • abuse/trunk/src/include/specache.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __SPECACHE_HPP_
    211#define __SPECACHE_HPP_
  • abuse/trunk/src/include/stack.hpp

    r30 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __STACK_HPP_
    211#define __STACK_HPP_
  • abuse/trunk/src/include/text_gui.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110int change_dir(char *path);
    211long K_avail(char *path);
  • abuse/trunk/src/include/tiles.hpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110class tile
    211{
  • abuse/trunk/src/include/transp.hpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef __TRANSP_HPP_
    211#define __TRANSP_HPP_
  • abuse/trunk/src/include/view.hpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110#ifndef _VIEW_HPP_
    211#define _VIEW_HPP_
  • abuse/trunk/src/innet.cpp

    r39 r56  
    11/*
    2 
    3   This file is a combination of :
    4     src/net/unix/unixnfc.c
    5     src/net/unix/netdrv.c
    6     src/net/unix/undrv.c
    7 
    8     netdrv & undrv compile to a stand-alone program with talk with unixnfc
    9 via a FIFO in /tmp, using a RPC-like scheme.  This versions runs inside
    10 of a abuse and therefore is a bit simpler.
    11 
    12 
    13 */
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    1412#include <stdio.h>
    1513
     
    2826#include "dprint.hpp"
    2927#include "netcfg.hpp"
     28
     29/*
     30
     31  This file is a combination of :
     32    src/net/unix/unixnfc.c
     33    src/net/unix/netdrv.c
     34    src/net/unix/undrv.c
     35
     36    netdrv & undrv compile to a stand-alone program with talk with unixnfc
     37via a FIFO in /tmp, using a RPC-like scheme.  This versions runs inside
     38of a abuse and therefore is a bit simpler.
     39*/
    3040
    3141#ifdef __WATCOMC__
  • abuse/trunk/src/install.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#define NO_LIBS 1
    213#include "lisp.c"
  • abuse/trunk/src/intsect.cpp

    r16 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdlib.h>
     13
    114#include "macs.hpp"
    2 #include <stdlib.h>
    315
    416void pushback(int32_t x1,int32_t y1,int32_t &x2,int32_t &y2,
  • abuse/trunk/src/items.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "items.hpp"
    213#include "lisp.hpp"
  • abuse/trunk/src/keydrv.cpp

    r2 r56  
    1 /*      Key driver, by Jonathan Clark
    2           (portions from showkey.c)
    3 */
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <linux/keyboard.h>
     13#include <sys/ioctl.h>
     14#include <stdlib.h>
     15#include <string.h>
    416
    517#include <stdio.h>
     
    1426#include <sys/stat.h>
    1527
    16 
     28/*      Key driver, by Jonathan Clark
     29          (portions from showkey.c)
     30*/
    1731
    1832unsigned char keyboard_buf[16];
    19 
    20 #include <linux/keyboard.h>
    21 #include <sys/ioctl.h>
    22 #include <stdlib.h>
    23 #include <string.h>
    2433
    2534int fd,my_console=-1;
  • abuse/trunk/src/keytest.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <fcntl.h>
    213#include <sys/types.h>
  • abuse/trunk/src/language.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "lisp.hpp"
    213
  • abuse/trunk/src/lcache.cpp

    r19 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "lisp.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/lcache2.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "lisp.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/letters.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
    110/* File produced by Satan Paint (c) 1994 Jonathan Clark */
    211
  • abuse/trunk/src/level.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#if (defined(__MACH__) || !defined(__APPLE__))
     13#include <sys/stat.h>
     14#endif
     15
     16#include <limits.h>
     17#include <time.h>
     18
    119#include "light.hpp"
    220#include "level.hpp"
     
    1937#include "nfserver.hpp"
    2038#include "lisp_gc.hpp"
    21 
    22 #if (defined(__MACH__) || !defined(__APPLE__))
    23 #include <sys/stat.h>
    24 #endif
    25 
    26 #include <limits.h>
    27 #include <time.h>
    2839
    2940level *current_level;
  • abuse/trunk/src/light.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdlib.h>
     13
    114#include "light.hpp"
    2 #include <stdlib.h>
    315#include "image.hpp"
    416#include "macs.hpp"
  • abuse/trunk/src/lisp.cpp

    r43 r56  
    1 #define TYPE_CHECKING 1
    2 #include "bus_type.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
    311
    412#include <stdio.h>
     
    715#include <string.h>
    816#include <stdarg.h>
     17
     18#define TYPE_CHECKING 1
     19#include "bus_type.hpp"
    920
    1021#include "lisp.hpp"
  • abuse/trunk/src/lisp_gc.cpp

    r20 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdlib.h>
     13#include <string.h>
     14
     15#include "lisp.hpp"
     16#ifdef NO_LIBS
     17#include "fakelib.hpp"
     18#else
     19#include "jmalloc.hpp"
     20#include "macs.hpp"
     21#endif
     22
     23#include "stack.hpp"
     24
    125/*  Lisp garbage collections :  uses copy/free algorithm
    226    Places to check :
     
    630        names
    731      stack
    8 
    9 
    10      
    11 
    1232*/
    13 #include <stdlib.h>
    14 #include "lisp.hpp"
    15 
    16 #ifdef NO_LIBS
    17 #include "fakelib.hpp"
    18 #else
    19 #include "jmalloc.hpp"
    20 #include "macs.hpp"
    21 #endif
    22 
    23 #include "stack.hpp"
    24 #include <string.h>
    25 
    2633
    2734grow_stack<void> l_user_stack(600);       // stack user progs can push data and have it GCed
  • abuse/trunk/src/lisp_mac.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112char *mac_replace[]={"(if $cond (progn $list) nil)"
    213                     "(if-1progn $cond $list)",
  • abuse/trunk/src/lisp_opt.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#ifdef NO_LIBS
    213#include "fakelib.hpp"
  • abuse/trunk/src/loader2.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13
    114#include "timing.hpp"
    215#include "loader2.hpp"
     
    1326#include "light.hpp"
    1427#include "morph.hpp"
    15 #include <math.h>
    1628#include "dprint.hpp"
    1729#include "particle.hpp"
  • abuse/trunk/src/loadgame.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <string.h>
    213
  • abuse/trunk/src/ltree.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
    111
    212lisp_symbol *find_symbol(char *name)
  • abuse/trunk/src/maker.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <unistd.h>
     13
     14#include <stdio.h>
     15#include <string.h>
     16#include <stdlib.h>
     17#ifdef __WATCOMC__
     18#   include <sys\types.h>
     19#   include <direct.h>
     20#   define make_dir(dir) mkdir(dir)
     21#else
     22#   include <sys/stat.h>
     23#   define make_dir(dir) mkdir(dir,511)
     24#endif
     25
    126#define NO_LIBS 1
    2 #include <unistd.h>
    327#include "lisp.c"
    428#include "trig.c"
    529#include "lisp_gc.c"
    630#include "lisp_opt.c"
    7 
    8 
    9 #include <stdio.h>
    10 #include <string.h>
    11 #include <stdlib.h>
    12 #ifdef __WATCOMC__
    13 #include <sys\types.h>
    14 #include <direct.h>
    15 #define make_dir(dir) mkdir(dir)
    16 #else
    17 
    18 #include <sys/stat.h>
    19 #define make_dir(dir) mkdir(dir,511)
    20 #endif
    21 
    22 
    2331
    2432enum { LINUX, WATCOM, AIX, SUN, SGI };
  • abuse/trunk/src/menu.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <math.h>
    213
  • abuse/trunk/src/morpher.cpp

    r16 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "morpher.hpp"
    213#include "game.hpp"
  • abuse/trunk/src/net/engine.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "indian.hpp"
    213#include "../inc/netface.hpp"      // net interface structures to the engine will use
  • abuse/trunk/src/net/fileman.cpp

    r39 r56  
    1 #include "macs.hpp"
    2 
    3 #include "fileman.hpp"
    4 #include "netface.hpp"
    5 #include "ghandler.hpp"
    6 #include "specache.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
    711
    812#include <stdio.h>
     
    1317#include <signal.h>
    1418
     19#ifndef __WATCOMC__
     20#   include <sys/stat.h>
     21#endif
     22
     23#include "macs.hpp"
     24
     25#include "fileman.hpp"
     26#include "netface.hpp"
     27#include "ghandler.hpp"
     28#include "specache.hpp"
     29
    1530extern net_protocol *prot;
    1631
    17 
    18 #ifndef __WATCOMC__
    19 #include <sys/stat.h>
    20 #endif
    2132
    2233file_manager *fman=NULL;
  • abuse/trunk/src/net/gclient.cpp

    r17 r56  
    1 #include "netcfg.hpp"
    2 #include "gclient.hpp"
    3 #include "netface.hpp"
    4 #include "undrv.hpp"
    5 #include "timing.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
    69
     10#include "config.h"
    711
    812#include <stdio.h>
     
    1418#include <string.h>
    1519#include <signal.h>
     20
     21#include "netcfg.hpp"
     22#include "gclient.hpp"
     23#include "netface.hpp"
     24#include "undrv.hpp"
     25#include "timing.hpp"
    1626
    1727extern base_memory_struct *base;
  • abuse/trunk/src/net/gserver.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdio.h>
     13#include <stdlib.h>
     14#include <fcntl.h>
     15#include <unistd.h>
     16#include <sys/stat.h>
     17#include <sys/types.h>
     18#include <string.h>
     19#include <signal.h>
     20
    121#include "system.h"
    222#include "macs.hpp"
     
    1838extern window_manager *eh;
    1939extern void service_net_request();
    20 
    21 #include <stdio.h>
    22 #include <stdlib.h>
    23 #include <fcntl.h>
    24 #include <unistd.h>
    25 #include <sys/stat.h>
    26 #include <sys/types.h>
    27 #include <string.h>
    28 #include <signal.h>
    29 
    3040
    3141game_server::game_server()
  • abuse/trunk/src/net/netdrv.cpp

    r17 r56  
    1 #include "fileman.hpp"
    2 #include "netdrv.hpp"
    3 #include "gserver.hpp"
    4 #include "gclient.hpp"
    5 #include "undrv.hpp"
    6 #include "tcpip.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
    711
    812#include <stdio.h>
     
    2327#include <bstring.h>
    2428#include <netdb.h>
     29
     30#include "fileman.hpp"
     31#include "netdrv.hpp"
     32#include "gserver.hpp"
     33#include "gclient.hpp"
     34#include "undrv.hpp"
     35#include "tcpip.hpp"
    2536
    2637#define real2shm(type,ptr) (ptr==NULL ? NULL : ((type *)((uint8_t *)(ptr)-(uint8_t *)base)))
  • abuse/trunk/src/net/netfile.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "indian.hpp"
    213#include "netfile.hpp"
  • abuse/trunk/src/net/sock.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdlib.h>
     13
    114#include "sock.hpp"
    2 #include <stdlib.h>
    315
    416const char notify_signature[] = "I wanna play ABUSE!";
  • abuse/trunk/src/net/tcpip.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#ifdef _AIX
    213#include <strings.h>
    314#endif
     15#include <ctype.h>
    416
    517#if (defined(__APPLE__) && !defined(__MACH__))
    6 #include "GUSI.h"
     18#   include "GUSI.h"
    719#endif
    820#include "tcpip.hpp"
    9 #include <ctype.h>
    1021
    1122extern tcpip_protocol tcpip;
  • abuse/trunk/src/net/undrv.cpp

    r2 r56  
    1 #include "indian.hpp"
    2 #include "undrv.hpp"
    3 #include "../include/netface.hpp"      // net interface structures to the engine will use
    4 
    5 #include "../include/netface.hpp"
    6 
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
    711
    812#include <stdio.h>
     
    2327#include <netdb.h>
    2428
     29#include "indian.hpp"
     30#include "undrv.hpp"
     31#include "../include/netface.hpp"      // net interface structures to the engine will use
     32
     33#include "../include/netface.hpp"
     34
    2535//#include "netdrv.hpp"
    2636#include "gserver.hpp"
  • abuse/trunk/src/netcfg.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "netcfg.hpp"
    213#include "input.hpp"
  • abuse/trunk/src/newlight.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdlib.h>
     13
    114#include "light.hpp"
    2 #include <stdlib.h>
    315#include "image.hpp"
    416#include "macs.hpp"
  • abuse/trunk/src/nfclient.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#if (defined(__MACH__) || !defined(__APPLE__))
     13#   include <sys/types.h>
     14#endif
     15#include <fcntl.h>
     16#include <unistd.h>
     17#include <ctype.h>
     18
    119#include "system.h"
    220#include "netface.hpp"
     
    927
    1028#include "gserver.hpp"
    11 
    12 #if (defined(__MACH__) || !defined(__APPLE__))
    13 #include <sys/types.h>
    14 #endif
    15 
    16 #include <fcntl.h>
    17 #include <unistd.h>
    18 #include <ctype.h>
    1929
    2030void remove_client(int client_number) { ; }
  • abuse/trunk/src/objects.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "timage.hpp"
    213#include "objects.hpp"
  • abuse/trunk/src/old.nfclient.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <sys/types.h>
     13#include <fcntl.h>
     14#include <unistd.h>
     15
    116#include "specs.hpp"
    217#include "nfserver.hpp"
     
    419#include "crc.hpp"
    520#include "cache.hpp"
    6 #include <sys/types.h>
    7 #include <fcntl.h>
    8 #include <unistd.h>
    921
    1022class nfs_file : public bFILE
  • abuse/trunk/src/old.nfserver.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "jnet.hpp"
    213#include "specs.hpp"
  • abuse/trunk/src/old_earth_menu.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <math.h>
     13
    114#include "menu.hpp"
    215#include "lisp.hpp"
     
    1427#include "dprint.hpp"
    1528#include "demo.hpp"
    16 #include <math.h>
    1729
    1830jwindow *volume_window=NULL;
  • abuse/trunk/src/old_server.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#ifdef __WATCOMC__
     13#   define getlogin() "DOS user"
     14#   include <dos.h>
     15#else
     16#   include <unistd.h>
     17#endif
     18
     19#include "nfserver.hpp"
     20
    121#include "server.hpp"
    222#include "view.hpp"
     
    929//#include "nfserver.hpp"
    1030//#include "nfclient.hpp"
    11 
    12 #ifdef __WATCOMC__
    13 #define getlogin() "DOS user"
    14 #include <dos.h>
    15 #else
    16 #include <unistd.h>
    17 #endif
    18 
    19 #include "nfserver.hpp"
    20 
    2131
    2232//nfs_server *file_server=NULL;
  • abuse/trunk/src/oldhelp.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "help.hpp"
    213#include "game.hpp"
  • abuse/trunk/src/parse.cpp

    r2 r56  
    1 #include "parse.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    212#include <stdio.h>
    313#include <stdlib.h>
    414#include <ctype.h>
     15
     16#include "parse.hpp"
    517
    618char *ttype[]={"END","NUMBER","STRING","WORD","OPERATOR","LEFT BRACE","RIGHT BRACE",
  • abuse/trunk/src/particle.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "macs.hpp"
    213#include "particle.hpp"
  • abuse/trunk/src/pcxscale.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
     12#include <stdlib.h>
     13
    114#include "pcxread.hpp"
    215#include "palette.hpp"
    316#include "image.hpp"
    4 #include <stdlib.h>
    517
    618main(int argc, char **argv)
  • abuse/trunk/src/points.cpp

    r2 r56  
    1 #include "points.hpp"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    212#include <string.h>
    313
     14#include "points.hpp"
    415#include "dev.hpp"
    5 
    616
    717point_list::point_list(unsigned char how_many, unsigned char *Data)
  • abuse/trunk/src/profile.cpp

    r17 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include "profile.hpp"
    213#include "jwindow.hpp"
  • abuse/trunk/src/property.cpp

    r40 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <stdio.h>
    213#include <string.h>
  • abuse/trunk/src/ramfile.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112ram_file::ram_file()
    213{
  • abuse/trunk/src/remap.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <stdio.h>
    2 
    313#include <stdlib.h>
    414
    5 
    6 
    715extern "C" {
    8 
    916void remap_line_asm(void *scr, void *remap, void *seq, int seqlen);
    10 
    1117}
    1218
     19main()
     20{
     21    unsigned char *s = (unsigned char *) malloc(320*200);
     22    unsigned char *r, *seq;
     23    int i,j;
    1324
     25    r = (unsigned char *) malloc(256*256*2);
     26    r = (unsigned char *) (((unsigned) r + (256*256-1)) & ~(256*256-1));
     27    seq = (unsigned char *) malloc(40);
    1428
    15 main()
     29    for (j=0 ; j<64 ; j++)
     30        for (i=0 ; i<256; i++)
     31            r[j*256+i] = i+j;
     32    for (i=0 ; i<320*200 ; i++) s[i] = i&0xff;
     33    for (i=0 ; i<40 ; i++) seq[i] = i;
    1634
    17 {
    18 
    19 
    20 
    21         unsigned char *s = (unsigned char *) malloc(320*200);
    22 
    23         unsigned char *r, *seq;
    24 
    25         int i,j;
    26 
    27 
    28 
    29         r = (unsigned char *) malloc(256*256*2);
    30 
    31         r = (unsigned char *) (((unsigned) r + (256*256-1)) & ~(256*256-1));
    32 
    33         seq = (unsigned char *) malloc(40);
    34 
    35 
    36 
    37         for (j=0 ; j<64 ; j++)
    38 
    39                 for (i=0 ; i<256; i++)
    40 
    41                         r[j*256+i] = i+j;
    42 
    43         for (i=0 ; i<320*200 ; i++) s[i] = i&0xff;
    44 
    45         for (i=0 ; i<40 ; i++) seq[i] = i;
    46 
    47 
    48 
    49         for (j=0 ; j<200 ; j++)
    50 
     35    for (j=0 ; j<200 ; j++)
    5136                remap_line_asm(s+j*320, r, seq, 40);
    52 
    53 
    54 
    55 
    56 
    5737}
    5838
    59 
    60 
  • abuse/trunk/src/scene.cpp

    r39 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *
     5 *  This software was released into the Public Domain. As with most public
     6 *  domain software, no warranty is made or implied by Crack dot Com or
     7 *  Jonathan Clark.
     8 */
     9
     10#include "config.h"
     11
    112#include <stdio.h>
    213#include <stdlib.h>
    314#include <ctype.h>
     15#include <fcntl.h>
     16
    417#include "specs.hpp"
    518#include "timage.hpp"
     
    1124#include "parse.hpp"
    1225#include "cache.hpp"
    13 #include <fcntl.h>
    1426
    1527
  • abuse/trunk/src/sdlport/event.cpp

    r39 r56  
    1 /************************
    2  * event.c
    3  * SDL port for Abuse
    4  * by Anthony Kruize
    5  ************************/
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 2001 Anthony Kruize <trandor@labyrinth.net.au>
     4 *
     5 *  This program is free software; you can redistribute it and/or modify
     6 *  it under the terms of the GNU General Public License as published by
     7 *  the Free Software Foundation; either version 2 of the License, or
     8 *  (at your option) any later version.
     9 *
     10 *  This program is distributed in the hope that it will be useful,
     11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *  GNU General Public License for more details.
     14 *
     15 *  You should have received a copy of the GNU General Public License
     16 *  along with this program; if not, write to the Free Software Foundation,
     17 *  Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
     18 */
     19
     20#include "config.h"
    621
    722#include <SDL.h>
  • abuse/trunk/src/sdlport/jdir.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 2001 Anthony Kruize <trandor@labyrinth.net.au>
     4 *
     5 *  This program is free software; you can redistribute it and/or modify
     6 *  it under the terms of the GNU General Public License as published by
     7 *  the Free Software Foundation; either version 2 of the License, or
     8 *  (at your option) any later version.
     9 *
     10 *  This program is distributed in the hope that it will be useful,
     11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *  GNU General Public License for more details.
     14 *
     15 *  You should have received a copy of the GNU General Public License
     16 *  along with this program; if not, write to the Free Software Foundation,
     17 *  Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
     18 */
     19
     20#include "config.h"
     21
    122#include <sys/types.h>
    223#include <stdio.h>
     
    526#include <string.h>
    627#include <unistd.h>
     28
    729#include "jmalloc.hpp"
    830
  • abuse/trunk/src/sdlport/jnet.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 2001 Anthony Kruize <trandor@labyrinth.net.au>
     4 *
     5 *  This program is free software; you can redistribute it and/or modify
     6 *  it under the terms of the GNU General Public License as published by
     7 *  the Free Software Foundation; either version 2 of the License, or
     8 *  (at your option) any later version.
     9 *
     10 *  This program is distributed in the hope that it will be useful,
     11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *  GNU General Public License for more details.
     14 *
     15 *  You should have received a copy of the GNU General Public License
     16 *  along with this program; if not, write to the Free Software Foundation,
     17 *  Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
     18 */
     19
     20#include "config.h"
     21
    122#include <stdio.h>
    223#include <stdlib.h>
  • abuse/trunk/src/sdlport/joystick.cpp

    r2 r56  
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 2001 Anthony Kruize <trandor@labyrinth.net.au>
     4 *
     5 *  This program is free software; you can redistribute it and/or modify
     6 *  it under the terms of the GNU General Public License as published by
     7 *  the Free Software Foundation; either version 2 of the License, or
     8 *  (at your option) any later version.
     9 *
     10 *  This program is distributed in the hope that it will be useful,
     11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *  GNU General Public License for more details.
     14 *
     15 *  You should have received a copy of the GNU General Public License
     16 *  along with this program; if not, write to the Free Software Foundation,
     17 *  Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
     18 */
     19
     20#include "config.h"
     21
    122#include "joy.hpp"
    223
  • abuse/trunk/src/sdlport/mouse.cpp

    r2 r56  
    1 /************************
    2  * mouse.c
    3  * SDL port for Abuse
    4  * by Anthony Kruize
    5  ************************/
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 2001 Anthony Kruize <trandor@labyrinth.net.au>
     4 *
     5 *  This program is free software; you can redistribute it and/or modify
     6 *  it under the terms of the GNU General Public License as published by
     7 *  the Free Software Foundation; either version 2 of the License, or
     8 *  (at your option) any later version.
     9 *
     10 *  This program is distributed in the hope that it will be useful,
     11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *  GNU General Public License for more details.
     14 *
     15 *  You should have received a copy of the GNU General Public License
     16 *  along with this program; if not, write to the Free Software Foundation,
     17 *  Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
     18 */
     19
     20#include "config.h"
    621
    722#include <SDL.h>
  • abuse/trunk/src/sdlport/setup.cpp

    r41 r56  
    1 /************************
    2  * setup.c
    3  * SDL port for Abuse
    4  * by Anthony Kruize
    5  ************************/
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 2001 Anthony Kruize <trandor@labyrinth.net.au>
     4 *
     5 *  This program is free software; you can redistribute it and/or modify
     6 *  it under the terms of the GNU General Publ