commit 1565ff6b476998324ec3793de3a422acfc4d2db6
parent aaf5dab245f9ac7b126a369be4798b4966b904b8
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Thu, 31 Dec 2015 16:34:08 +0100
Removing optional filters for PCBoard sequences
Diffstat:
2 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/src/alconfig.h b/src/alconfig.h
@@ -15,8 +15,6 @@
// configuration defines
#define VERSION "3.0.0"
-#define PCBOARD_STRIP_CODES "@POFF@,@WAIT@"
-
#define DIZ_EXTENSIONS ".diz,.ion"
#define SUBSTITUTE_BREAK "1"
diff --git a/src/ansilove.c b/src/ansilove.c
@@ -998,6 +998,7 @@ void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int
// some type declarations
struct fontStruct fontData;
int32_t columns = 80;
+ int32_t loop, structIndex;
// font selection
alSelectFont(&fontData, font);
@@ -1034,20 +1035,6 @@ void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int
// libgd image pointers
gdImagePtr im_PCB;
-
- // defines for stripping PCBoard codes
- char *stripped_file_buffer;
- char **pcbStripCodes;
- int32_t stripCount, loop, structIndex;
-
- // create array of PCBoard strip codes defined in alconfig.h
- stripCount = explode(&pcbStripCodes, ',', PCBOARD_STRIP_CODES);
-
- // remove all specified PCB strip code occurances in input_file_buffer
- for (loop = 0; loop < stripCount; loop++) {
- stripped_file_buffer = str_replace((const char *)input_file_buffer, pcbStripCodes[loop], "");
- input_file_buffer = (unsigned char *)stripped_file_buffer;
- }
// process PCBoard
int32_t character, current_character, next_character;