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

Legend:

Unmodified
Added
Removed
  • 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"
Note: See TracChangeset for help on using the changeset viewer.