/* * PatchSizeUtils.c * Copyright Ó 1990 by Xerox Corporation. All rights reserved. * * Glue to construct and use the PatchSizeProc(patchSizeClientData) * feature of the Incremental Loader. * * Peter B. Kessler, August 17, 1990 1:29:44 pm PDT */ #include #include /* * A PatchSizeProc that gets all its information from the clientData. */ void PatchSizeProc(ilfe, clientData) XR_ILFileEntry ilfe; unsigned *clientData; { if (*clientData != 0) { ilfe->ilfe_pBytes = *clientData; }; }; /* * We need the address of the PatchSizeProc, and since it's written in C, * the most readable way to get its address is to write another procedure in C. */ void (*(PatchSizeProcAddress()))() { return PatchSizeProc; };