FreeBSD Bugzilla – Attachment 164833 Details for
Bug 205707
Improve parsing of BDFs by vtfontcvt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow BDF-characters to appear out of order
p-order.diff (text/plain), 855 bytes, created by
Mikhail Teterin
on 2015-12-30 00:17:35 UTC
(
hide
)
Description:
Allow BDF-characters to appear out of order
Filename:
MIME Type:
Creator:
Mikhail Teterin
Created:
2015-12-30 00:17:35 UTC
Size:
855 bytes
patch
obsolete
>Index: vtfontcvt.c >=================================================================== >--- vtfontcvt.c (revision 292831) >+++ vtfontcvt.c (working copy) >@@ -109,7 +109,7 @@ > static int > add_mapping(struct glyph *gl, unsigned int c, unsigned int map_idx) > { >- struct mapping *mp; >+ struct mapping *mp, *mp_temp = NULL; > struct mapping_list *ml; > > mapping_total++; >@@ -120,10 +120,14 @@ > mp->m_length = 0; > > ml = &maps[map_idx]; >- if (TAILQ_LAST(ml, mapping_list) != NULL && >- TAILQ_LAST(ml, mapping_list)->m_char >= c) >- errx(1, "Bad ordering at character %u\n", c); >- TAILQ_INSERT_TAIL(ml, mp, m_list); >+ TAILQ_FOREACH(mp_temp, ml, m_list) { >+ if (mp_temp->m_char >= c) >+ break; >+ } >+ if (mp_temp == NULL) >+ TAILQ_INSERT_TAIL(ml, mp, m_list); >+ else >+ TAILQ_INSERT_BEFORE(mp_temp, mp, m_list); > > map_count[map_idx]++; > mapping_unique++;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205707
:
164832
| 164833 |
168728
|
180939
|
180943
|
194668
|
199764
|
199765
|
205123