From a37faa738dd2e7b37467a0a02de6e4a16b86bff5 Mon Sep 17 00:00:00 2001 From: Kp Date: Fri, 1 Nov 2013 02:52:06 +0000 Subject: [PATCH] Remove unused d1x-rebirth/main/digicomp.{c,h} --- d1x-rebirth/main/digicomp.c | 122 ------------------------------------ d1x-rebirth/main/digicomp.h | 46 -------------- 2 files changed, 168 deletions(-) delete mode 100644 d1x-rebirth/main/digicomp.c delete mode 100644 d1x-rebirth/main/digicomp.h diff --git a/d1x-rebirth/main/digicomp.c b/d1x-rebirth/main/digicomp.c deleted file mode 100644 index 2aa002af5..000000000 --- a/d1x-rebirth/main/digicomp.c +++ /dev/null @@ -1,122 +0,0 @@ -/* -THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX -SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO -END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A -ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS -IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS -SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE -FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE -CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS -AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. -COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. -*/ -/* - * $Source: /cvsroot/dxx-rebirth/d1x-rebirth/main/digicomp.c,v $ - * $Revision: 1.1.1.1 $ - * $Author: zicodxx $ - * $Date: 2006/03/17 19:42:50 $ - * - * Routines for manipulating digi samples. - * - * $Log: digicomp.c,v $ - * Revision 1.1.1.1 2006/03/17 19:42:50 zicodxx - * initial import - * - * Revision 1.1.1.1 1999/06/14 22:06:00 donut - * Import of d1x 1.37 source. - * - * Revision 2.0 1995/02/27 11:33:04 john - * New version 2.0, which has no anonymous unions, builds with - * Watcom 10.0, and doesn't require parsing BITMAPS.TBL. - * - * Revision 1.2 1994/12/07 18:42:21 john - * Initial, unused version.. - * - * Revision 1.1 1994/12/05 09:37:13 john - * Initial revision - * - * - */ - - - -#include "soscomp.h" - -#pragma pack (4); // Use 32-bit packing! -#pragma off (check_stack); // No stack checking! -#include "sos.h" -#include "sosm.h" - -static ubyte digicomp_initialized = 0; - -#define MAX_DIGI_BLOCKS 32 -static ubyte * digicomp_memory[ MAX_DIGI_MEMORY ]; -static int N_blocks = 0; -static int Next_block = 0; - -typedef struct digi_block { - int offset; - int len; - int soundno; -} digi_block; - -digi_block Digi_blocks[MAX_DIGI_BLOCKS]; - -void digicomp_init() -{ - int i; - - if ( digicomp_initialized ) return; - digicomp_initialized = 1; - - Digi_blocks[0].len = MAX_DIGI_MEMORY; - Digi_blocks[0].offset = 0; - Digi_blocks[0].soundno = -1; - N_blocks = 1; - - for (i=1; i-1) && ( Digi_blocks[i].len < mysize ) ) { - i++; - if ( i > MAX_DIGI_BLOCKS ) - i = 0; - if ( i == Next_block ) { - // An unused block that this can fit into wasn't found, so find the next one it can fit into - // and stop it... - return NULL; - } - } - - - - - - -} - - - diff --git a/d1x-rebirth/main/digicomp.h b/d1x-rebirth/main/digicomp.h deleted file mode 100644 index 5bd56d88a..000000000 --- a/d1x-rebirth/main/digicomp.h +++ /dev/null @@ -1,46 +0,0 @@ -/* -THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX -SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO -END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A -ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS -IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS -SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE -FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE -CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS -AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. -COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. -*/ -/* - * $Source: /cvsroot/dxx-rebirth/d1x-rebirth/main/digicomp.h,v $ - * $Revision: 1.1.1.1 $ - * $Author: zicodxx $ - * $Date: 2006/03/17 19:42:51 $ - * - * prototypes for digicomp.c - * - * $Log: digicomp.h,v $ - * Revision 1.1.1.1 2006/03/17 19:42:51 zicodxx - * initial import - * - * Revision 1.1.1.1 1999/06/14 22:12:14 donut - * Import of d1x 1.37 source. - * - * Revision 2.0 1995/02/27 11:27:54 john - * New version 2.0, which has no anonymous unions, builds with - * Watcom 10.0, and doesn't require parsing BITMAPS.TBL. - * - * Revision 1.2 1994/12/07 18:42:30 john - * Initial, unused version.. - * - * Revision 1.1 1994/12/05 09:37:23 john - * Initial revision - * - * - */ - - - -#ifndef _DIGICOMP_H -#define _DIGICOMP_H - -#endif