Re: bug 1957 fix please commit

From: Jesper Skov (
Date: Tue Feb 19 2002 - 06:25:59 GMT

  • Next message: F J Franklin: "Re: bug 1957 fix please commit"

    On Tue, 2002-02-19 at 04:35, Robert Altenburg wrote:
    > Attached is a patch to fix bug 1957 "numerated lists
    > become star lists in human readable text exporter."
    > What this does:
    > When the exporter sees a new numbered list, this
    > allocates a UT_uint16 to hold the value of the
    > bullet number, and adds a pointer to that number
    > to a hash. If it has seen the list before it gets
    > the pointer to the integer from the hash, prints
    > the value, and increments it. When the destructor
    > is called, it frees the memory used by the integers.

    I haven't read the rest of the file, nor do I have any experience with
    exporters. But I'm surprised to see use of char and sprintf. Surely you
    want to use the UT_ versions of these?

    > + char buff[20];
    > + sprintf(buff,"%d ",*pTemp);


    This archive was generated by hypermail 2.1.4 : Tue Feb 19 2002 - 06:04:11 GMT