Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [191922] Maximize Restore History

"Commit"

Andrea Mazzoleni Andrea Mazzoleni 2002-08-10

1 2 3 > >> (Page 1 of 3)
added advmng.1
added advpng.1
added autogen.sh
added compress.cc
added compress.h
added endianrw.h
added fz.c
added fz.h
added mng.c
added mng.h
added noautomake.sh
added png.c
added png.h
added pngex.cc
added pngex.h
added remng.cc
added repng.cc
changed 7z
changed 7z/7z.h
changed 7z/7zdeflate.cc
changed 7z/7zlzma.cc
changed 7z/IInOutStreams.h
changed HISTORY
changed Makefile.am
changed Makefile.in
changed README
changed advdiff.1
changed advscan.1
changed advzip.1
changed analyze.cc
changed analyze.h
changed check.lst
changed conf.cc
changed conf.h
changed configure
changed configure.ac
changed diff.cc
changed game.cc
changed game.h
changed gamediff.cc
changed gamediff.h
changed operatio.h
changed output.cc
changed output.h
changed readinfo.c
changed readinfo.h
changed rezip.cc
changed rom.cc
changed rom.h
changed scan.cc
changed siglock.cc
changed siglock.h
changed utility.cc
changed utility.h
changed zip.cc
changed zip.h
changed ziprom.cc
changed ziprom.h
changed zipsh.cc
copied ziperr.h -> error.h
advmng.1 Diff Switch to side-by-side view
Loading...
advpng.1 Diff Switch to side-by-side view
Loading...
autogen.sh Diff Switch to side-by-side view
Loading...
compress.cc Diff Switch to side-by-side view
Loading...
compress.h Diff Switch to side-by-side view
Loading...
endianrw.h Diff Switch to side-by-side view
Loading...
fz.c Diff Switch to side-by-side view
Loading...
fz.h Diff Switch to side-by-side view
Loading...
mng.c Diff Switch to side-by-side view
Loading...
mng.h Diff Switch to side-by-side view
Loading...
noautomake.sh Diff Switch to side-by-side view
Loading...
png.c Diff Switch to side-by-side view
Loading...
png.h Diff Switch to side-by-side view
Loading...
pngex.cc Diff Switch to side-by-side view
Loading...
pngex.h Diff Switch to side-by-side view
Loading...
remng.cc Diff Switch to side-by-side view
Loading...
repng.cc Diff Switch to side-by-side view
Loading...
7z
Directory.
7z/7z.h Diff Switch to side-by-side view
Loading...
7z/7zdeflate.cc Diff Switch to side-by-side view
Loading...
7z/7zlzma.cc Diff Switch to side-by-side view
Loading...
7z/IInOutStreams.h Diff Switch to side-by-side view
Loading...
HISTORY Diff Switch to side-by-side view
Loading...
Makefile.am Diff Switch to side-by-side view
Loading...
Makefile.in Diff Switch to side-by-side view
Loading...
README Diff Switch to side-by-side view
Loading...
advdiff.1 Diff Switch to side-by-side view
Loading...
advscan.1 Diff Switch to side-by-side view
Loading...
advzip.1 Diff Switch to side-by-side view
Loading...
analyze.cc Diff Switch to side-by-side view
Loading...
analyze.h Diff Switch to side-by-side view
Loading...
check.lst Diff Switch to side-by-side view
Loading...
conf.cc Diff Switch to side-by-side view
Loading...
conf.h Diff Switch to side-by-side view
Loading...
configure Diff Switch to side-by-side view
Loading...
configure.ac Diff Switch to side-by-side view
Loading...
diff.cc Diff Switch to side-by-side view
Loading...
game.cc Diff Switch to side-by-side view
Loading...
game.h Diff Switch to side-by-side view
Loading...
gamediff.cc Diff Switch to side-by-side view
Loading...
gamediff.h Diff Switch to side-by-side view
Loading...
operatio.h Diff Switch to side-by-side view
Loading...
output.cc Diff Switch to side-by-side view
Loading...
output.h Diff Switch to side-by-side view
Loading...
readinfo.c Diff Switch to side-by-side view
Loading...
readinfo.h Diff Switch to side-by-side view
Loading...
rezip.cc Diff Switch to side-by-side view
Loading...
rom.cc Diff Switch to side-by-side view
Loading...
rom.h Diff Switch to side-by-side view
Loading...
scan.cc Diff Switch to side-by-side view
Loading...
siglock.cc Diff Switch to side-by-side view
Loading...
siglock.h Diff Switch to side-by-side view
Loading...
utility.cc Diff Switch to side-by-side view
Loading...
utility.h Diff Switch to side-by-side view
Loading...
zip.cc Diff Switch to side-by-side view
Loading...
zip.h Diff Switch to side-by-side view
Loading...
ziprom.cc Diff Switch to side-by-side view
Loading...
ziprom.h Diff Switch to side-by-side view
Loading...
zipsh.cc Diff Switch to side-by-side view
Loading...
ziperr.h to error.h
--- a/ziperr.h
+++ b/error.h
@@ -1,5 +1,5 @@
 /*
- * This file is part of the AdvanceSCAN project.
+ * This file is part of the Advance project.
  *
  * Copyright (C) 1998-2002 Andrea Mazzoleni
  *
@@ -18,8 +18,8 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#ifndef __ZIPERROR_H
-#define __ZIPERROR_H
+#ifndef __ERROR_H
+#define __ERROR_H
 
 #include <string>
 #include <sstream>
@@ -29,12 +29,17 @@
 	std::string file;
 	unsigned line;
 	std::string desc;
+	bool ignore;
 public:
-	error() : line(0)
+	error() : line(0), ignore(false)
 	{
 	}
 
-	error(const char* Afunction, const char* Afile, unsigned Aline) : function(Afunction), file(Afile), line(Aline)
+	error(bool Aignore) : line(0), ignore(Aignore)
+	{
+	}
+
+	error(const char* Afunction, const char* Afile, unsigned Aline) : function(Afunction), file(Afile), line(Aline), ignore(false)
 	{
 	}
 
@@ -56,6 +61,11 @@
 	unsigned line_get() const
 	{
 		return line;
+	}
+
+	bool ignore_get() const
+	{
+		return ignore;
 	}
 
 	error& operator<<(const char* A)
@@ -80,14 +90,25 @@
 
 };
 
-#define error() \
+class error_ignore : public error {
+public:
+	error_ignore() : error(true)
+	{
+	}
+};
+
+#ifndef NDEBUG
+#define error_trace() \
 	error(__PRETTY_FUNCTION__,__FILE__,__LINE__)
+#else
+#define error_trace() error()
+#endif
 
 static inline std::ostream& operator<<(std::ostream& os, const error& e) {
 	os << e.desc_get();
-#ifndef NDEBUG
-	os << " [at " << e.function_get() << ":" << e.file_get() << ":" << e.line_get() << "]";
-#endif
+
+	if (e.function_get().length() || e.file_get().length() || e.line_get())
+		os << " [at " << e.function_get() << ":" << e.file_get() << ":" << e.line_get() << "]";
 
 	return os;
 }
1 2 3 > >> (Page 1 of 3)