home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / cube3d / cube3D.exe / cube3D / src / gccfix.c < prev    next >
C/C++ Source or Header  |  2000-12-26  |  1KB  |  37 lines

  1. /*
  2.  * @(#)gccfix.c
  3.  *
  4.  * Copyright 1999-2000, Aaron Ardiri (mailto:aaron@ardiri.com)
  5.  * All rights reserved.
  6.  *
  7.  * The  source code  outlines a number of basic Palm Computing Programming
  8.  * principles and you  should be able to take the core structure and write 
  9.  * a large complex program. It is distributed WITHOUT ANY WARRANTY; use it
  10.  * "AS IS" and at your own risk.
  11.  *
  12.  * The code presented is Copyright 1999-2000 by Aaron Ardiri. It should be
  13.  * used for  educational purposes only.  You  shall not modify  the Cube3D 
  14.  * source code in any way and  re-distribute it as your  own,  however you
  15.  * are free to use  the code as  a guide for  developing  programs  on the 
  16.  * Palm Computing Platform.
  17.  *
  18.  * - source code obtained from John Marshall (john_w_marshall@palm.com)
  19.  */
  20.  
  21. #include "palm.h"
  22.  
  23. void
  24. _GccReleaseCode(UInt16 cmd UNUSED, void *pbp UNUSED, UInt16 flags)
  25. {
  26.   if (flags & sysAppLaunchFlagNewGlobals) {
  27.  
  28.     MemHandle codeH;
  29.     int resno;
  30.  
  31.     for (resno = 2; (codeH = DmGet1Resource ('code', resno)) != NULL; resno++) {
  32.       MemHandleUnlock (codeH);
  33.       DmReleaseResource (codeH);
  34.     }
  35.   }
  36. }
  37.