resources.c File Reference

#include "frontier.h"
#include "standard.h"
#include "error.h"
#include "memory.h"
#include "strings.h"
#include "shell.rsrc.h"
#include "file.h"
#include "resources.h"
#include "langinternal.h"

Include dependency graph for resources.c:

Go to the source code of this file.

Functions

boolean getstringlist (short listnum, short id, bigstring bs)
boolean findstringlist (bigstring bs, short listnum, short *id)
boolean closeresourcefile (short rnum)
boolean openresourcefile (const tyfilespec *fs, short *rnum, short forktype)
boolean copyallresources (short sourcenum, short destnum)
static Handle get1resource (ResType type, short id, bigstring bsname)
Handle filegetresource (short rnum, ResType type, short id, bigstring bsname)
boolean filereadresource (short rnum, ResType type, short id, bigstring bsname, long ctread, void *pdata)
boolean loadresource (const tyfilespec *fs, short rnum, ResType type, short id, bigstring bsname, long sizedata, void *pdata, short forktype)
Handle getresourcehandle (ResType type, short id)
void releaseresourcehandle (Handle h)

Variables

private short newrnum
private short oldrnum


Function Documentation

boolean closeresourcefile short  rnum  ) 
 

Definition at line 117 of file resources.c.

boolean copyallresources short  sourcenum,
short  destnum
 

Definition at line 372 of file resources.c.

Referenced by shelldatabasesaveas().

Handle filegetresource short  rnum,
ResType  type,
short  id,
bigstring  bsname
 

Definition at line 473 of file resources.c.

References get1resource(), and nil.

Referenced by checktable(), filereadresource(), and getresourcehandle().

Here is the call graph for this function:

boolean filereadresource short  rnum,
ResType  type,
short  id,
bigstring  bsname,
long  ctread,
void *  pdata
 

Definition at line 501 of file resources.c.

References filegetresource(), gethandlesize(), min, and moveleft().

Referenced by loadresource().

Here is the call graph for this function:

boolean findstringlist bigstring  bs,
short  listnum,
short id
 

Definition at line 81 of file resources.c.

References alllower(), bigstring, copystring(), equalstrings(), and getstringlist().

Referenced by getspecialfolderpath().

Here is the call graph for this function:

static Handle get1resource ResType  type,
short  id,
bigstring  bsname
[static]
 

Definition at line 419 of file resources.c.

References hInst, isemptystring, memmove, NewHandle, nil, and NULL.

Referenced by filegetresource(), and loadresource().

Handle getresourcehandle ResType  type,
short  id
 

Definition at line 1054 of file resources.c.

References filegetresource(), and NULL.

Here is the call graph for this function:

boolean getstringlist short  listnum,
short  id,
bigstring  bs
 

Definition at line 45 of file resources.c.

boolean loadresource const tyfilespec fs,
short  rnum,
ResType  type,
short  id,
bigstring  bsname,
long  sizedata,
void *  pdata,
short  forktype
 

Definition at line 731 of file resources.c.

References filereadresource(), get1resource(), gethandlesize(), min, moveleft(), nil, and releaseresourcehandle().

Referenced by loaddefaultfont(), and loadwindowposition().

Here is the call graph for this function:

boolean openresourcefile const tyfilespec fs,
short rnum,
short  forktype
 

Definition at line 142 of file resources.c.

References closeresourcefile(), datafork, error, langerrormessage(), noErr, oserror(), resourcefork, and setoserrorparam().

Here is the call graph for this function:

void releaseresourcehandle Handle  h  ) 
 

Definition at line 1065 of file resources.c.

References DisposeHandle.

Referenced by loadconfigresource(), loadfunctionprocessor(), and loadresource().


Variable Documentation

private short newrnum
 

Definition at line 610 of file resources.c.

private short oldrnum
 

Definition at line 610 of file resources.c.


Generated on Sat Jun 10 02:27:55 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6