ops.c File Reference

#include "frontier.h"
#include "standard.h"
#include "error.h"
#include "memory.h"
#include "strings.h"
#include "ops.h"
#include "langinternal.h"
#include "shell.h"

Include dependency graph for ops.c:

Go to the source code of this file.

Defines

#define Decimal   decimal
#define DecForm   decform
#define gestalttrap   0xA1AD
#define unimplementedtrap   0xA09F

Functions

short minint (short x, short y)
short maxint (short x, short y)
short absint (short x)
boolean delayticks (long ct)
boolean delayseconds (long ct)
void counttickloops (long *ctloops)
void burntickloops (long ctloops)
unsigned char uppercasechar (unsigned char ch)
unsigned char lowercasechar (unsigned char ch)
boolean textchar (unsigned char chcheck)
void shorttostring (short shortval, bigstring bs)
void numbertostring (long longval, bigstring bs)
boolean stringtonumber (bigstring bs, long *longval)
boolean stringtoshort (bigstring bs, short *shortval)
static double_t str2num (byte *s)
static void num2str (decform *f, double_t x, void *s)
boolean stringtofloat (bigstring bs, double *pfloat)
boolean floattostring (double num, bigstring bs)
long numberfromhandle (register Handle x)
void exittooperatingsystem (void)
short dirtoindex (tydirection dir)
tydirection indextodir (short ix)
boolean validdirection (tydirection dir)
tydirection oppositdirection (tydirection dir)
long divup (register long n, register long d)
long divround (register long n, register long d)
long quantumize (register long n, register long q)
boolean truenoop (void)
boolean falsenoop (void)
static boolean gestaltavailable (void)
boolean gestalt (OSType selector, long *result)
boolean listlink (hdllinkedlist hlinkedlist, hdllinkedlist hinsert)
boolean listunlink (hdllinkedlist hlinkedlist, hdllinkedlist hdelete)
void getsystemversionstring (bigstring bs, bigstring bsextrainfo)
void getsizestring (unsigned long size, bigstring bs)
unsigned long bcdtolong (unsigned long bcd)

Variables

static tydirection directions [ctdirections]


Define Documentation

#define DecForm   decform
 

Definition at line 375 of file ops.c.

Referenced by floattostring().

#define Decimal   decimal
 

Definition at line 374 of file ops.c.

#define gestalttrap   0xA1AD
 

Definition at line 684 of file ops.c.

#define unimplementedtrap   0xA09F
 

Definition at line 685 of file ops.c.


Function Documentation

short absint short  x  ) 
 

Definition at line 84 of file ops.c.

Referenced by pointdist().

unsigned long bcdtolong unsigned long  bcd  ) 
 

Definition at line 957 of file ops.c.

Referenced by getsystemversionstring(), and initenvironment().

void burntickloops long  ctloops  ) 
 

Definition at line 178 of file ops.c.

References ct, and i.

Referenced by zoomrect().

void counttickloops long ctloops  ) 
 

Definition at line 153 of file ops.c.

References ct.

Referenced by zoominit().

boolean delayseconds long  ct  ) 
 

Definition at line 129 of file ops.c.

References delayticks().

Here is the call graph for this function:

boolean delayticks long  ct  ) 
 

Definition at line 90 of file ops.c.

References fl, flscriptrunning, langbackgroundtask(), and shellbackgroundtask().

Here is the call graph for this function:

short dirtoindex tydirection  dir  ) 
 

Definition at line 529 of file ops.c.

References ctdirections, and directions.

Referenced by dirtostring(), and validdirection().

long divround register long  n,
register long  d
 

Definition at line 635 of file ops.c.

long divup register long  n,
register long  d
 

Definition at line 622 of file ops.c.

void exittooperatingsystem void   ) 
 

Definition at line 509 of file ops.c.

References shellframewindow.

Referenced by ccinstalltablestructure(), shellinit(), and shellshutdown().

boolean falsenoop void   ) 
 

Definition at line 674 of file ops.c.

boolean floattostring double  num,
bigstring  bs
 

Definition at line 442 of file ops.c.

References DecForm, num2str(), and pushchar().

Referenced by coercetostring(), and longrangeerror().

Here is the call graph for this function:

boolean gestalt OSType  selector,
long result
 

Definition at line 714 of file ops.c.

References gestaltavailable(), and noErr.

Referenced by builtinvalue(), getspecialfolderpath(), getsystemversionstring(), havecomponentmanager(), initenvironment(), initthreads(), landinit(), langgestaltcheck(), osaStartRecording(), and systemhascolor().

Here is the call graph for this function:

static boolean gestaltavailable void   )  [static]
 

Definition at line 687 of file ops.c.

References gestalttrap, long, and unimplementedtrap.

void getsizestring unsigned long  size,
bigstring  bs
 

Definition at line 913 of file ops.c.

References BIGSTRING, bigstring, copystring(), numbertostring(), pushchar(), pushstring(), and setstringlength.

Here is the call graph for this function:

void getsystemversionstring bigstring  bs,
bigstring  bsextrainfo
 

Definition at line 860 of file ops.c.

References bcdtolong(), copyctopstring(), gestalt(), nil, numbertostring(), pushchar(), pushint(), and setemptystring.

Referenced by initenvironment(), and sysfunctionvalue().

Here is the call graph for this function:

tydirection indextodir short  ix  ) 
 

Definition at line 541 of file ops.c.

References directions.

Referenced by stringtodir().

boolean listlink hdllinkedlist  hlinkedlist,
hdllinkedlist  hinsert
 

Definition at line 731 of file ops.c.

References h, tylinkedlistrecord::hnext, and nil.

Referenced by addosaserver(), dbopenverb(), newcomponentglobals(), newthreadglobals(), and pushmenubarlist().

boolean listunlink hdllinkedlist  hlinkedlist,
hdllinkedlist  hdelete
 

Definition at line 766 of file ops.c.

References h, tylinkedlistrecord::hnext, and nil.

Referenced by closeosaservers(), dbclosefile(), deletefromprocesslist(), disposecomponentglobals(), disposethreadglobals(), getosaserver(), and popmenubarlist().

unsigned char lowercasechar unsigned char  ch  ) 
 

Definition at line 215 of file ops.c.

short maxint short  x,
short  y
 

Definition at line 78 of file ops.c.

short minint short  x,
short  y
 

Definition at line 72 of file ops.c.

static void num2str decform *  f,
double_t  x,
void *  s
[static]
 

Definition at line 403 of file ops.c.

References convertcstring().

Referenced by floattostring().

Here is the call graph for this function:

long numberfromhandle register Handle  x  ) 
 

Definition at line 471 of file ops.c.

References gethandlesize().

Here is the call graph for this function:

void numbertostring long  longval,
bigstring  bs
 

Definition at line 244 of file ops.c.

References convertcstring(), and wsprintf.

Referenced by aboutsetthreadstring(), addday(), adddayrows(), addmonthyearrow(), ccupdatestatistics(), coercetostring(), datedayofweektostring(), datemonthtostring(), datenetstandardstring(), deletestorageval(), getmonthurl(), getpagetableaddressverb(), getsizestring(), getstorageval(), getsystemversionstring(), hashgetsizestring(), inetdsupervisor(), intdialog(), kstring(), langgetwithvaluename(), langlongparamerror(), langparamerrormessage(), locksemaphoreverb(), opxmlpushonetaglong(), osacomponentverifyshutdown(), parsenumberstring(), parsepopnumber(), push2digitnum(), pushlong(), runopenrecentmenuscript(), serialstring(), setstorageval(), shellinternalerrormessage(), shorttostring(), volumeinfoerror(), webservercallresponder(), webservermethodnotallowed(), webserverserver(), and writehandlestreamlong().

Here is the call graph for this function:

tydirection oppositdirection tydirection  dir  ) 
 

Definition at line 553 of file ops.c.

References down, flatdown, flatup, left, nodirection, pagedown, pageleft, pageright, pageup, right, and up.

Referenced by opkeystroke(), oprepeatedbump(), and wpscroll().

long quantumize register long  n,
register long  q
 

Definition at line 648 of file ops.c.

References divup().

Here is the call graph for this function:

void shorttostring short  shortval,
bigstring  bs
 

Definition at line 238 of file ops.c.

References numbertostring().

Referenced by coercetostring(), getiso8601datetimestring(), intdialog(), mrcalendargetdayaddressdive(), pointtostring(), recttostring(), and rgbtostring().

Here is the call graph for this function:

static double_t str2num byte s  )  [static]
 

Definition at line 383 of file ops.c.

References chnul, isemptystring, and stringlength.

Referenced by stringtofloat().

boolean stringtofloat bigstring  bs,
double *  pfloat
 

Definition at line 416 of file ops.c.

References bigstring, isallnumeric(), nthword(), and str2num().

Referenced by coercetodouble(), coercetosingle(), parsepopnumber(), and stringtolong().

Here is the call graph for this function:

boolean stringtonumber bigstring  bs,
long longval
 

Definition at line 260 of file ops.c.

References i, setstringlength, and stringlength.

boolean stringtoshort bigstring  bs,
short shortval
 

Definition at line 301 of file ops.c.

References short, and stringtonumber().

Referenced by fileparsevolname(), intdialog(), mrcalendargetfirstday(), mrcalendargetlastday(), opxmlgetoneshortvalue(), pathtofilespec(), and setiso8601datetimestring().

Here is the call graph for this function:

boolean textchar unsigned char  chcheck  ) 
 

Definition at line 226 of file ops.c.

References chdelete.

Referenced by handlewindoweventcommand().

boolean truenoop void   ) 
 

Definition at line 664 of file ops.c.

unsigned char uppercasechar unsigned char  ch  ) 
 

Definition at line 204 of file ops.c.

Referenced by chardialog(), mesetcmdkey(), and opcmdkeyfilter().

boolean validdirection tydirection  dir  ) 
 

Definition at line 547 of file ops.c.

References dirtoindex().

Referenced by coercetodirection().

Here is the call graph for this function:


Variable Documentation

tydirection directions[ctdirections] [static]
 

Initial value:

Definition at line 43 of file ops.c.

Referenced by dirtoindex(), and indextodir().


Generated on Thu Jun 8 10:23:55 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6