Changeset 3249 for trunk/tools


Ignore:
Timestamp:
Mar 27, 2000, 2:52:13 PM (25 years ago)
Author:
bird
Message:

Hacking...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/dbginfo/kHll.cpp

    r3248 r3249  
    1 /* $Id: kHll.cpp,v 1.7 2000-03-27 12:36:17 bird Exp $
     1/* $Id: kHll.cpp,v 1.8 2000-03-27 12:52:13 bird Exp $
    22 *
    33 * kHll - Implementation of the class kHll.
     
    655655    if (cch != sizeof(hllHdr))
    656656        return -1;
     657
     658    /*
     659     * Hacking:
     660     * Writing an extra HLL header pointing to an non-existing directory
     661     * staring at the last byte of this header.
     662     */
     663    if (fseek(phFile, lPosStart + cchWritten, SEEK_SET) != 0)
     664        return -2;
     665    hllHdr.offDirectory = cchWritten + sizeof(hllHdr) - 1;
     666    cch = fwrite(&hllHdr, 1, sizeof(hllHdr), phFile);
     667    if (cch != sizeof(hllHdr))
     668        return -1;
     669    cchWritten += cch;
    657670
    658671    return cchWritten;
Note: See TracChangeset for help on using the changeset viewer.