summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <Pixel>2002-05-28 20:07:17 +0000
committerPixel <Pixel>2002-05-28 20:07:17 +0000
commitfef24239144eb44f2a29f32c7272a1dd725dbe37 (patch)
tree573b875ce64f008a3092d7d867a52a32e120a4bd
parente2fa0166aa8cb791e2e7d8b47adb6e07cbfcc549 (diff)
lzss fixing
-rwxr-xr-xMakefile2
-rw-r--r--lzss.cpp6
-rw-r--r--lzss.h8
3 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index f285d59..f95b372 100755
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ TARGET = lzss dlzss yazedc cd-tool dte-tool
all: ${TARGET}
lzss: lzss.cpp lzss.h generic.cpp generic.h fileutils.h fileutils.cpp
- ${CXX} ${CPPFLAGS} ${LDFLAGS} -Dlzss_MAIN lzss.cpp generic.cpp fileutils.cpp -o lzss
+ ${CXX} ${CPPFLAGS} ${LDFLAGS} -DLZSS_MAIN lzss.cpp generic.cpp fileutils.cpp -o lzss
dlzss: lzss
ln -fs lzss dlzss
diff --git a/lzss.cpp b/lzss.cpp
index 6e19bf3..d7e4871 100644
--- a/lzss.cpp
+++ b/lzss.cpp
@@ -437,7 +437,7 @@ void lzss_comp(FILE * f_source, FILE * f_cible, long * delta) {
free(r);
}
-#ifdef lzss_MAIN
+#ifdef LZSS_MAIN
char * fn1, * fn2, * pname;
@@ -572,8 +572,8 @@ int main(int argc, char ** argv) {
compress = 0;
}
- printm(M_BARE,
-lzss_NAME " compressor/decompressor version " lzss_VERSION ",\n"
+ printm(M_BARE, /*
+LZSS_MAIN " compressor/decompressor version " LZSS_VERSION ",\n" */
"Copyright (C) 2002 Nicolas \"Pixel\" Noble\n"
"This software comes with ABSOLUTELY NO WARRANTY; see COPYING for details\n"
"Thanks to Czar Dragon, for his little 'lzss' schemes FAQ.\n"
diff --git a/lzss.h b/lzss.h
index e26cfc6..c0d05b8 100644
--- a/lzss.h
+++ b/lzss.h
@@ -17,14 +17,14 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef __LZ77_H__
-#define __lZ77_H__
+#ifndef __LZSS_H__
+#define __LZSS_H__
#include <stdio.h>
#include <generic.h>
-#define LZ77_VERSION "3.0.0-pre1"
-#define LZ77_NAME "LZ77"
+#define LZSS_VERSION "3.0.0-pre1"
+#define LZSS_NAME "lzss"
typedef struct {
char * name;