home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume18 / X11R5-fix12 / part05 < prev    next >
Encoding:
Text File  |  1992-07-20  |  16.7 KB  |  461 lines

  1. Newsgroups: comp.sources.x
  2. Path: uunet!zaphod.mps.ohio-state.edu!mips!msi!dcmartin
  3. From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler)
  4. Subject: v18i041: X11R5 public fix #12, Part05/05
  5. Message-ID: <1992Jul20.155724.2777@msi.com>
  6. Originator: dcmartin@fascet
  7. Sender: dcmartin@msi.com (David C. Martin - Moderator)
  8. Organization: Molecular Simulations, Inc.
  9. References: <csx-18i037-X11R5-fix12@uunet.UU.NET>
  10. Date: Mon, 20 Jul 1992 15:57:24 GMT
  11. Approved: dcmartin@msi.com
  12. Lines: 447
  13.  
  14. Submitted-by: rws@EXPO.LCS.MIT.EDU (Bob Scheifler)
  15. Posting-number: Volume 18, Issue 41
  16. Archive-name: X11R5-fix12/part05
  17.  
  18. #!/bin/sh
  19. # this is part.05 (part 5 of a multipart archive)
  20. # do not concatenate these parts, unpack them in order with /bin/sh
  21. # file fix-12 continued
  22. #
  23. if test ! -r _shar_seq_.tmp; then
  24.     echo 'Please unpack part 1 first!'
  25.     exit 1
  26. fi
  27. (read Scheck
  28.  if test "$Scheck" != 5; then
  29.     echo Please unpack part "$Scheck" next!
  30.     exit 1
  31.  else
  32.     exit 0
  33.  fi
  34. ) < _shar_seq_.tmp || exit 1
  35. if test ! -f _shar_wnt_.tmp; then
  36.     echo 'x - still skipping fix-12'
  37. else
  38. echo 'x - continuing file fix-12'
  39. sed 's/^X//' << 'SHAR_EOF' >> 'fix-12' &&
  40. ! /******************************************************************
  41. !               Copyright 1991, 1992 Sony Corporation
  42. ! Permission to use, copy, modify, distribute, and sell this software
  43. ! and its documentation for any purpose is hereby granted without fee,
  44. ! provided that the above copyright notice appear in all copies and
  45. ! that both that copyright notice and this permission notice appear
  46. ! in supporting documentation, and that the name of Sony not be used
  47. ! in advertising or publicity pertaining to distribution of the
  48. ! software without specific, written prior permission.
  49. ! Sony makes no representations about the suitability of this software
  50. ! for any purpose.  It is provided "as is" without express or implied
  51. ! warranty.
  52. !  
  53. ! SONY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  54. ! ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
  55. ! SHALL SONY BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  56. ! DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
  57. ! OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  58. ! TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  59. ! PERFORMANCE OF THIS SOFTWARE.
  60. !   Author: Masaki Takeuchi       Sony Corporation
  61. ! ******************************************************************/
  62. X  
  63. X  #include "Xlibint.h"
  64. X  #include "Xlcint.h"
  65. *** /tmp/d17492    Sun May  3 18:50:08 1992
  66. --- mit/lib/X/Ximp/XimpTxtEsc.c    Sun May  3 18:50:05 1992
  67. ***************
  68. *** 1,7 ****
  69. ! /* $XConsortium: XimpTxtEsc.c,v 1.1 91/07/09 17:37:28 rws Exp $ */
  70. X  /*
  71. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  72. !  * Copyright 1990, 1991 by SORD Computer Corp.
  73. X   *
  74. X   * Permission to use, copy, modify, distribute, and sell this software and its
  75. X   * documentation for any purpose is hereby granted without fee, provided that
  76. --- 1,7 ----
  77. ! /* $XConsortium: XimpTxtEsc.c,v 1.2 92/04/14 13:30:02 rws Exp $ */
  78. X  /*
  79. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  80. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  81. X   *
  82. X   * Permission to use, copy, modify, distribute, and sell this software and its
  83. X   * documentation for any purpose is hereby granted without fee, provided that
  84. ***************
  85. *** 29,35 ****
  86. X  
  87. X  /******************************************************************
  88. X  
  89. !               Copyright 1991, by FUJITSU LIMITED
  90. X  
  91. X  Permission to use, copy, modify, distribute, and sell this software
  92. X  and its documentation for any purpose is hereby granted without fee,
  93. --- 29,35 ----
  94. X  
  95. X  /******************************************************************
  96. X  
  97. !               Copyright 1991, 1992 by FUJITSU LIMITED
  98. X  
  99. X  Permission to use, copy, modify, distribute, and sell this software
  100. X  and its documentation for any purpose is hereby granted without fee,
  101. ***************
  102. *** 112,118 ****
  103. X          break;
  104. X  
  105. X          if (char_length < 2)
  106. !         width += XTextWidth(font, xchar_buf, tmp_len);
  107. X              else
  108. X          width += XTextWidth16(font, xchar2b_buf, tmp_len);
  109. X  
  110. --- 112,118 ----
  111. X          break;
  112. X  
  113. X          if (char_length < 2)
  114. !         width += XTextWidth(font, (char *)xchar_buf, tmp_len);
  115. X              else
  116. X          width += XTextWidth16(font, xchar2b_buf, tmp_len);
  117. X  
  118. *** /tmp/d17514    Sun May  3 18:50:19 1992
  119. --- mit/lib/X/Ximp/XimpTxtExt.c    Sun May  3 18:50:16 1992
  120. ***************
  121. *** 1,7 ****
  122. ! /* $XConsortium: XimpTxtExt.c,v 1.3 91/10/10 20:41:43 rws Exp $ */
  123. X  /*
  124. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  125. !  * Copyright 1990, 1991 by SORD Computer Corp.
  126. X   *
  127. X   * Permission to use, copy, modify, distribute, and sell this software and its
  128. X   * documentation for any purpose is hereby granted without fee, provided that
  129. --- 1,7 ----
  130. ! /* $XConsortium: XimpTxtExt.c,v 1.4 92/04/14 13:30:06 rws Exp $ */
  131. X  /*
  132. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  133. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  134. X   *
  135. X   * Permission to use, copy, modify, distribute, and sell this software and its
  136. X   * documentation for any purpose is hereby granted without fee, provided that
  137. ***************
  138. *** 29,35 ****
  139. X  
  140. X  /******************************************************************
  141. X  
  142. !               Copyright 1991, by FUJITSU LIMITED
  143. X  
  144. X  Permission to use, copy, modify, distribute, and sell this software
  145. X  and its documentation for any purpose is hereby granted without fee,
  146. --- 29,35 ----
  147. X  
  148. X  /******************************************************************
  149. X  
  150. !               Copyright 1991, 1992 by FUJITSU LIMITED
  151. X  
  152. X  Permission to use, copy, modify, distribute, and sell this software
  153. X  and its documentation for any purpose is hereby granted without fee,
  154. ***************
  155. *** 117,123 ****
  156. X          break;
  157. X  
  158. X          if (char_length < 2)
  159. !         XTextExtents(font, xchar_buf, tmp_len, &direction,
  160. X                   &tmp_ascent, &tmp_descent, &tmp_overall);
  161. X              else
  162. X          XTextExtents16(font, xchar2b_buf, tmp_len, &direction,
  163. --- 117,123 ----
  164. X          break;
  165. X  
  166. X          if (char_length < 2)
  167. !         XTextExtents(font, (char *)xchar_buf, tmp_len, &direction,
  168. X                   &tmp_ascent, &tmp_descent, &tmp_overall);
  169. X              else
  170. X          XTextExtents16(font, xchar2b_buf, tmp_len, &direction,
  171. *** /tmp/d17536    Sun May  3 18:50:30 1992
  172. --- mit/lib/X/Ximp/XimpTxtPer.c    Sun May  3 18:50:28 1992
  173. ***************
  174. *** 1,7 ****
  175. ! /* $XConsortium: XimpTxtPer.c,v 1.3 91/10/10 20:41:46 rws Exp $ */
  176. X  /*
  177. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  178. !  * Copyright 1990, 1991 by SORD Computer Corp.
  179. X   *
  180. X   * Permission to use, copy, modify, distribute, and sell this software and its
  181. X   * documentation for any purpose is hereby granted without fee, provided that
  182. --- 1,7 ----
  183. ! /* $XConsortium: XimpTxtPer.c,v 1.4 92/04/14 13:30:08 rws Exp $ */
  184. X  /*
  185. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  186. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  187. X   *
  188. X   * Permission to use, copy, modify, distribute, and sell this software and its
  189. X   * documentation for any purpose is hereby granted without fee, provided that
  190. ***************
  191. *** 29,35 ****
  192. X  
  193. X  /******************************************************************
  194. X  
  195. !               Copyright 1991, by FUJITSU LIMITED
  196. X  
  197. X  Permission to use, copy, modify, distribute, and sell this software
  198. X  and its documentation for any purpose is hereby granted without fee,
  199. --- 29,35 ----
  200. X  
  201. X  /******************************************************************
  202. X  
  203. !               Copyright 1991, 1992 by FUJITSU LIMITED
  204. X  
  205. X  Permission to use, copy, modify, distribute, and sell this software
  206. X  and its documentation for any purpose is hereby granted without fee,
  207. *** /tmp/d17558    Sun May  3 18:50:42 1992
  208. --- mit/lib/X/Ximp/XimpTxtPr.c    Sun May  3 18:50:39 1992
  209. ***************
  210. *** 1,7 ****
  211. ! /* $XConsortium: XimpTxtPr.c,v 1.2 91/10/07 17:50:45 rws Exp $ */
  212. X  /*
  213. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  214. !  * Copyright 1990, 1991 by SORD Computer Corp.
  215. X   *
  216. X   * Permission to use, copy, modify, distribute, and sell this software and its
  217. X   * documentation for any purpose is hereby granted without fee, provided that
  218. --- 1,7 ----
  219. ! /* $XConsortium: XimpTxtPr.c,v 1.3 92/04/14 13:30:11 rws Exp $ */
  220. X  /*
  221. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  222. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  223. X   *
  224. X   * Permission to use, copy, modify, distribute, and sell this software and its
  225. X   * documentation for any purpose is hereby granted without fee, provided that
  226. ***************
  227. *** 28,34 ****
  228. X  
  229. X  /******************************************************************
  230. X  
  231. !               Copyright 1991, by FUJITSU LIMITED
  232. X  
  233. X  Permission to use, copy, modify, distribute, and sell this software
  234. X  and its documentation for any purpose is hereby granted without fee,
  235. --- 28,34 ----
  236. X  
  237. X  /******************************************************************
  238. X  
  239. !               Copyright 1991, 1992 by FUJITSU LIMITED
  240. X  
  241. X  Permission to use, copy, modify, distribute, and sell this software
  242. X  and its documentation for any purpose is hereby granted without fee,
  243. *** /tmp/d17580    Sun May  3 18:50:54 1992
  244. --- mit/lib/X/Ximp/XimpWPer.c    Sun May  3 18:50:52 1992
  245. ***************
  246. *** 1,7 ****
  247. ! /* $XConsortium: XimpWPer.c,v 1.1 91/07/09 17:37:39 rws Exp $ */
  248. X  /*
  249. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  250. !  * Copyright 1990, 1991 by SORD Computer Corp.
  251. X   *
  252. X   * Permission to use, copy, modify, distribute, and sell this software and its
  253. X   * documentation for any purpose is hereby granted without fee, provided that
  254. --- 1,7 ----
  255. ! /* $XConsortium: XimpWPer.c,v 1.2 92/04/14 13:30:27 rws Exp $ */
  256. X  /*
  257. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  258. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  259. X   *
  260. X   * Permission to use, copy, modify, distribute, and sell this software and its
  261. X   * documentation for any purpose is hereby granted without fee, provided that
  262. ***************
  263. *** 29,35 ****
  264. X  
  265. X  /******************************************************************
  266. X  
  267. !               Copyright 1991, by FUJITSU LIMITED
  268. X  
  269. X  Permission to use, copy, modify, distribute, and sell this software
  270. X  and its documentation for any purpose is hereby granted without fee,
  271. --- 29,35 ----
  272. X  
  273. X  /******************************************************************
  274. X  
  275. !               Copyright 1991, 1992 by FUJITSU LIMITED
  276. X  
  277. X  Permission to use, copy, modify, distribute, and sell this software
  278. X  and its documentation for any purpose is hereby granted without fee,
  279. *** /tmp/d17602    Sun May  3 18:51:06 1992
  280. --- mit/lib/X/Ximp/XimpWPrTxt.c    Sun May  3 18:51:03 1992
  281. ***************
  282. *** 1,7 ****
  283. ! /* $XConsortium: XimpWPrTxt.c,v 1.2 91/10/07 17:50:54 rws Exp $ */
  284. X  /*
  285. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  286. !  * Copyright 1990, 1991 by SORD Computer Corp.
  287. X   *
  288. X   * Permission to use, copy, modify, distribute, and sell this software and its
  289. X   * documentation for any purpose is hereby granted without fee, provided that
  290. --- 1,7 ----
  291. ! /* $XConsortium: XimpWPrTxt.c,v 1.3 92/04/14 13:30:30 rws Exp $ */
  292. X  /*
  293. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  294. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  295. X   *
  296. X   * Permission to use, copy, modify, distribute, and sell this software and its
  297. X   * documentation for any purpose is hereby granted without fee, provided that
  298. ***************
  299. *** 28,34 ****
  300. X  
  301. X  /******************************************************************
  302. X  
  303. !               Copyright 1991, by FUJITSU LIMITED
  304. X  
  305. X  Permission to use, copy, modify, distribute, and sell this software
  306. X  and its documentation for any purpose is hereby granted without fee,
  307. --- 28,34 ----
  308. X  
  309. X  /******************************************************************
  310. X  
  311. !               Copyright 1991, 1992 by FUJITSU LIMITED
  312. X  
  313. X  Permission to use, copy, modify, distribute, and sell this software
  314. X  and its documentation for any purpose is hereby granted without fee,
  315. *** /tmp/d17624    Sun May  3 18:51:17 1992
  316. --- mit/lib/X/Ximp/XimpWTxtPr.c    Sun May  3 18:51:14 1992
  317. ***************
  318. *** 1,7 ****
  319. ! /* $XConsortium: XimpWTxtPr.c,v 1.2 91/10/07 17:50:57 rws Exp $ */
  320. X  /*
  321. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  322. !  * Copyright 1990, 1991 by SORD Computer Corp.
  323. X   *
  324. X   * Permission to use, copy, modify, distribute, and sell this software and its
  325. X   * documentation for any purpose is hereby granted without fee, provided that
  326. --- 1,7 ----
  327. ! /* $XConsortium: XimpWTxtPr.c,v 1.3 92/04/14 13:30:33 rws Exp $ */
  328. X  /*
  329. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  330. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  331. X   *
  332. X   * Permission to use, copy, modify, distribute, and sell this software and its
  333. X   * documentation for any purpose is hereby granted without fee, provided that
  334. ***************
  335. *** 28,34 ****
  336. X  
  337. X  /******************************************************************
  338. X  
  339. !               Copyright 1991, by FUJITSU LIMITED
  340. X  
  341. X  Permission to use, copy, modify, distribute, and sell this software
  342. X  and its documentation for any purpose is hereby granted without fee,
  343. --- 28,34 ----
  344. X  
  345. X  /******************************************************************
  346. X  
  347. !               Copyright 1991, 1992 by FUJITSU LIMITED
  348. X  
  349. X  Permission to use, copy, modify, distribute, and sell this software
  350. X  and its documentation for any purpose is hereby granted without fee,
  351. *** /tmp/d17646    Sun May  3 18:51:29 1992
  352. --- mit/lib/X/Ximp/XimpXConv.c    Sun May  3 18:51:26 1992
  353. ***************
  354. *** 1,7 ****
  355. ! /* $XConsortium: XimpXConv.c,v 1.2 91/07/30 14:27:58 rws Exp $ */
  356. X  /*
  357. !  * Copyright 1990, 1991 by TOSHIBA Corp.
  358. !  * Copyright 1990, 1991 by SORD Computer Corp.
  359. X   *
  360. X   * Permission to use, copy, modify, distribute, and sell this software and its
  361. X   * documentation for any purpose is hereby granted without fee, provided that
  362. --- 1,7 ----
  363. ! /* $XConsortium: XimpXConv.c,v 1.3 92/04/14 13:30:36 rws Exp $ */
  364. X  /*
  365. !  * Copyright 1990, 1991, 1992 by TOSHIBA Corp.
  366. !  * Copyright 1990, 1991, 1992 by SORD Computer Corp.
  367. X   *
  368. X   * Permission to use, copy, modify, distribute, and sell this software and its
  369. X   * documentation for any purpose is hereby granted without fee, provided that
  370. ***************
  371. *** 29,35 ****
  372. X  
  373. X  /******************************************************************
  374. X  
  375. !               Copyright 1991, by FUJITSU LIMITED
  376. X  
  377. X  Permission to use, copy, modify, distribute, and sell this software
  378. X  and its documentation for any purpose is hereby granted without fee,
  379. --- 29,35 ----
  380. X  
  381. X  /******************************************************************
  382. X  
  383. !               Copyright 1991, 1992 by FUJITSU LIMITED
  384. X  
  385. X  Permission to use, copy, modify, distribute, and sell this software
  386. X  and its documentation for any purpose is hereby granted without fee,
  387. *** /tmp/d17668    Sun May  3 18:51:41 1992
  388. --- mit/lib/X/Ximp/Ximpint.c    Sun May  3 18:51:38 1992
  389. ***************
  390. *** 1,7 ****
  391. ! /* $XConsortium: Ximpint.c,v 1.3 91/10/10 20:41:48 rws Exp $ */
  392. X  /******************************************************************
  393. X  
  394. !               Copyright 1991, by Fuji Xerox Co.,Ltd.
  395. X  
  396. X  Permission to use, copy, modify, distribute, and sell this software
  397. X  and its documentation for any purpose is hereby granted without fee,
  398. --- 1,7 ----
  399. ! /* $XConsortium: Ximpint.c,v 1.4 92/04/14 13:30:39 rws Exp $ */
  400. X  /******************************************************************
  401. X  
  402. !               Copyright 1991, 1992 by Fuji Xerox Co.,Ltd.
  403. X  
  404. X  Permission to use, copy, modify, distribute, and sell this software
  405. X  and its documentation for any purpose is hereby granted without fee,
  406. ***************
  407. *** 178,184 ****
  408. X      int i;
  409. X      unsigned char c;
  410. X  
  411. !     count = XLookupString(event, buffer, nbytes, &symbol, status);
  412. X      if (keysym) *keysym = symbol;
  413. X      if ((nbytes == 0) || (symbol == NoSymbol)) {
  414. X      return(count);
  415. --- 178,184 ----
  416. X      int i;
  417. X      unsigned char c;
  418. X  
  419. !     count = XLookupString(event, (char *)buffer, nbytes, &symbol, status);
  420. X      if (keysym) *keysym = symbol;
  421. X      if ((nbytes == 0) || (symbol == NoSymbol)) {
  422. X      return(count);
  423. ***************
  424. *** 223,229 ****
  425. X      int i;
  426. X      unsigned char c;
  427. X  
  428. !     count = XLookupString(event, look, nbytes, &symbol, status);
  429. X      if (keysym) *keysym = symbol;
  430. X      if ((nbytes == 0) || (symbol == NoSymbol)) {
  431. X      return(count);
  432. --- 223,229 ----
  433. X      int i;
  434. X      unsigned char c;
  435. X  
  436. !     count = XLookupString(event, (char *)look, nbytes, &symbol, status);
  437. X      if (keysym) *keysym = symbol;
  438. X      if ((nbytes == 0) || (symbol == NoSymbol)) {
  439. X      return(count);
  440. SHAR_EOF
  441. echo 'File fix-12 is complete' &&
  442. chmod 0644 fix-12 ||
  443. echo 'restore of fix-12 failed'
  444. Wc_c="`wc -c < 'fix-12'`"
  445. test 212132 -eq "$Wc_c" ||
  446.     echo 'fix-12: original size 212132, current size' "$Wc_c"
  447. rm -f _shar_wnt_.tmp
  448. fi
  449. rm -f _shar_seq_.tmp
  450. echo You have unpacked the last part
  451. exit 0
  452. -- 
  453. ---
  454. Senior Systems Scientist        mail: dcmartin@msi.com
  455. Molecular Simulations, Inc.        uucp: uunet!dcmartin
  456. 796 North Pastoria Avenue        at&t: 408/522-9236
  457.