home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / Jetedit / patch03 < prev    next >
Encoding:
Text File  |  1993-04-28  |  5.1 KB  |  169 lines

  1. Newsgroups: comp.sources.x
  2. From: duane@blacks.jpl.nasa.gov (Duane Clark)
  3. Subject: v19i087:  Jetedit - A Motif text editor, Patch03
  4. Message-ID: <1993Apr24.173510.29249@sparky.imd.sterling.com>
  5. X-Md4-Signature: 33af9d811b46e3dab20c0f08908a40dc
  6. Date: Sat, 24 Apr 1993 17:35:10 GMT
  7. Approved: chris@sparky.imd.sterling.com
  8.  
  9. Submitted-by: duane@blacks.jpl.nasa.gov (Duane Clark)
  10. Posting-number: Volume 19, Issue 87
  11. Archive-name: Jetedit/patch03
  12. Environment: X11, OSF/Motif
  13. Patch-To: Jetedit: Volume 19, Issue 80-84,86
  14.  
  15. #---------------------------------- cut here ----------------------------------
  16. # This is a shell archive.  Remove anything before this line,
  17. # then unpack it by saving it in a file and typing "sh file".
  18. #
  19. # Wrapped by Duane Clark <duane@underdog> on Tue Apr 20 09:56:54 1993
  20. #
  21. # This archive contains:
  22. #    je123        NOTES123    
  23. #
  24. # Error checking via wc(1) will be performed.
  25. # Error checking via sum(1) will be performed.
  26.  
  27. LANG=""; export LANG
  28. PATH=/bin:/usr/bin:$PATH; export PATH
  29.  
  30. if sum -r </dev/null >/dev/null 2>&1
  31. then
  32.     sumopt='-r'
  33. else
  34.     sumopt=''
  35. fi
  36.  
  37. echo x - je123
  38. cat >je123 <<'@EOF'
  39. *** ../xm1.22/patchlevel.h    Tue Apr 20 08:32:49 1993
  40. --- patchlevel.h    Tue Apr 20 09:29:27 1993
  41. ***************
  42. *** 1,2 ****
  43. ! #define PATCHLEVEL 2
  44. ! #define VERSION 1.22
  45. --- 1,2 ----
  46. ! #define PATCHLEVEL 3
  47. ! #define VERSION 1.23
  48. *** ../xm1.22/xmefile.c    Tue Apr 20 08:32:51 1993
  49. --- xmefile.c    Tue Apr 20 09:00:47 1993
  50. ***************
  51. *** 99,105 ****
  52.       char    pathname[60];
  53.       Arg     al[1];
  54.       unsigned int theLength;
  55. !     char    *tmpmask = "jeXXXXXX";
  56.       
  57.       sprintf (message_string, " Saved:  %s", thefile);
  58.       
  59. --- 99,105 ----
  60.       char    pathname[60];
  61.       Arg     al[1];
  62.       unsigned int theLength;
  63. !     char    tmpmask[10];
  64.       
  65.       sprintf (message_string, " Saved:  %s", thefile);
  66.       
  67. ***************
  68. *** 122,128 ****
  69.       else tempname = (char *)((long)tempname + 1);
  70.       strcpy(tmpmask, "jeXXXXXX");
  71.       if (!mktemp(tmpmask)) {
  72. !         strcat (message_string, 
  73.               "   \7Warning: unable to create temp file %s.", pathname);
  74.           XtSetArg(al[0], XmNlabelString, 
  75.               XmStringCreateLtoR(message_string, charset));
  76. --- 122,128 ----
  77.       else tempname = (char *)((long)tempname + 1);
  78.       strcpy(tmpmask, "jeXXXXXX");
  79.       if (!mktemp(tmpmask)) {
  80. !         sprintf (message_string, 
  81.               "   \7Warning: unable to create temp file %s.", pathname);
  82.           XtSetArg(al[0], XmNlabelString, 
  83.               XmStringCreateLtoR(message_string, charset));
  84. *** ../xm1.22/xmespec.c    Tue Apr 20 08:32:56 1993
  85. --- xmespec.c    Tue Apr 20 09:50:32 1993
  86. ***************
  87. *** 58,63 ****
  88. --- 58,66 ----
  89.   
  90.       image = XCreateImage ( theDisp, theVisual, 
  91.                 1, XYBitmap, 0, bits, width, height, 8, (width+7)/8 );
  92. +     image->byte_order = LSBFirst;
  93. +     image->bitmap_unit = 8;
  94. +     image->bitmap_bit_order = LSBFirst;
  95.   
  96.       return (image);
  97.   }
  98. @EOF
  99. set `sum $sumopt <je123`; if test $1 -ne 47361
  100. then
  101.     echo ERROR: je123 checksum is $1 should be 47361
  102. fi
  103. set `wc -lwc <je123`
  104. if test $1$2$3 != 592061828
  105. then
  106.     echo ERROR: wc results of je123 are $* should be 59 206 1828
  107. fi
  108.  
  109. chmod 644 je123
  110.  
  111. echo x - NOTES123
  112. cat >NOTES123 <<'@EOF'
  113. This patch updates jetedit1.22 to jetedit1.23 and clears up the final
  114. known bugs. See below to determine the current version. To apply:
  115. 1) Copy this file as "je123.sh" to the directory containing the source
  116.  for jetedit.
  117. 2) Delete all this preliminary stuff.
  118. 3) Type "sh je123.sh". This will create the patch file je123 and a copy
  119.  of these notes as NOTES123.
  120. 4) Type "patch < je123".
  121. 5) Recompile.
  122.  
  123. You can determine the current version of jetedit by seeing if the file
  124. patchlevel.h is included in the directory with the source. If it is, 
  125. you have at least version 1.2. If not, you will have to get version 1.2
  126. off the archives, or email me - duane@blacks.jpl.nasa.gov.
  127.  
  128. Compare the contents of patchlevel.h to the following lines:
  129. #define PATCHLEVEL 0    - Indicates jetedit1.2
  130. #define PATCHLEVEL 1    - Indicates jetedit1.21
  131. Beginning in version 1.22, patchlevel.h contains the line:
  132. #define VERSION n.nn
  133.  
  134. Changes in this version:
  135. Fixed a bonehead portability bug that caused crashes under gcc - man
  136. that gcc sure is picky. I had used the local variable:
  137.     char    *tmpmask = "jeXXXXXX";
  138. rather than
  139.     char    tmpmask[10];
  140.     strcpy (tmpmask, "jeXXXXXX");
  141. Thanks to Donald Anderson, Jerry Kelly, and Martin Wunderli.
  142.  
  143. Another bug was introduced by patch02 and reported by John Aguirre,
  144. creating compiler errors where I used "strcat" rather "sprintf".
  145.  
  146. Finally, the fix for Ximages contributed in patch01 was incomplete,
  147. resulting in funny looking pixmaps in some warning dialogs.
  148. @EOF
  149. set `sum $sumopt <NOTES123`; if test $1 -ne 3032
  150. then
  151.     echo ERROR: NOTES123 checksum is $1 should be 3032
  152. fi
  153. set `wc -lwc <NOTES123`
  154. if test $1$2$3 != 352341490
  155. then
  156.     echo ERROR: wc results of NOTES123 are $* should be 35 234 1490
  157. fi
  158.  
  159. chmod 644 NOTES123
  160.  
  161. exit 0
  162.  
  163. exit 0 # Just in case...
  164. -- 
  165.   // chris@IMD.Sterling.COM            | Send comp.sources.x submissions to:
  166. \X/  Amiga - The only way to fly!      |
  167.  "It's intuitively obvious to the most |    sources-x@imd.sterling.com
  168.   casual observer..."                  |
  169.