home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#)gccfix.c
- *
- * Copyright 1999-2000, Aaron Ardiri (mailto:aaron@ardiri.com)
- * All rights reserved.
- *
- * The source code outlines a number of basic Palm Computing Programming
- * principles and you should be able to take the core structure and write
- * a large complex program. It is distributed WITHOUT ANY WARRANTY; use it
- * "AS IS" and at your own risk.
- *
- * The code presented is Copyright 1999-2000 by Aaron Ardiri. It should be
- * used for educational purposes only. You shall not modify the Cube3D
- * source code in any way and re-distribute it as your own, however you
- * are free to use the code as a guide for developing programs on the
- * Palm Computing Platform.
- *
- * - source code obtained from John Marshall (john_w_marshall@palm.com)
- */
-
- #include "palm.h"
-
- void
- _GccReleaseCode(UInt16 cmd UNUSED, void *pbp UNUSED, UInt16 flags)
- {
- if (flags & sysAppLaunchFlagNewGlobals) {
-
- MemHandle codeH;
- int resno;
-
- for (resno = 2; (codeH = DmGet1Resource ('code', resno)) != NULL; resno++) {
- MemHandleUnlock (codeH);
- DmReleaseResource (codeH);
- }
- }
- }
-