Changeset b0d726 in git


Ignore:
Timestamp:
Aug 19, 1999, 5:18:58 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
3fe3582ddaecd797418eb656ac7963afdae714a5
Parents:
b21d632ab9ee617446383757c9e7182e563e5ced
Message:
* print help on texinfo_out, even if no example section


git-svn-id: file:///usr/local/Singular/svn/trunk@3507 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/utils.cc

    rb21d63 rb0d726  
    188188  if (texinfo_out)
    189189  {
    190     if ((! pi->is_static) &&
     190   if ((! pi->is_static) &&
    191191        (pi->data.s.body_start - pi->data.s.def_end > 10) &&
    192         (pi->data.s.example_start > 0) &&
    193         (pi->data.s.proc_end - pi->data.s.example_start > 10) &&
    194192        (! found_proc_in_proc))
    195193    {
     
    197195      printf("$help{\"%s\"} = <<EOT;\n", pi->procname);
    198196      PrintOut(fp, pi->data.s.help_start, pi->data.s.body_start-3);
    199       printf("\nEOT\n$example{\"%s\"} = <<EOT;\n", pi->procname);
    200       PrintOut(fp, pi->data.s.example_start, pi->data.s.proc_end);
    201197      printf("\nEOT\n");
     198      if ((pi->data.s.example_start > 0) &&
     199          (pi->data.s.proc_end - pi->data.s.example_start > 10))
     200      {
     201        printf("$example{\"%s\"} = <<EOT;\n", pi->procname);
     202        PrintOut(fp, pi->data.s.example_start, pi->data.s.proc_end);
     203        printf("\nEOT\n");
     204      }
    202205      printf("$chksum{\"%s\"} = %d;\n", pi->procname, pi->data.s.help_chksum);
    203206    }
Note: See TracChangeset for help on using the changeset viewer.