Skip to content

Commit

Permalink
Minor Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
KaseyJenkins committed Oct 16, 2021
1 parent ea0018e commit efa4a1d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 188 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/CMakeLinux.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/CMakeMacOS.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/CMakeWindows.yml

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## `dictzip` for Windows
## `dictzip` for Windows 10 (x64)

This project provides `dictzip` utility for Windows 10, built with [MinGW-w64 9.0.0](https://github.com/brechtsanders/winlibs_mingw/releases/tag/11.2.0-12.0.1-9.0.0-r1).
It requires no additional dependencies.
This project provides `dictzip` utility for Windows 10 (x64), built with [MinGW-w64 9.0.0](https://github.com/brechtsanders/winlibs_mingw/releases/tag/11.2.0-12.0.1-9.0.0-r1).

It requires no additional dependencies and is meant to be used primarily for compressing ABBYY Lingvo .dsl source files
(one of the [GoldenDict's](https://github.com/goldendict/goldendict) supported dictionary file formats).

The source files are based on the official [dictd](http://sourceforge.net/projects/dict/) v1.13.0,
with minor tweaks.
Expand Down
1 change: 0 additions & 1 deletion src/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include "zlib.h"
#include <stdio.h>
#include <errno.h>

#define PRINTF(flag, arg) if (dbg_test(flag)) { log_info arg; }

Expand Down
59 changes: 12 additions & 47 deletions src/dictzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef _TRUNCATE
#define _TRUNCATE ((size_t)-1)
#endif




#include "dictzip.h"
#include "data.h"
Expand Down Expand Up @@ -446,48 +440,19 @@ int main(int argc, char **argv) {
"cdfhklLe:E:s:S:tvVD:p:P:",
longopts, NULL)) != EOF)
switch (c) {
case 'd':
++decompressFlag;
break;
case 'f':
++forceFlag;
break;
case 'k':
++keepFlag;
break;
case 'l':
++listFlag;
break;
case 'L':
license();
exit(1);
break;
case 'c':
++stdoutFlag;
break;
case 't':
++testFlag;
break;
case 'v':
++verboseFlag;
break;
case 'V':
banner();
exit(1);
break;
case 's':
++decompressFlag;
clStart = strtoul(optarg, NULL, 10);
break;
case 'e':
++decompressFlag;
clSize = strtoul(optarg, NULL, 10);
break;
case 'd': ++decompressFlag; break;
case 'f': ++forceFlag; break;
case 'k': ++keepFlag; break;
case 'l': ++listFlag; break;
case 'L': license(); exit( 1 ); break;
case 'c': ++stdoutFlag; break;
case 't': ++testFlag; break;
case 'v': ++verboseFlag; break;
case 'V': banner(); exit( 1 ); break;
case 's': ++decompressFlag; clStart = strtoul( optarg, NULL, 10 ); break;
case 'e': ++decompressFlag; clSize = strtoul( optarg, NULL, 10 ); break;
default:
case 'h':
help();
exit(1);
break;
case 'h': help(); exit(1); break;
}

if (testFlag) ++listFlag;
Expand Down

0 comments on commit efa4a1d

Please sign in to comment.