Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 97958 Details for
Bug 148961
dev-libs/wnn7sdk-20011017 fails to build with gcc-4.1.1/not modular X ready
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
wnn-function-ordering.patch
wnn-function-ordering.patch (text/plain), 3.04 KB, created by
Gilles Dartiguelongue (RETIRED)
on 2006-09-24 10:03:14 UTC
(
hide
)
Description:
wnn-function-ordering.patch
Filename:
MIME Type:
Creator:
Gilles Dartiguelongue (RETIRED)
Created:
2006-09-24 10:03:14 UTC
Size:
3.04 KB
patch
obsolete
>--- Wnn/etc/bdic.c.old 2006-09-24 18:54:41.000000000 +0200 >+++ Wnn/etc/bdic.c 2006-09-24 18:41:12.000000000 +0200 >@@ -1013,6 +1013,50 @@ > } > > #ifdef WNN_CHECK_INODE >+ >+static >+int >+check_inode(f, fh) >+FILE *f; >+struct wnn_file_head *fh; >+{ >+ struct stat buf; >+ if(fstat(fileno(f), &buf) == -1){ >+ return(-1); >+ } >+ if((int)buf.st_ino != fh->file_uniq.inode){ >+ return(-1); >+ } >+ return(0); >+} >+ >+/*:::DOC_START >+ * >+ * Function Name: dic_check_inode >+ * Description : check i-node of file >+ * Parameter : >+ * f: (In) file pointer for dictionary file >+ * fh: (In) file header >+ * >+ * Return value : check result, 0: same, -1: different >+ * >+ * Revision history: >+ * 22-Sep-94: initial >+ * >+ *:::DOC_END >+ */ >+#ifdef JS >+static >+#endif >+int >+dic_check_inode(f, fh) >+FILE *f; >+struct wnn_file_head *fh; >+{ >+ return(check_inode(f, fh)); >+} /* End of dic_check_inode */ >+ >+#ifdef WNN_CHECK_INODE > static > #else > #ifdef JS >@@ -1050,59 +1094,15 @@ > strncpy(fh.file_uniq_org.createhost, file_uniq->createhost, WNN_HOSTLEN - 1); > > fh.file_type = file_type; >- if(file_passwd){ >+ if(file_passwd) { > strncpy(fh.file_passwd, file_passwd, WNN_PASSWD_LEN); >- } else{ >+ } else { > memset(fh.file_passwd, 0, WNN_PASSWD_LEN); > } > if(output_file_header(ofpter, &fh) == -1) return(-1); > return(0); > } > >-#ifdef WNN_CHECK_INODE >- >-static >-int >-check_inode(f, fh) >-FILE *f; >-struct wnn_file_head *fh; >-{ >- struct stat buf; >- if(fstat(fileno(f), &buf) == -1){ >- return(-1); >- } >- if((int)buf.st_ino != fh->file_uniq.inode){ >- return(-1); >- } >- return(0); >-} >- >-/*:::DOC_START >- * >- * Function Name: dic_check_inode >- * Description : check i-node of file >- * Parameter : >- * f: (In) file pointer for dictionary file >- * fh: (In) file header >- * >- * Return value : check result, 0: same, -1: different >- * >- * Revision history: >- * 22-Sep-94: initial >- * >- *:::DOC_END >- */ >-#ifdef JS >-static >-#endif >-int >-dic_check_inode(f, fh) >-FILE *f; >-struct wnn_file_head *fh; >-{ >- return(check_inode(f, fh)); >-} /* End of dic_check_inode */ >- > #ifdef JS > static > #endif >--- Wnn/jlib/jl.c.old 2006-09-24 18:48:51.000000000 +0200 >+++ Wnn/jlib/jl.c 2006-09-24 18:50:09.000000000 +0200 >@@ -558,7 +558,18 @@ > )); > } > >+static void >+jl_disconnect_if_server_dead_body_by_jsid(jsid) >+register WNN_JSERVER_ID *jsid; >+{ >+ register struct wnn_env_int *same_env; > >+ while ((same_env = find_env_of_same_js_id(jsid)) != 0) { >+ if (delete_env(same_env)) >+ js_disconnect((WNN_ENV *)same_env); >+ } >+ js_close(jsid); >+} > > static struct wnn_env * > jl_connect_lang_core(env_n, server_n, lang, wnnrc_n, >@@ -734,19 +745,6 @@ > js_close(js_id); > } > >-static void >-jl_disconnect_if_server_dead_body_by_jsid(jsid) >-register WNN_JSERVER_ID *jsid; >-{ >- register struct wnn_env_int *same_env; >- >- while ((same_env = find_env_of_same_js_id(jsid)) != 0) { >- if (delete_env(same_env)) >- js_disconnect((WNN_ENV *)same_env); >- } >- js_close(jsid); >-} >- > void > jl_disconnect_if_server_dead(env) > register struct wnn_env *env;
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 148961
: 97958