home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume43 / c2man-2.0 / patch31 < prev    next >
Encoding:
Internet Message Format  |  1994-07-24  |  34.3 KB

  1. From: greyham@research.canon.oz.au (Graham Stoney)
  2. Newsgroups: comp.sources.misc
  3. Subject: v43i124:  c2man-2.0 - automatic C documentation generator, Patch31
  4. Date: 24 Jul 1994 19:10:52 -0500
  5. Organization: Canon Information Systems Research Australia
  6. Sender: kent@sparky.sterling.com
  7. Approved: kent@sparky.sterling.com
  8. Message-ID: <30uvuc$dhu@sparky.sterling.com>
  9. Summary: This is an official patch for c2man 2.0.  Please apply it.
  10. X-Md4-Signature: 423fc91208f0975bceecc40cc214c71c
  11.  
  12. Submitted-by: greyham@research.canon.oz.au (Graham Stoney)
  13. Posting-number: Volume 43, Issue 124
  14. Archive-name: c2man-2.0/patch31
  15. Environment: UNIX, DOS, OS/2, lex, yacc
  16. Patch-To: c2man-2.0: Volume 42, Issue 55-63
  17.  
  18. System: c2man version 2.0
  19. Patch #: 31
  20. Priority: MEDIUM
  21. Subject: Work around HP-UX 9.01 compiler stupidity.
  22. Subject: Handle ~ expansion correctly in Makefile.
  23. Subject: Update the Free Compilers Catalog entry a bit.
  24. Subject: Mention NeXT's stupidity re: breaking cc -E -C in INSTALL.
  25. Subject: Only break lines starting with '-' or '*'.
  26. Subject: Upgrade Configure with metaconfig 3.0 PL31.
  27. Subject: Fix NeXT cpp_opts bodge introduced by the VMS port.
  28. Subject: Note that NeXTstep 3.2's -lposix is broken.
  29. Subject: Generate the manual page at build time, rather than install time.
  30. Subject: Rename c2man.1 to c2man.man.
  31. Date: Wed Jun 22 13:10:50 EST 1994
  32. From: Graham Stoney <greyham@research.canon.oz.au>
  33.  
  34. Description:
  35.     Work around HP-UX 9.01 compiler stupidity.
  36.     This little piggy won't do implicit comparisons against NULL when a
  37.     pointer is used in an arithmetic context.
  38.  
  39.     Handle ~ expansion correctly in Makefile.
  40.     If the install directory was specified using ~, it didn't fly.
  41.  
  42.     Only break lines starting with '-' or '*'.
  43.     There is minimal support for bulleted lists:
  44.         - They look like this.
  45.         - Previously, the bullet could be any non-alphabetic character.
  46.     That caused trouble because any numeric character that happened to fall
  47.     at the start of a line would be treated as a new list entry, and cause
  48.     a line break.  It happened to me more than
  49.     1 time, and as you can see, it looks silly; so now I've changed it.
  50.  
  51.     Upgrade Configure with metaconfig 3.0 PL31.
  52.     The main change here is backing off the behaviour that tried to link in
  53.     every library under the sun.
  54.  
  55.     Fix NeXT cpp_opts bodge introduced by the VMS port.
  56.     It was passing an uninitialised pointer to strappend.
  57.  
  58.     Note that NeXTstep 3.2's -lposix is broken.
  59.     If you link with -lposix on NeXTstep 3.2, you'll get this reassuring
  60.     message: Floating exception (core dumped).  Thanks again, NeXT.
  61.     To make matters worse, at patchlevel 30, Configure asked for -lposix by
  62.     default, and it may still be in your config.sh file.  If you're on a
  63.     NeXTstep 3.2 system, you won't want to use your old config.sh file.
  64.  
  65.     Generate the manual page at build time, rather than install time.
  66.     Marty Leisner has been hassling me for ages to do this, so I've
  67.     collapsed and done it.
  68.  
  69.  
  70. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your c2man source
  71.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  72.     If you don't have the patch program, apply the following by hand,
  73.     or get patch (version 2.0, latest patchlevel).
  74.  
  75.     After patching:
  76.         *** NOTE: YOU MUST AT LEAST RUN Configure AFTER APPLYING ***
  77.         *** THIS PATCH BEFORE APPLYING ANY SUBSEQUENT PATCHES.   ***
  78.  
  79.         Configure -ders
  80.         make depend
  81.         make
  82.         make test
  83.         make install
  84.  
  85.     If patch indicates that patchlevel is the wrong version, you may need
  86.     to apply one or more previous patches, or the patch may already
  87.     have been applied.  See the patchlevel.h file to find out what has or
  88.     has not been applied.  In any event, don't continue with the patch.
  89.  
  90.     If you are missing previous patches they can be obtained from me:
  91.  
  92.         Graham Stoney <greyham@research.canon.oz.au>
  93.  
  94.     If you send a mail message of the following form it will greatly speed
  95.     processing:
  96.  
  97.         Subject: Command
  98.         @SH mailpatch PATH c2man 2.0 LIST
  99.                ^ note the c
  100.  
  101.     where PATH is a return path FROM ME TO YOU either in Internet notation,
  102.     or in bang notation from some well-known host, and LIST is the number
  103.     of one or more patches you need, separated by spaces, commas, and/or
  104.     hyphens.  Saying 35- says everything from 35 to the end.
  105.  
  106.     To get some more detailed instructions, send me the following mail:
  107.  
  108.         Subject: Command
  109.         @SH mailhelp PATH
  110.  
  111.  
  112. Index: patchlevel.h
  113. Prereq: 30
  114. 2c2
  115. < #define PATCHLEVEL 30
  116. ---
  117. > #define PATCHLEVEL 31
  118.  
  119. Index: Configure
  120. Prereq: 2.0.1.34
  121. *** Configure.old    1994/05/19 01:46:43
  122. --- Configure    1994/06/22 03:03:57
  123. ***************
  124. *** 18,26 ****
  125.   # archive site. Check with Archie if you don't know where that can be.)
  126.   #
  127.   
  128. ! # $Id: Configure,v 2.0.1.34 1994/05/19 01:46:43 greyham Exp $
  129.   #
  130. ! # Generated on Thu May 19 11:21:25 EST 1994 [metaconfig 3.0 PL29]
  131.   
  132.   cat >/tmp/c1$$ <<EOF
  133.   ARGGGHHHH!!!!!
  134. --- 18,26 ----
  135.   # archive site. Check with Archie if you don't know where that can be.)
  136.   #
  137.   
  138. ! # $Id: Configure,v 2.0.1.36 1994/06/22 03:03:57 greyham Exp $
  139.   #
  140. ! # Generated on Wed Jun 22 13:00:10 EST 1994 [metaconfig 3.0 PL31]
  141.   
  142.   cat >/tmp/c1$$ <<EOF
  143.   ARGGGHHHH!!!!!
  144. ***************
  145. *** 46,51 ****
  146. --- 46,60 ----
  147.   (exit $?0) || exec sh $0 $argv:q
  148.   rm -f /tmp/c1$$ /tmp/c2$$
  149.   
  150. + : compute my invocation name
  151. + me=$0
  152. + case "$0" in
  153. + */*)
  154. +     me=`echo $0 | sed -e 's!.*/\(.*\)!\1!' 2>/dev/null`
  155. +     test "$me" || me=$0
  156. +     ;;
  157. + esac
  158.   : Sanity checks
  159.   PATH=".:$PATH:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin"
  160.   PATH=$PATH:'/usr/5bin:/etc:/usr/gnu/bin:/usr/new:/usr/new/bin:/usr/nbin'
  161. ***************
  162. *** 56,62 ****
  163.   export PATH
  164.   
  165.   if test ! -t 0; then
  166. !     echo "Say 'sh Configure', not 'sh <Configure'"
  167.       exit 1
  168.   fi
  169.   
  170. --- 65,71 ----
  171.   export PATH
  172.   
  173.   if test ! -t 0; then
  174. !     echo "Say 'sh $me', not 'sh <$me'"
  175.       exit 1
  176.   fi
  177.   
  178. ***************
  179. *** 73,80 ****
  180.   else
  181.       : Warn them if they use ksh on other systems
  182.       (PATH=.; alias -x) >/dev/null 2>&1 && \
  183. !         cat <<'EOM'
  184. ! (I see you are using the Korn shell.  Some ksh's blow up on Configure,
  185.   especially on exotic machines.  If yours does, try the Bourne shell instead.)
  186.   EOM
  187.   fi
  188. --- 82,89 ----
  189.   else
  190.       : Warn them if they use ksh on other systems
  191.       (PATH=.; alias -x) >/dev/null 2>&1 && \
  192. !         cat <<EOM
  193. ! (I see you are using the Korn shell.  Some ksh's blow up on $me,
  194.   especially on exotic machines.  If yours does, try the Bourne shell instead.)
  195.   EOM
  196.   fi
  197. ***************
  198. *** 106,111 ****
  199. --- 115,121 ----
  200.   egrep=''
  201.   emacs=''
  202.   expr=''
  203. + find=''
  204.   flex=''
  205.   gcc=''
  206.   grep=''
  207. ***************
  208. *** 257,262 ****
  209. --- 267,273 ----
  210.   privlib=''
  211.   privlibexp=''
  212.   prototype=''
  213. + so=''
  214.   sharpbang=''
  215.   shsharp=''
  216.   spitshell=''
  217. ***************
  218. *** 317,323 ****
  219.   : produce awk script to parse command line options
  220.   cat >options.awk <<'EOF'
  221.   BEGIN {
  222. !     optstr = "deEf:hrsSV";    # getopt-style specification
  223.   
  224.       len = length(optstr);
  225.       for (i = 1; i <= len; i++) {
  226. --- 328,334 ----
  227.   : produce awk script to parse command line options
  228.   cat >options.awk <<'EOF'
  229.   BEGIN {
  230. !     optstr = "deEf:hrsSD:U:V";    # getopt-style specification
  231.   
  232.       len = length(optstr);
  233.       for (i = 1; i <= len; i++) {
  234. ***************
  235. *** 374,379 ****
  236. --- 385,391 ----
  237.   error=''
  238.   silent=''
  239.   extractsh=''
  240. + optdef='optdef.sh'
  241.   
  242.   : option parsing
  243.   while test $# -gt 0; do
  244. ***************
  245. *** 386,392 ****
  246.           if test -r "$1"; then
  247.               config_sh="$1"
  248.           else
  249. !             echo "Configure: cannot read config file $1." >&2
  250.               error=true
  251.           fi
  252.           cd UU
  253. --- 398,404 ----
  254.           if test -r "$1"; then
  255.               config_sh="$1"
  256.           else
  257. !             echo "$me: cannot read config file $1." >&2
  258.               error=true
  259.           fi
  260.           cd UU
  261. ***************
  262. *** 396,405 ****
  263.       -s) shift; silent=true;;
  264.       -E) shift; alldone=exit;;
  265.       -S) shift; extractsh=true;;
  266. !     -V) echo "Configure generated by metaconfig 3.0 PL29." >&2
  267.           exit 0;;
  268.       --) break;;
  269. !     -*) echo "Configure: unknown option $1" >&2; shift; error=true;;
  270.       *) break;;
  271.       esac
  272.   done
  273. --- 408,441 ----
  274.       -s) shift; silent=true;;
  275.       -E) shift; alldone=exit;;
  276.       -S) shift; extractsh=true;;
  277. !     -D)
  278. !         shift
  279. !         case "$1" in
  280. !         *=)
  281. !             echo "$me: use '-U symbol=', not '-D symbol='." >&2
  282. !             echo "$me: ignoring -D $1" >&2
  283. !             ;;
  284. !         *=*) echo "$1" >> $optdef;;
  285. !         *) echo "$1='define'" >> $optdef;;
  286. !         esac
  287. !         shift
  288. !         ;;
  289. !     -U)
  290. !         shift
  291. !         case "$1" in
  292. !         *=) echo "$1" >> $optdef;;
  293. !         *=*)
  294. !             echo "$me: use '-D symbol=val', not '-U symbol=val'." >&2
  295. !             echo "$me: ignoring -U $1" >&2
  296. !             ;;
  297. !         *) echo "$1='undef'" >> $optdef;;
  298. !         esac
  299. !         shift
  300. !         ;;
  301. !     -V) echo "$me generated by metaconfig 3.0 PL31." >&2
  302.           exit 0;;
  303.       --) break;;
  304. !     -*) echo "$me: unknown option $1" >&2; shift; error=true;;
  305.       *) break;;
  306.       esac
  307.   done
  308. ***************
  309. *** 407,421 ****
  310.   case "$error" in
  311.   true)
  312.       cat >&2 <<EOM
  313. ! Usage: Configure [-dehrESV] [-f config.sh]
  314.     -d : use defaults for all answers.
  315.     -e : go on without questioning past the production of config.sh.
  316.     -f : specify an alternate default configuration file.
  317.     -h : print this help message and exit (with an error status).
  318.     -r : reuse C symbols value if possible (skips costly nm extraction).
  319.     -s : silent mode, only echoes questions and essential information.
  320.     -E : stop at the end of questions, after having produced config.sh.
  321.     -S : perform variable substitutions on all .SH files (can mix with -f)
  322.     -V : print version number and exit (with a zero status).
  323.   EOM
  324.       exit 1
  325. --- 443,464 ----
  326.   case "$error" in
  327.   true)
  328.       cat >&2 <<EOM
  329. ! Usage: $me [-dehrESV] [-f config.sh] [-D symbol] [-D symbol=value]
  330. !                  [-U symbol] [-U symbol=]
  331.     -d : use defaults for all answers.
  332.     -e : go on without questioning past the production of config.sh.
  333.     -f : specify an alternate default configuration file.
  334.     -h : print this help message and exit (with an error status).
  335.     -r : reuse C symbols value if possible (skips costly nm extraction).
  336.     -s : silent mode, only echoes questions and essential information.
  337. +   -D : define symbol to have some value:
  338. +          -D symbol         symbol gets the value 'define'
  339. +          -D symbol=value   symbol gets the value 'value'
  340.     -E : stop at the end of questions, after having produced config.sh.
  341.     -S : perform variable substitutions on all .SH files (can mix with -f)
  342. +   -U : undefine symbol:
  343. +          -U symbol    symbol gets the value 'undef'
  344. +          -U symbol=   symbol gets completely empty
  345.     -V : print version number and exit (with a zero status).
  346.   EOM
  347.       exit 1
  348. ***************
  349. *** 427,432 ****
  350. --- 470,480 ----
  351.   true) exec 1>/dev/null;;
  352.   esac
  353.   
  354. + : run the defines and the undefines, if any
  355. + touch $optdef
  356. + . ./$optdef
  357. + rm -f $optdef
  358.   case "$extractsh" in
  359.   true)
  360.       case "$config_sh" in
  361. ***************
  362. *** 481,498 ****
  363.   : general looking path for locating libraries
  364.   glibpth="/usr/lib/large /lib /usr/lib $xlibpth /lib/large"
  365.   glibpth="$glibpth /usr/lib/small /lib/small"
  366. ! glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
  367.   
  368.   : Private path used by Configure to find libraries.  Its value
  369.   : is prepended to libpth. This variable takes care of special
  370.   : machines, like the mips.  Usually, it should be empty.
  371.   plibpth=''
  372.   
  373. ! : default ordered library list
  374. ! libswanted='net socket inet nsl nm sdbm gdbm ndbm dbm malloc dl'
  375. ! libswanted="$libswanted dld sun m c_s posix cposix ndir dir ucb"
  376. ! libswanted="$libswanted bsd BSD PW x"
  377.   large=''
  378.   : full support for void wanted by default
  379.   defvoidused=15
  380. --- 529,543 ----
  381.   : general looking path for locating libraries
  382.   glibpth="/usr/lib/large /lib /usr/lib $xlibpth /lib/large"
  383.   glibpth="$glibpth /usr/lib/small /lib/small"
  384. ! glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib /usr/shlib"
  385.   
  386.   : Private path used by Configure to find libraries.  Its value
  387.   : is prepended to libpth. This variable takes care of special
  388.   : machines, like the mips.  Usually, it should be empty.
  389.   plibpth=''
  390.   
  391. ! : default library list
  392. ! libswanted=''
  393.   large=''
  394.   : full support for void wanted by default
  395.   defvoidused=15
  396. ***************
  397. *** 500,512 ****
  398.   defvoidused=9
  399.   
  400.   : remove obsolete files from old patchlevels and their derivatives.
  401. ! rm -f ../c2man.man ../fixpre.in ../fixpre.sed ../fixpost.in ../fixpost.sed
  402.   rm -f ../flatten_sed.SH ../fixexample.in ../fixexample.sed
  403.   rm -f ../eg/commentafter.c ../eg/multipledecl.c
  404.   
  405.   : 2.0pl28 moved some files around - do it without the big patch baggage.
  406.   mv -f ../pc/COPYING ../pc/getopt.[ch] ../pc/getopt1.c ../libc 2>/dev/null
  407.   
  408.   : Some greps do not return status, grrr.
  409.   echo "grimblepritz" >grimble
  410.   if grep blurfldyick grimble >/dev/null 2>&1 ; then
  411. --- 545,560 ----
  412.   defvoidused=9
  413.   
  414.   : remove obsolete files from old patchlevels and their derivatives.
  415. ! rm -f ../fixpre.in ../fixpre.sed ../fixpost.in ../fixpost.sed
  416.   rm -f ../flatten_sed.SH ../fixexample.in ../fixexample.sed
  417.   rm -f ../eg/commentafter.c ../eg/multipledecl.c
  418.   
  419.   : 2.0pl28 moved some files around - do it without the big patch baggage.
  420.   mv -f ../pc/COPYING ../pc/getopt.[ch] ../pc/getopt1.c ../libc 2>/dev/null
  421.   
  422. + : 2.0pl31 changed the way the manual was organised
  423. + test -f ../c2man.man || mv -f ../c2man.1 ../c2man.man
  424.   : Some greps do not return status, grrr.
  425.   echo "grimblepritz" >grimble
  426.   if grep blurfldyick grimble >/dev/null 2>&1 ; then
  427. ***************
  428. *** 1047,1059 ****
  429.   echo " "
  430.   case "$sysman" in
  431.   '') 
  432. !     syspath='/usr/man/man1 /usr/man/man1 /usr/man/mann'
  433. !     syspath="$syspath /usr/man/manl /usr/man/local/man1"
  434.       syspath="$syspath /usr/man/u_man/man1 /usr/share/man/man1"
  435.       syspath="$syspath /usr/catman/u_man/man1 /usr/man/l_man/man1"
  436.       syspath="$syspath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1"
  437. !     syspath="$syspath /usr/man/man.L /local/man/man1"
  438. !     sysman=`./loc . $syspath`
  439.       ;;
  440.   esac
  441.   if $test -d "$sysman"; then
  442. --- 1095,1106 ----
  443.   echo " "
  444.   case "$sysman" in
  445.   '') 
  446. !     syspath='/usr/man/man1 /usr/man/mann /usr/man/manl /usr/man/local/man1'
  447.       syspath="$syspath /usr/man/u_man/man1 /usr/share/man/man1"
  448.       syspath="$syspath /usr/catman/u_man/man1 /usr/man/l_man/man1"
  449.       syspath="$syspath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1"
  450. !     syspath="$syspath /usr/man/man.L /local/man/man1 /usr/local/man/man1"
  451. !     sysman=`./loc . /usr/man/man1 $syspath`
  452.       ;;
  453.   esac
  454.   if $test -d "$sysman"; then
  455. ***************
  456. *** 1891,1896 ****
  457. --- 1938,1960 ----
  458.   *) libpth="$ans";;
  459.   esac
  460.   
  461. + : compute shared library extension
  462. + echo " "
  463. + case "$so" in
  464. + '')
  465. +     if xxx=`./loc libc.sl X $libpth`; $test -f "$xxx"; then
  466. +         dflt='sl'
  467. +     else
  468. +         dflt='so'
  469. +     fi
  470. +     ;;
  471. +     
  472. + *) dflt="$so";;
  473. + esac
  474. + rp='What is the file extension used for shared libraries?'
  475. + . ./myread
  476. + so="$ans"
  477.   : Looking for optional libraries
  478.   echo " "
  479.   echo "Checking for optional libraries..." >&4
  480. ***************
  481. *** 1907,1969 ****
  482.       *_s) thatlib=NONE;;
  483.       *) thatlib="${thislib}_s";;
  484.       esac
  485. !     xxx=`./loc lib$thislib.a X $libpth`
  486. !     yyy=`./loc lib$thatlib.a X $libpth`
  487. !     zzz=`./loc lib$thislib.so.[0-9]'*' X $libpth`
  488. !     if $test -f $xxx; then
  489.           echo "Found -l$thislib."
  490.           case " $dflt " in
  491.           *"-l$thislib "*|*"-l$thatlib "*);;
  492.           *) dflt="$dflt -l$thislib";;
  493.           esac
  494. !     elif $test -f $yyy; then
  495.           echo "Found -l$thatlib."
  496.           case " $dflt " in
  497.           *"-l$thatlib "*);;
  498.           *) dflt="$dflt -l$thatlib";;
  499.           esac
  500. !     elif $test -f $zzz; then
  501.           echo "Found -l$thislib (shared only)."
  502.           case " $dflt " in
  503.           *"-l$thislib "*|*"-l$thatlib "*);;
  504.           *) dflt="$dflt -l$thislib";;
  505.           esac
  506.       else
  507. !         xxx=`./loc Slib$thislib.a X $xlibpth`
  508. !         yyy=`./loc Slib$thatlib.a X $xlibpth`
  509. !         if $test -f $xxx; then
  510. !             echo "Found -l$thislib."
  511. !             case " $dflt " in
  512. !             *"-l$thislib "*|*"-l$thatlib "*);;
  513. !             *) dflt="$dflt -l$thislib";;
  514. !             esac
  515. !         elif $test -f $yyy; then
  516. !             echo "Found -l$thatlib."
  517. !             case " $dflt " in
  518. !             *"-l$thatlib "*);;
  519. !             *) dflt="$dflt -l$thatlib";;
  520. !             esac
  521. !         else
  522. !             xxx=`./loc lib$thislib.so X $libpth`
  523. !             if $test -f $xxx; then
  524. !                 echo "Found -l$thislib (shared only)."
  525. !                 case " $dflt " in
  526. !                 *"-l$thislib "*|*"-l$thatlib "*);;
  527. !                 *) dflt="$dflt -l$thislib";;
  528. !                 esac
  529. !             else
  530. !                 xxx=`./loc lib$thislib.so X $libpth`
  531. !                 if $test -f $xxx; then
  532. !                     echo "Found -l$thislib (shared only)."
  533. !                     case "$dflt" in
  534. !                     *-l$thislib*|*-l$thatlib*);;
  535. !                     *) dflt="$dflt -l$thislib";;
  536. !                     esac
  537. !                 else
  538. !                     echo "No -l$thislib."
  539. !                 fi
  540. !             fi
  541. !         fi
  542.       fi
  543.   done
  544.   set X $dflt
  545. --- 1971,2021 ----
  546.       *_s) thatlib=NONE;;
  547.       *) thatlib="${thislib}_s";;
  548.       esac
  549. !     
  550. !     if xxx=`./loc lib$thislib.a X $libpth`; $test -f "$xxx"; then
  551.           echo "Found -l$thislib."
  552.           case " $dflt " in
  553.           *"-l$thislib "*|*"-l$thatlib "*);;
  554.           *) dflt="$dflt -l$thislib";;
  555.           esac
  556. !     elif xxx=`./loc lib$thatlib.a X $libpth`; $test -f "$xxx"; then
  557.           echo "Found -l$thatlib."
  558.           case " $dflt " in
  559.           *"-l$thatlib "*);;
  560.           *) dflt="$dflt -l$thatlib";;
  561.           esac
  562. !     elif xxx=`./loc lib$thislib.$so.[0-9]'*' X $libpth`; $test -f "$xxx"; then
  563. !         echo "Found -l$thislib (shared only)."
  564. !         case " $dflt " in
  565. !         *"-l$thislib "*|*"-l$thatlib "*);;
  566. !         *) dflt="$dflt -l$thislib";;
  567. !         esac
  568. !     elif xxx=`./loc lib$thislib.$so X $libpth` ; $test -f "$xxx"; then
  569.           echo "Found -l$thislib (shared only)."
  570.           case " $dflt " in
  571.           *"-l$thislib "*|*"-l$thatlib "*);;
  572.           *) dflt="$dflt -l$thislib";;
  573.           esac
  574. +     elif xxx=`./loc Slib$thislib.a X $xlibpth`; $test -f "$xxx"; then
  575. +         echo "Found -l$thislib."
  576. +         case " $dflt " in
  577. +         *"-l$thislib "*|*"-l$thatlib "*);;
  578. +         *) dflt="$dflt -l$thislib";;
  579. +         esac
  580. +     elif xxx=`./loc Slib$thatlib.a X $xlibpth`; $test -f "$xxx"; then
  581. +         echo "Found -l$thatlib."
  582. +         case " $dflt " in
  583. +         *"-l$thatlib "*);;
  584. +         *) dflt="$dflt -l$thatlib";;
  585. +         esac
  586. +     elif xxx=`./loc lib$thatlib.$so X $libpth`; $test -f "$xxx"; then
  587. +         echo "Found -l$thatlib (shared only)."
  588. +         case "$dflt" in
  589. +         *-l$thislib*|*-l$thatlib*);;
  590. +         *) dflt="$dflt -l$thatlib";;
  591. +         esac
  592.       else
  593. !         echo "No -l$thislib."
  594.       fi
  595.   done
  596.   set X $dflt
  597. ***************
  598. *** 2068,2091 ****
  599.       case "$thislib" in
  600.       -l*)
  601.           thislib=`expr X$thislib : 'X-l\(.*\)'`
  602. !         try=`./loc lib$thislib.a blurfl/dyick $libpth`
  603. !         if test ! -f $try; then
  604. !             try=`./loc lib$thislib blurfl/dyick $libpth`
  605. !             if test ! -f $try; then
  606. !                 try=`./loc $thislib blurfl/dyick $libpth`
  607. !                 if test ! -f $try; then
  608. !                     try=`./loc Slib$thislib.a blurfl/dyick $xlibpth`
  609. !                     if test ! -f $try; then
  610. !                         try=`./loc lib$thislib.so.'*' blurfl/dyick $libpth`
  611. !                         if test ! -f $try; then
  612. !                             try=`./loc lib$thislib.so blurfl/dyick $libpth`
  613. !                             if test ! -f $try; then
  614. !                                 try=''
  615. !                             fi
  616. !                         fi
  617. !                     fi
  618. !                 fi
  619. !             fi
  620.           fi
  621.           libnames="$libnames $try"
  622.           ;;
  623. --- 2120,2139 ----
  624.       case "$thislib" in
  625.       -l*)
  626.           thislib=`expr X$thislib : 'X-l\(.*\)'`
  627. !         if try=`./loc lib$thislib.a X $libpth`; $test -f "$try"; then
  628. !             :
  629. !         elif try=`./loc lib$thislib X $libpth`; $test -f "$try"; then
  630. !             :
  631. !         elif try=`./loc $thislib X $libpth`; $test -f "$try"; then
  632. !             :
  633. !         elif try=`./loc Slib$thislib.a X $xlibpth`; $test -f "$try"; then
  634. !             :
  635. !         elif try=`./loc lib$thislib.$so.'*' X $libpth`; $test -f "$try"; then
  636. !             :
  637. !         elif try=`./loc lib$thislib.$so X $libpth`; $test -f "$try"; then
  638. !             :
  639. !         else
  640. !             try=''
  641.           fi
  642.           libnames="$libnames $try"
  643.           ;;
  644. ***************
  645. *** 2097,2106 ****
  646.   xxx=normal
  647.   case "$libc" in
  648.   unknown)
  649. !     set /usr/ccs/lib/libc.so
  650. !     $test -r $1 || set /usr/lib/libc.so
  651. !     $test -r $1 || set /usr/shlib/libc.so
  652. !     $test -r $1 || set /usr/lib/libc.so.[0-9]*
  653.       $test -r $1 || set /lib/libsys_s.a
  654.       eval set \$$#
  655.       ;;
  656. --- 2145,2155 ----
  657.   xxx=normal
  658.   case "$libc" in
  659.   unknown)
  660. !     set /usr/ccs/lib/libc.$so
  661. !     $test -r $1 || set /usr/lib/libc.$so
  662. !     $test -r $1 || set /usr/shlib/libc.$so
  663. !     $test -r $1 || set /usr/lib/libc.$so.[0-9]*
  664. !     $test -r $1 || set /lib/libc.$so
  665.       $test -r $1 || set /lib/libsys_s.a
  666.       eval set \$$#
  667.       ;;
  668. ***************
  669. *** 3412,3425 ****
  670.       '')
  671.       echo "I can't determine whether signal handler returns void or int..." >&4
  672.           dflt=void
  673. !         rp="What type does your signal handler returns?"
  674.           . ./myread
  675. !         case "$ans" in
  676. !         void) val="$define"; signal_t="void";;
  677. !         *) val="$undef"; signal_t="int";;
  678. !         esac;;
  679.       *) echo "As you already told me, signal handler returns $signal_t." >&4;;
  680.       esac
  681.   fi
  682.   set d_voidsig
  683.   eval $setvar
  684. --- 3461,3476 ----
  685.       '')
  686.       echo "I can't determine whether signal handler returns void or int..." >&4
  687.           dflt=void
  688. !         rp="What type does your signal handler return?"
  689.           . ./myread
  690. !         signal_t="$ans"
  691. !         ;;
  692.       *) echo "As you already told me, signal handler returns $signal_t." >&4;;
  693.       esac
  694. +     case "$signal_t" in
  695. +     void) val="$define";;
  696. +     *) val="$undef";;
  697. +     esac
  698.   fi
  699.   set d_voidsig
  700.   eval $setvar
  701. ***************
  702. *** 4189,4196 ****
  703.   : translate upper to lower if necessary
  704.   case "$myhostname" in
  705.   *[A-Z]*)
  706. -     myhostname=`echo $myhostname | tr '[A-Z]' '[a-z]'`
  707.       echo "(Normalizing case in your host name)"
  708.       ;;
  709.   esac
  710.   
  711. --- 4240,4247 ----
  712.   : translate upper to lower if necessary
  713.   case "$myhostname" in
  714.   *[A-Z]*)
  715.       echo "(Normalizing case in your host name)"
  716. +     myhostname=`echo $myhostname | tr '[A-Z]' '[a-z]'`
  717.       ;;
  718.   esac
  719.   
  720. ***************
  721. *** 4227,4233 ****
  722.               $sed -n -e "s/$myhostname\.\([a-zA-Z_.]\)/\1/p"`
  723.           case "$dflt" in
  724.           .) echo "(You do not have fully-qualified names in /etc/hosts)"
  725. !             dflt='.uucp';;
  726.           esac
  727.           $rm -f hosts
  728.           ;;
  729. --- 4278,4304 ----
  730.               $sed -n -e "s/$myhostname\.\([a-zA-Z_.]\)/\1/p"`
  731.           case "$dflt" in
  732.           .) echo "(You do not have fully-qualified names in /etc/hosts)"
  733. !             tans=`./loc resolv.conf X /etc /usr/etc`
  734. !             if $test -f "$tans"; then
  735. !                 echo "(Attempting domain name extraction from $tans)"
  736. !                 dflt=.`egrep '^domain' $tans | $sed 's/domain[     ]*\(.*\)/\1/' \
  737. !                     | tr '[A-Z]' '[a-z]' 2>/dev/null`
  738. !             fi
  739. !             ;;
  740. !         esac
  741. !         case "$dflt" in
  742. !         .) echo "(No help from resolv.conf either -- attempting clever guess)"
  743. !             dflt=.`sh -c domainname 2>/dev/null`
  744. !             case "$dflt" in
  745. !             '') dflt='.';;
  746. !             .nis.*|.yp.*|.main.*) dflt=`echo $dflt | $sed -e 's/^\.[^.]*//'`;;
  747. !             esac
  748. !             ;;
  749. !         esac
  750. !         case "$dflt" in
  751. !         .) echo "(Lost all hope -- silly guess then)"
  752. !             dflt='.uucp'
  753. !             ;;
  754.           esac
  755.           $rm -f hosts
  756.           ;;
  757. ***************
  758. *** 4245,4255 ****
  759.   esac
  760.   mydomain="$tans"
  761.   
  762.   : a little sanity check here
  763.   case "$phostname" in
  764.   '') ;;
  765.   *)
  766. !     case `$phostname` in
  767.       $myhostname$mydomain|$myhostname) ;;
  768.       *)
  769.           case "$phostname" in
  770. --- 4316,4334 ----
  771.   esac
  772.   mydomain="$tans"
  773.   
  774. + : translate upper to lower if necessary
  775. + case "$mydomain" in
  776. + *[A-Z]*)
  777. +     echo "(Normalizing case in your domain name)"
  778. +     mydomain=`echo $mydomain | tr '[A-Z]' '[a-z]'`
  779. +     ;;
  780. + esac
  781.   : a little sanity check here
  782.   case "$phostname" in
  783.   '') ;;
  784.   *)
  785. !     case `$phostname | tr '[A-Z]' '[a-z]'` in
  786.       $myhostname$mydomain|$myhostname) ;;
  787.       *)
  788.           case "$phostname" in
  789. ***************
  790. *** 4410,4415 ****
  791. --- 4489,4495 ----
  792.   egrep='$egrep'
  793.   emacs='$emacs'
  794.   expr='$expr'
  795. + find='$find'
  796.   flex='$flex'
  797.   gcc='$gcc'
  798.   grep='$grep'
  799. ***************
  800. *** 4561,4566 ****
  801. --- 4641,4647 ----
  802.   privlib='$privlib'
  803.   privlibexp='$privlibexp'
  804.   prototype='$prototype'
  805. + so='$so'
  806.   sharpbang='$sharpbang'
  807.   shsharp='$shsharp'
  808.   spitshell='$spitshell'
  809.  
  810. Index: c2man.1
  811. Prereq: 2.0.1.37
  812. *** c2man.1.old    1994/05/12 02:21:13
  813. --- c2man.1    1994/06/20 06:16:36
  814. ***************
  815. *** 1,4 ****
  816. ! .\" $Id: c2man.1,v 2.0.1.37 1994/05/12 02:21:13 greyham Exp $
  817.   .de EX          \"Begin example
  818.   .br
  819.   .if \\$1 .ne \\$1
  820. --- 1,4 ----
  821. ! .\" $Id: c2man.man,v 2.0.1.38 1994/06/20 06:16:36 greyham Exp $
  822.   .de EX          \"Begin example
  823.   .br
  824.   .if \\$1 .ne \\$1
  825. ***************
  826. *** 52,58 ****
  827.   .if t .sp .5
  828.   .fi
  829.   ..
  830. ! .TH C2MAN 1 "May 12, 1994"
  831.   .BY "CISRA"
  832.   .SH NAME
  833.   c2man \- generate manual pages from C source code
  834. --- 52,58 ----
  835.   .if t .sp .5
  836.   .fi
  837.   ..
  838. ! .TH C2MAN 1 "June 20, 1994"
  839.   .BY "CISRA"
  840.   .SH NAME
  841.   c2man \- generate manual pages from C source code
  842. ***************
  843. *** 257,271 ****
  844.   and
  845.   .B "SEE ALSO"
  846.   sections are omitted entirely if they aren't needed.
  847. - .SS "Processing of Comment Contents"
  848. - Basic punctuation and capitalisation corrections are made in each section for
  849. - neatness, and the typesetting program used to process the output will generally
  850. - reformat line breaks according to the width of the output device. Blank lines
  851. - in a comment will be preserved, and lines starting with a character that is
  852. - neither alphanumeric nor a single nor double quote will cause a line break,
  853. - allowing simple bulleted lists.
  854. - .PP
  855. - Typesetter specific commands may be included for more complex processing.
  856.   .SS "Comment Style and Placement"
  857.   Both
  858.   .B C
  859. --- 257,262 ----
  860. ***************
  861. *** 380,385 ****
  862. --- 371,387 ----
  863.   .B c2man
  864.   will usually know which identifier a comment is associated with, unless you do
  865.   something truly bizarre.
  866. + .SS "Processing of Comment Contents"
  867. + Basic punctuation and capitalisation corrections are made in each section for
  868. + neatness, and the typesetting program used to process the output will generally
  869. + reformat line breaks according to the width of the output device. Blank lines
  870. + in a comment will be preserved, and lines starting with a dash
  871. + .RB ( \- )
  872. + or an asterisk
  873. + .RB ( * )
  874. + will cause a line break, allowing simple bulleted lists.
  875. + .PP
  876. + Typesetter specific commands may be included for more complex processing.
  877.   .SS "Grouped Manual Pages"
  878.   Simple, closely related objects can be grouped together onto a single page with the
  879.   .B \-g
  880.  
  881. Index: catalog
  882. *** catalog.old    1994/05/19 01:13:58
  883. --- catalog    1994/06/07 01:36:03
  884. ***************
  885. *** 1,9 ****
  886.   language:    C, nroff, texinfo, latex
  887.   package:    c2man
  888. ! version:    2.0 patchlevel 28
  889.   parts:        documentation generator (C -> nroff -man, -> texinfo, -> latex)
  890.   author:        Graham Stoney <greyham@research.canon.oz.au>
  891. ! how to get:    ftp from any comp.sources.misc archive, in volume42
  892.           (the version in the comp.sources.reviewed archive is obsolete)
  893.           ftp /pub/Unix/Util/c2man-2.0.*.tar.gz from ftp.et.tudelft.nl
  894.       Australia:    ftp /usenet/comp.sources.misc/volume42/c2man-2.0/*
  895. --- 1,9 ----
  896.   language:    C, nroff, texinfo, latex
  897.   package:    c2man
  898. ! version:    2.0 patchlevel 30
  899.   parts:        documentation generator (C -> nroff -man, -> texinfo, -> latex)
  900.   author:        Graham Stoney <greyham@research.canon.oz.au>
  901. ! location:    ftp from any comp.sources.misc archive, in volume42
  902.           (the version in the comp.sources.reviewed archive is obsolete)
  903.           ftp /pub/Unix/Util/c2man-2.0.*.tar.gz from ftp.et.tudelft.nl
  904.       Australia:    ftp /usenet/comp.sources.misc/volume42/c2man-2.0/*
  905. ***************
  906. *** 34,41 ****
  907.   ports:        Unix, OS/2, MSDOS, VMS.
  908.   portability:    very high for unix, via Configure
  909.   status:        actively developed; contributions by users are encouraged.
  910. ! discussion:    send "subscribe c2man <Your Name>" (in the message body) to
  911. !         listserv@research.canon.oz.au
  912.   announcements:    patches appear first in comp.sources.bugs, and then in
  913.           comp.sources.misc.
  914. ! updated:    1994/05/12
  915. --- 34,43 ----
  916.   ports:        Unix, OS/2, MSDOS, VMS.
  917.   portability:    very high for unix, via Configure
  918.   status:        actively developed; contributions by users are encouraged.
  919. ! discussion:    via a mailing list: send "subscribe c2man <Your Name>" (in the
  920. !         message body) to listserv@research.canon.oz.au
  921. ! help:        from the author and other users on the mailing list:
  922. !         c2man@research.canon.oz.au
  923.   announcements:    patches appear first in comp.sources.bugs, and then in
  924.           comp.sources.misc.
  925. ! updated:    1994/05/20
  926.  
  927. Index: Makefile.SH
  928. Prereq: 2.0.1.23
  929. *** Makefile.SH.old    1994/02/23 07:18:41
  930. --- Makefile.SH    1994/06/22 03:05:44
  931. ***************
  932. *** 20,26 ****
  933.   : Protect any dollar signs and backticks that you do not want interpreted
  934.   : by putting a backslash in front.  You may delete these comments.
  935.   $spitshell >Makefile <<!GROK!THIS!
  936. ! # $Id: Makefile.SH,v 2.0.1.23 1994/02/23 07:18:41 greyham Exp $
  937.   #
  938.   # UNIX makefile for manual page generator
  939.   # Note: any changes made here will be lost next time Configure is run!.
  940. --- 20,26 ----
  941.   : Protect any dollar signs and backticks that you do not want interpreted
  942.   : by putting a backslash in front.  You may delete these comments.
  943.   $spitshell >Makefile <<!GROK!THIS!
  944. ! # $Id: Makefile.SH,v 2.0.1.25 1994/06/22 03:05:44 greyham Exp $
  945.   #
  946.   # UNIX makefile for manual page generator
  947.   # Note: any changes made here will be lost next time Configure is run!.
  948. ***************
  949. *** 37,43 ****
  950.   MKDEP=$mkdep
  951.   
  952.   # where we get installed
  953. ! bin=$bin
  954.   privlib=$installprivlib
  955.   
  956.   mansrc=$mansrc
  957. --- 37,43 ----
  958.   MKDEP=$mkdep
  959.   
  960.   # where we get installed
  961. ! bin=$binexp
  962.   privlib=$installprivlib
  963.   
  964.   mansrc=$mansrc
  965. ***************
  966. *** 66,76 ****
  967.           fixexamp.sed flatten.sed
  968.   
  969.   
  970. ! all: c2man example.inc ctype_ex.inc flatten.sed
  971.   
  972.   install: all
  973.       $(CP) c2man $(bin)
  974. !     $(SED) -f flatten.sed < c2man.1 > $(mansrc)/c2man.$(manext)
  975.       -mkdir $(privlib)
  976.       chmod 755 $(privlib)
  977.       -mkdir $(privlib)/eg
  978. --- 66,76 ----
  979.           fixexamp.sed flatten.sed
  980.   
  981.   
  982. ! all: c2man c2man.$(manext)
  983.   
  984.   install: all
  985.       $(CP) c2man $(bin)
  986. !     $(CP) c2man.$(manext) $(mansrc)
  987.       -mkdir $(privlib)
  988.       chmod 755 $(privlib)
  989.       -mkdir $(privlib)/eg
  990. ***************
  991. *** 86,91 ****
  992. --- 86,94 ----
  993.   
  994.   c2man: $(OBJECTS)
  995.       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
  996. + c2man.$(manext): c2man.man c2man example.inc ctype_ex.inc flatten.sed
  997. +     $(SED) -f flatten.sed < c2man.man > c2man.$(manext)
  998.   
  999.   .c.o:
  1000.       $(CC) $(CFLAGS) $(WARNFLAGS) -c $<
  1001.  
  1002. Index: c2man.c
  1003. Prereq: 2.0.1.31
  1004. *** c2man.c.old    1994/05/19 01:16:02
  1005. --- c2man.c    1994/06/22 02:43:20
  1006. ***************
  1007. *** 1,4 ****
  1008. ! /* $Id: c2man.c,v 2.0.1.31 1994/05/19 01:16:02 greyham Exp $
  1009.    *
  1010.    * C Manual page generator.
  1011.    * Reads C source code and outputs manual pages.
  1012. --- 1,4 ----
  1013. ! /* $Id: c2man.c,v 2.0.1.33 1994/06/22 02:43:20 greyham Exp $
  1014.    *
  1015.    * C Manual page generator.
  1016.    * Reads C source code and outputs manual pages.
  1017. ***************
  1018. *** 625,634 ****
  1019.   #ifdef VMS
  1020.       cpp_opts = strconcat("-\"D__C2MAN__=", cbuf, "\"",NULLCP);
  1021.   #else
  1022.   #ifdef NeXT
  1023.       cpp_opts = strappend(cpp_opts, " -D_NEXT_SOURCE", NULLCP);
  1024. - #else
  1025. -     cpp_opts = strconcat("-D__C2MAN__=", cbuf, NULLCP);
  1026.   #endif /* !NeXT */
  1027.   #endif /* !VMS  */
  1028.   
  1029. --- 625,633 ----
  1030.   #ifdef VMS
  1031.       cpp_opts = strconcat("-\"D__C2MAN__=", cbuf, "\"",NULLCP);
  1032.   #else
  1033. +     cpp_opts = strconcat("-D__C2MAN__=", cbuf, NULLCP);
  1034.   #ifdef NeXT
  1035.       cpp_opts = strappend(cpp_opts, " -D_NEXT_SOURCE", NULLCP);
  1036.   #endif /* !NeXT */
  1037.   #endif /* !VMS  */
  1038.   
  1039. ***************
  1040. *** 778,784 ****
  1041.           default:    usage();
  1042.           }
  1043.           s = strtok(&optarg[1], ",");
  1044. !         if (s && ! *output->parse_option) usage();
  1045.           while(s)
  1046.           {
  1047.             if (output->parse_option(s)) usage();
  1048. --- 777,783 ----
  1049.           default:    usage();
  1050.           }
  1051.           s = strtok(&optarg[1], ",");
  1052. !         if (s && *output->parse_option == NULL) usage();
  1053.           while(s)
  1054.           {
  1055.             if (output->parse_option(s)) usage();
  1056.  
  1057. Index: README
  1058. *** README.old    1994/05/19 01:12:53
  1059. --- README    1994/06/22 02:53:20
  1060. ***************
  1061. *** 26,35 ****
  1062.   c2man owes a huge debt to the public domain program cproto, by Chin Huang, from
  1063.   which much of the code is derived.
  1064.   
  1065. ! The manual page must be installed with 'make install'; it includes an
  1066. ! automatically generated example and needs to be "flattened" when installed, so
  1067. ! you can't just cp it into place. As a further consequence, the examples will be
  1068. ! missing from the manual page if you try to read it before doing a make.
  1069.   
  1070.   c2man does not currently support C++, but if you think this would be worth
  1071.   while, look in the file C++autodoc for information on how I envisage C++
  1072. --- 26,34 ----
  1073.   c2man owes a huge debt to the public domain program cproto, by Chin Huang, from
  1074.   which much of the code is derived.
  1075.   
  1076. ! The manual page includes some automatically generated examples, which will be
  1077. ! missing if you try to read it before doing a make.  Running make will generate
  1078. ! the complete manual page, which you can then copy around freely.
  1079.   
  1080.   c2man does not currently support C++, but if you think this would be worth
  1081.   while, look in the file C++autodoc for information on how I envisage C++
  1082.  
  1083. Index: INSTALL
  1084. *** INSTALL.old    1994/04/20 08:08:15
  1085. --- INSTALL    1994/06/22 02:48:48
  1086. ***************
  1087. *** 42,47 ****
  1088. --- 42,50 ----
  1089.       If you use gcc (which requires -posix) ignore the warnings about
  1090.       popen/pclose not being defined - apparently they aren't in POSIX.
  1091.   
  1092. + NeXT:    In NeXTstep 3.1 and greater, `cc -C -E' is broken; tell Configure to
  1093. +     run the preprocessor as `/lib/cpp -C' or `cc -C -E -traditional-cpp'.
  1094. +     On NeXTstep 3.2, don't link with -lposix.  It's busted.  Sigh.
  1095.   
  1096.   Otherwise, If you get any errors or warnings, please report them to me (with
  1097.   fixes if possible!). Don't worry too much about warnings from y.tab.c or
  1098. ***************
  1099. *** 65,69 ****
  1100.      during the test and in normal use.
  1101.   
  1102.   6. As root, do "make install". This will install the c2man binary, the example
  1103. !    files and the flattened the manual page. You should use "make install"
  1104. !    because just manually cp'ing c2man.1 around will lose the examples.
  1105. --- 68,71 ----
  1106.      during the test and in normal use.
  1107.   
  1108.   6. As root, do "make install". This will install the c2man binary, the example
  1109. !    files and the manual page.
  1110.  
  1111. Index: MANIFEST
  1112. *** MANIFEST.old    1994/05/20 01:21:39
  1113. --- MANIFEST    1994/06/22 03:08:37
  1114. ***************
  1115. *** 4,10 ****
  1116.   C++autodoc    An article describing how C++ support could be added.
  1117.   MANIFEST    This list of all files in the package.
  1118.   Configure    Automated installation script.
  1119. ! c2man.1        Source for the manual pages; needs flattening.
  1120.   Makefile.SH    Produces Makefile.
  1121.   catalog        Free Compilers Catalog entry for c2man.
  1122.   example.h    First example header file for the manual page.
  1123. --- 4,10 ----
  1124.   C++autodoc    An article describing how C++ support could be added.
  1125.   MANIFEST    This list of all files in the package.
  1126.   Configure    Automated installation script.
  1127. ! c2man.man    Source for the manual pages; needs flattening.
  1128.   Makefile.SH    Produces Makefile.
  1129.   catalog        Free Compilers Catalog entry for c2man.
  1130.   example.h    First example header file for the manual page.
  1131.  
  1132. Index: manpage.c
  1133. Prereq: 2.0.1.43
  1134. *** manpage.c.old    1994/05/12 02:24:51
  1135. --- manpage.c    1994/06/20 06:17:27
  1136. ***************
  1137. *** 1,4 ****
  1138. ! /* $Id: manpage.c,v 2.0.1.43 1994/05/12 02:24:51 greyham Exp $
  1139.    * stuff to do with manual page outputing
  1140.    */
  1141.   
  1142. --- 1,4 ----
  1143. ! /* $Id: manpage.c,v 2.0.1.44 1994/06/20 06:17:27 greyham Exp $
  1144.    * stuff to do with manual page outputing
  1145.    */
  1146.   
  1147. ***************
  1148. *** 181,187 ****
  1149.       }
  1150.       else if (new_line && c == '.')
  1151.           dot_command = TRUE;
  1152. !     else if (new_line && !isalpha(c) && c != '"' && c != '\'' && c != '`')
  1153.       {
  1154.           output->break_line();
  1155.           state = CAPITALISE;
  1156. --- 181,187 ----
  1157.       }
  1158.       else if (new_line && c == '.')
  1159.           dot_command = TRUE;
  1160. !     else if (new_line && (c == '-' || c == '*'))
  1161.       {
  1162.           output->break_line();
  1163.           state = CAPITALISE;
  1164.  
  1165. *** End of Patch 31 ***
  1166. -- 
  1167. Graham Stoney, Hardware/Software Engineer
  1168. Canon Information Systems Research Australia
  1169. Ph: + 61 2 805 2909    Fax: + 61 2 805 2929
  1170.  
  1171. exit 0 # Just in case...
  1172.