diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2007-07-14 14:21:56 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2007-07-14 14:21:56 +0000 |
commit | 9d03915068c7f2440a80d00ed6e2d5a6e1521fb2 (patch) | |
tree | 26d8aea833d0e17a6c234716177d877ff9c9753b /japanese/vflib | |
parent | df0787c535eac609a4006dc9e799ea973e2024e2 (diff) |
- Fix build with gcc42
PR: ports/113318
Submitted by: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
Approved by: maintainer timeout (mita; 1 month)
Notes
Notes:
svn path=/head/; revision=195575
Diffstat (limited to 'japanese/vflib')
-rw-r--r-- | japanese/vflib/files/patch-VF_FNTWV.c | 42 | ||||
-rw-r--r-- | japanese/vflib/files/patch-fman.c | 115 |
2 files changed, 157 insertions, 0 deletions
diff --git a/japanese/vflib/files/patch-VF_FNTWV.c b/japanese/vflib/files/patch-VF_FNTWV.c new file mode 100644 index 000000000000..2492b080cf3f --- /dev/null +++ b/japanese/vflib/files/patch-VF_FNTWV.c @@ -0,0 +1,42 @@ +--- src/VF_FNTWV.c.orig Wed May 30 13:03:47 2001 ++++ src/VF_FNTWV.c Mon Jun 4 16:11:58 2007 +@@ -177,13 +177,13 @@ + + + ++Private int ReadCapa(); + Public FontObj* + CreateFont_FontWave(ent) + char *ent; + { + Font *font; + FontObj *fobj; +- Private int ReadCapa(); + + if ((font = (Font*) malloc(sizeof(Font))) == NULL){ + printf("in CreateFont malloc() Error!\n"); +@@ -217,22 +217,20 @@ + } + + ++Private int FNTWVOpenFont(); + Private int + OpenFont(obj) + FontObj *obj; + { +- Private int FNTWVOpenFont(); +- + return FNTWVOpenFont((Font*) obj->Locals); + } + + ++Private int FNTWVCloseFont(); + Private int + CloseFont(obj) + FontObj *obj; + { +- Private int FNTWVCloseFont(); +- + return FNTWVCloseFont((Font*) obj->Locals); + } + diff --git a/japanese/vflib/files/patch-fman.c b/japanese/vflib/files/patch-fman.c new file mode 100644 index 000000000000..56eff4b7b662 --- /dev/null +++ b/japanese/vflib/files/patch-fman.c @@ -0,0 +1,115 @@ +--- src/fman.c.orig Mon May 10 17:05:20 1999 ++++ src/fman.c Mon Jun 4 16:08:50 2007 +@@ -471,6 +471,14 @@ + } + + ++Private void ++ReturnCache(cptr) ++ CACHE *cptr; ++{ ++ CDR_FREE_LIST(cptr) = FREE_LIST(); ++ FREE_LIST() = cptr; ++} ++ + /* + * CacheIt() --- cache it. The cache slot is moved into + * the head of the LRU list. +@@ -480,7 +488,6 @@ + int port; + { + CACHE *cptr; +- Private void ReturnCache(); + + if ((cptr = RequireCache()) == (CACHE*)NULL){ + fprintf(stderr, "VFlib: CacheIt() - error\n"); +@@ -521,19 +528,36 @@ + return cptr; + } + +-Private void +-ReturnCache(cptr) +- CACHE *cptr; +-{ +- CDR_FREE_LIST(cptr) = FREE_LIST(); +- FREE_LIST() = cptr; +-} +- + + /** + ** LRU LIST + **/ + ++Private int ++LRUPutTop2(cptr, f) ++ CACHE *cptr; ++ int f; ++{ ++ CACHE *cptr_f; ++ FILE_Port port; ++ int val; ++ ++ cptr_f = CacheLRUList.l_forw; ++ cptr->l_forw = cptr_f; ++ cptr_f->l_back = cptr; ++ cptr->l_back = &CacheLRUList; ++ CacheLRUList.l_forw = cptr; ++ ++ val = 0; ++ if (f == TRUE){ ++ port = cptr->port; ++ if (VFFM_Internal_Open(port) < 0) ++ val = -1; ++ } ++ ++ return val; ++} ++ + /* LRUMoveTop() - moves a cache block into the top of LRU list. + * THE CACHE *MUST* BE IN LRU LIST. + */ +@@ -542,7 +566,6 @@ + CACHE *cptr; + { + CACHE *cptr_b, *cptr_f; +- Private int LRUPutTop2(); + + cptr_b = cptr->l_back; + cptr_f = cptr->l_forw; +@@ -558,36 +581,9 @@ + LRUPutTop(cptr) + CACHE *cptr; + { +- Private int LRUPutTop2(); +- + return LRUPutTop2(cptr, TRUE); + } + +-Private int +-LRUPutTop2(cptr, f) +- CACHE *cptr; +- int f; +-{ +- CACHE *cptr_f; +- FILE_Port port; +- int val; +- +- cptr_f = CacheLRUList.l_forw; +- cptr->l_forw = cptr_f; +- cptr_f->l_back = cptr; +- cptr->l_back = &CacheLRUList; +- CacheLRUList.l_forw = cptr; +- +- val = 0; +- if (f == TRUE){ +- port = cptr->port; +- if (VFFM_Internal_Open(port) < 0) +- val = -1; +- } +- +- return val; +-} +- + + Private int + LRUDeleteTail() |