mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Remove code that hasn't been used since 2004.
This commit is contained in:
parent
d7ddfd6ac3
commit
261528747c
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,7 +15,6 @@ windows/res/preferences
|
|||||||
test/nsurl
|
test/nsurl
|
||||||
test/urldbtest
|
test/urldbtest
|
||||||
test/llcache
|
test/llcache
|
||||||
utils/translit.c
|
|
||||||
utils/testament.h
|
utils/testament.h
|
||||||
codedocs
|
codedocs
|
||||||
nsgtk
|
nsgtk
|
||||||
|
@ -74,21 +74,3 @@ S_BROWSER := $(addprefix desktop/,$(S_BROWSER))
|
|||||||
content/fetchers/about.c: testament utils/testament.h
|
content/fetchers/about.c: testament utils/testament.h
|
||||||
desktop/version.c: testament utils/testament.h
|
desktop/version.c: testament utils/testament.h
|
||||||
|
|
||||||
# Some extra rules for building the transliteration table.
|
|
||||||
ifeq ($(HOST),riscos)
|
|
||||||
utils/translit.c: transtab
|
|
||||||
$(VQ)echo "TRANSTAB: utils/translit.c"
|
|
||||||
$(Q)dir utils
|
|
||||||
$(Q)$(PERL) tt2code < transtab > translit.c
|
|
||||||
$(Q)dir ^
|
|
||||||
else
|
|
||||||
utils/translit.c: transtab
|
|
||||||
$(VQ)echo "TRANSTAB: utils/translit.c"
|
|
||||||
$(Q)cd utils; $(PERL) tt2code < transtab > translit.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
clean-intermediates:
|
|
||||||
$(VQ)echo " CLEAN: intermediates"
|
|
||||||
$(Q)$(RM) utils/translit.c
|
|
||||||
|
|
||||||
CLEANS += clean-intermediates
|
|
||||||
|
1688
utils/transtab
1688
utils/transtab
File diff suppressed because it is too large
Load Diff
@ -1,60 +0,0 @@
|
|||||||
#!/usr/bin/perl -W
|
|
||||||
|
|
||||||
print <<END;
|
|
||||||
/*
|
|
||||||
* This file is part of NetSurf, http://netsurf-browser.org/
|
|
||||||
* Licensed under the GNU General Public License,
|
|
||||||
* http://www.opensource.org/licenses/gpl-license
|
|
||||||
* Copyright 2003 James Bursa <bursa\@users.sourceforge.net>
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "utils/utils.h"
|
|
||||||
|
|
||||||
void unicode_transliterate(unsigned int c, char **r)
|
|
||||||
{
|
|
||||||
char *s = *r;
|
|
||||||
switch (c) {
|
|
||||||
|
|
||||||
END
|
|
||||||
|
|
||||||
LINE: while (<>) {
|
|
||||||
chomp;
|
|
||||||
next if m/^%/;
|
|
||||||
next if m/^ *$/;
|
|
||||||
|
|
||||||
m/^<U([0-9A-F]{4})> /g or die "invalid line '$_'";
|
|
||||||
$z = $1;
|
|
||||||
next if (hex($z) < 256);
|
|
||||||
|
|
||||||
SUBST: while (m/\G"?((<U([0-9A-F]{4})>)*)"?;?/g) {
|
|
||||||
next if $& eq '';
|
|
||||||
$m = $1;
|
|
||||||
if ($m eq '') {
|
|
||||||
print "case 0x$z: break;\n";
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
chop $m;
|
|
||||||
@s = split /></, substr $m, 1;
|
|
||||||
foreach $s (@s) {
|
|
||||||
$s = substr $s, 1;
|
|
||||||
next SUBST if 255 < hex($s);
|
|
||||||
}
|
|
||||||
|
|
||||||
print "case 0x$z: ";
|
|
||||||
foreach $s (@s) {
|
|
||||||
print "*s++ = 0x$s; ";
|
|
||||||
}
|
|
||||||
print "break;\n";
|
|
||||||
next LINE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<END;
|
|
||||||
|
|
||||||
default: *s++ = '?'; break;
|
|
||||||
}
|
|
||||||
|
|
||||||
*r = s;
|
|
||||||
}
|
|
||||||
END
|
|
||||||
|
|
@ -153,7 +153,6 @@ char *remove_underscores(const char *s, bool replacespace);
|
|||||||
char *cnv_space2nbsp(const char *s);
|
char *cnv_space2nbsp(const char *s);
|
||||||
bool is_dir(const char *path);
|
bool is_dir(const char *path);
|
||||||
void regcomp_wrapper(regex_t *preg, const char *regex, int cflags);
|
void regcomp_wrapper(regex_t *preg, const char *regex, int cflags);
|
||||||
void unicode_transliterate(unsigned int c, char **r);
|
|
||||||
char *human_friendly_bytesize(unsigned long bytesize);
|
char *human_friendly_bytesize(unsigned long bytesize);
|
||||||
const char *rfc1123_date(time_t t);
|
const char *rfc1123_date(time_t t);
|
||||||
unsigned int wallclock(void);
|
unsigned int wallclock(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user