diff options
author | Ole Loots <ole@monochrom.net> | 2013-01-31 19:28:26 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-01-31 19:28:26 +0100 |
commit | 0703404654d2a40cacae2d94c6e0e22ca28b4acf (patch) | |
tree | bfdbe1e8952814f73a6b0e190ae0a77fd0cfc7bd /utils/tt2code | |
parent | 54f719aa960159c5b1978846223732c9669ca7fa (diff) | |
parent | 89856f55929907642013e45435b9d18cd1fafe36 (diff) | |
download | netsurf-0703404654d2a40cacae2d94c6e0e22ca28b4acf.tar.gz netsurf-0703404654d2a40cacae2d94c6e0e22ca28b4acf.tar.bz2 |
Merge branch 'master' into mono/removing-windom-dependencymono/removing-windom-dependency
Conflicts:
atari/toolbar.c
Diffstat (limited to 'utils/tt2code')
-rwxr-xr-x | utils/tt2code | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/utils/tt2code b/utils/tt2code deleted file mode 100755 index 170954da1..000000000 --- a/utils/tt2code +++ /dev/null @@ -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 - |