Update to 0.74

PR:		ports/92262
Submitted by:	Vyacheslav Anikin (maintainer)
This commit is contained in:
Andrey Slusar 2006-01-24 17:19:51 +00:00
parent 3b41e440b5
commit c959721ff2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154362
4 changed files with 5 additions and 67 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= rux
PORTVERSION= 0.73
PORTVERSION= 0.74
CATEGORIES= russian
MASTER_SITES= http://asdf2087.narod.ru/

View File

@ -1,4 +1,4 @@
MD5 (rux-0.73.tar.gz) = 4ac6590890fda2b79a470eecf1cabe36
SHA1 (rux-0.73.tar.gz) = bc0f814ec37fd8824e79a3a77437df706e5e7c64
SHA256 (rux-0.73.tar.gz) = fb9a24e672abf0ae84c1a8fa9dbb6d1e89cb8d32691d2c96c031e9dd4fae60e3
SIZE (rux-0.73.tar.gz) = 8584
MD5 (rux-0.74.tar.gz) = 43882cd8b2bed2a51f79b8915c65a3ba
SHA1 (rux-0.74.tar.gz) = b9303367fe8f2aaacbd6d82de2450443aea19775
SHA256 (rux-0.74.tar.gz) = 87a33b355d003ca0b9efe3e8330ccc73e0e8f42139092841cf8d9c5603ad732e
SIZE (rux-0.74.tar.gz) = 9388

View File

@ -1,26 +0,0 @@
--- cpdetect.c.orig Sat Dec 24 18:32:27 2005
+++ cpdetect.c Sun Jan 1 15:57:17 2006
@@ -64,6 +64,8 @@
struct cpinfo *in_cp = def_cp;
for (cur_cp = cp; cur_cp->cp_name; cur_cp++) {
+ u_char *p;
+ float cur_exp = .0; /* an expectancy of current code page */
memset(tab, 255, sizeof(tab));
memset(freq, 0, sizeof(freq));
@@ -71,13 +73,11 @@
tab[cur_cp->cp_data[i]] = i;
}
- u_char *p = buf + len - 1;
+ p = buf + len - 1;
while ((p - buf) >= 0) {
++freq[tab[*p--]]; /* freq[0xff] is a heap :) */
}
-
- float cur_exp = .0; /* an expectancy of current code page */
for (i = 0; i < cp_size; i++) {
float freq_factor = freq[i] / (float)len;

View File

@ -1,36 +0,0 @@
--- rux.c.orig Sun Dec 25 00:22:01 2005
+++ rux.c Sun Jan 1 15:46:52 2006
@@ -70,9 +70,10 @@
extern int optind;
char *buf = NULL; /* analizing buffer */
+ int flag;
+ int readstdin = 0; /* read from stdin */
o_cp = &codepage[2]; /* sets koi8-r as default outcp */
- int flag;
while ((flag = getopt(argc, argv, "i:o:thegTs:")) != -1) {
switch (flag) {
@@ -133,19 +134,18 @@
}
}
- int readstdin = 0; /* read from stdin */
-
if (argc == 0)
readstdin = 1;
while (1) {
+ int buflen = 0;
+
if (readstdin) {
in = stdin;
} else if ((in = fopen(*argv, "r")) == NULL) {
perror(*argv);
return errno;
}
- int buflen = 0;
if (fdetect) {
buflen = fread(buf, 1, ansize, in);