summaryrefslogtreecommitdiff
path: root/print/tex-xdvik/files/patch-texk-xdvik-util.c
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-03-17 19:54:14 -0500
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-03-17 19:58:12 -0500
commit10cb4eaa8cc89aee25a8def73fd9470f75090d70 (patch)
tree58f5d7dbc6ae51b13e8dd4ebf5400a04a6b7c960 /print/tex-xdvik/files/patch-texk-xdvik-util.c
parentsysutils/screen: Update to 4.9.0 (diff)
print/tex-xdvik: Update version 22.87=>22.87.06
While upgradingthe extra japanese ptex patches has been removed as those are not compatible with latest version and the old patches are also from early 2008. If someone make those work with the new version the patches are welcome. For further details or the older version of tex-xdvik with those patches please use japanese/ja-tex-xdvik Relnotes: https://sourceforge.net/projects/xdvi/files/xdvik/22.87.06/
Diffstat (limited to 'print/tex-xdvik/files/patch-texk-xdvik-util.c')
-rw-r--r--print/tex-xdvik/files/patch-texk-xdvik-util.c67
1 files changed, 0 insertions, 67 deletions
diff --git a/print/tex-xdvik/files/patch-texk-xdvik-util.c b/print/tex-xdvik/files/patch-texk-xdvik-util.c
deleted file mode 100644
index 2c1c820c96f8..000000000000
--- a/print/tex-xdvik/files/patch-texk-xdvik-util.c
+++ /dev/null
@@ -1,67 +0,0 @@
---- texk/xdvik/util.c.orig 2014-04-08 18:43:12 UTC
-+++ texk/xdvik/util.c
-@@ -215,6 +215,7 @@ struct debug_string_options debug_option
- { DBG_GUI, "gui", ", " },
- { DBG_FIND, "find", ", " },
- { DBG_FILES, "files", ", " },
-+ { DBG_PTEXFNT, "ptexfnt", ", " },
- { DBG_ALL, "all", "\n" },
- /* end marker */
- { 0, NULL, NULL }
-@@ -708,6 +709,38 @@ alloc_bitmap(struct bitmap *bitmap)
- bitmap->bits = xmalloc(size != 0 ? size : 1);
- }
-
-+void
-+clear_bitmap(struct bitmap *bitmap)
-+{
-+ memset(bitmap->bits, 0, bitmap->bytes_wide * bitmap->h);
-+}
-+
-+void
-+fill_bitmap(struct bitmap *bitmap)
-+{
-+ memset(bitmap->bits, 0xff, bitmap->bytes_wide * bitmap->h);
-+}
-+
-+void
-+order_reverse_bitmap(struct bitmap *bitmap)
-+{
-+ int i, size = bitmap->bytes_wide * bitmap->h;
-+ unsigned char *p = (unsigned char *)bitmap->bits;
-+ static unsigned char reverse_byte[0x100];
-+
-+ if (reverse_byte[1] == 0) { /* init reverse_byte[] */
-+ for (i=0; i<0x100; i++) {
-+ int src, dst = 0;
-+ for (src=1; src<0x100; src<<=1) {
-+ dst <<= 1;
-+ if (i & src) dst |= 1;
-+ }
-+ reverse_byte[i] = dst;
-+ }
-+ }
-+
-+ for (i=0; i<size; i++) p[i] = reverse_byte[p[i]];
-+}
-
- #ifndef HAVE_MEMICMP
- /*
-@@ -1581,6 +1614,8 @@ put_str_int_hash(hashTableT *hashtable,
- }
-
-
-+#if FREETYPE || PS
-+
- /*
- * General AVL tree mechanism. Search for a node, and return it if found.
- * Otherwise insert a node.
-@@ -1712,6 +1747,8 @@ avladd(const char *key, size_t key_len,
- return ap;
- }
-
-+#endif /* FREETYPE || PS */
-+
-
- /* set globals.dvi_name, globals.dvi_file.dirname and globals.dvi_file.dirlen */
- void