megastubs.c File Reference

#include "frontier.h"
#include "standard.h"
#include "versions.h"
#include "error.h"
#include "font.h"
#include "memory.h"
#include "quickdraw.h"
#include "dialogs.h"
#include "ops.h"
#include "strings.h"
#include "lang.h"
#include "langinternal.h"
#include "langexternal.h"
#include "langsystem7.h"
#include "shell.h"
#include "icon.h"
#include "fileloop.h"
#include "resources.h"
#include "frontierwindows.h"
#include "shellhooks.h"
#include "shellprint.h"
#include "shell.rsrc.h"
#include "process.h"
#include "tablestructure.h"
#include "Winland.h"
#include "odbinternal.h"
#include "winregistry.h"

Include dependency graph for megastubs.c:

Go to the source code of this file.

Data Structures

struct  tymemtrack
struct  tymemhandleblock
struct  tyAskDialogInfo
struct  tyCharDialogInfo
struct  tyUserInfoDialogInfo

Defines

#define handlesPerBlock   10000
#define MAXBUTTONSTRINGWIDTH   11

Typedefs

typedef tymemtrackpmemtrack

Functions

boolean evaluateosascript (const tyvaluerecord *osaval, hdltreenode hparam1, bigstring bsname, tyvaluerecord *vreturned)
boolean isosascriptnode (hdltreenode htree, tyvaluerecord *osaval)
void convertToMacExtended (double foo, extended80 *tenbytebuffer)
void convertFromMacExtended (double *foo, extended80 *tenbytebuffer)
void Debugger ()
void DebugStr (char *bs)
static void frontierReturnHandle (tymemhandleblock *foo)
static boolean frontierExpandHandles ()
static tymemhandleblockfrontierGetHandle ()
char *CALLBACK frontierLock (Handle foo)
void CALLBACK frontierFree (Handle foo)
Handle CALLBACK frontierAlloc (long userSize)
long CALLBACK frontierSize (Handle foo)
Handle CALLBACK frontierReAlloc (Handle fooIn, long userSize)
Boolean EmptyRgn (hdlregion rgn)
boolean initmacintosh ()
WindowPtr getcurrentwindow ()
boolean fileresolvealias (ptrfilespec fs)
void centerdialog (HWND hwndDlg)
static messagebox (LPCTSTR lpText, LPCTSTR lpCaption, UINT uType)
boolean msgdialog (bigstring bsprompt)
void setbuttonstring (bigstring src, unsigned char *dest)
static void setmessageboxbuttonsize (int numberButtons)
LRESULT CALLBACK MsgBoxSubClassProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
LRESULT CALLBACK CBTProc (int nCode, WPARAM wParam, LPARAM lParam)
boolean twowaydialog (bigstring bsprompt, bigstring bsok, bigstring bscancel)
short threewaydialog (bigstring bsprompt, bigstring bsyes, bigstring bsno, bigstring bscancel)
boolean alertdialog (bigstring bs)
boolean alertstring (short iderror)
short savedialog (bigstring bsfname)
short replacevariabledialog (bigstring bs)
boolean revertdialog (bigstring bs)
LRESULT CALLBACK AskDialogCallback (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
static boolean winAskDialog (HWND window, bigstring caption, bigstring message, bigstring retString, long retStringSize, boolean flNumeric, boolean flPassword)
boolean askdialog (bigstring bsprompt, bigstring bsresult)
boolean askpassword (bigstring bsprompt, bigstring bsresult)
boolean intdialog (bigstring bsprompt, short *n)
LRESULT CALLBACK CharDialogCallback (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
boolean chardialog (bigstring prompt, short *n)
LRESULT CALLBACK UserInfoDialogCallback (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
boolean userinfodialog (bigstring username, bigstring userinitials, bigstring userorg, bigstring useremail)
boolean initdialogs (void)
boolean landeventfilter (EventRecord *ev)
boolean buildfilename (unsigned char *pathsource, short pathtype, unsigned char *filesource, short filetype, char *dest)
boolean appendcstring (bigstring dest, char *cstringsource)
boolean langipcmenustartup (void)
boolean langipcmenushutdown (void)
boolean langipcsymbolchanged (hdlhashtable ht, const bigstring bs, boolean fl)
boolean langipcsymbolinserted (hdlhashtable ht, const bigstring bs)
boolean langipcsymboldeleted (hdlhashtable ht, const bigstring bs)
boolean langdialogstart (void)

Variables

boolean fldatabasesaveas
tymemhandleblockmasterHandleTable = NULL
tymemhandleblockmasterFreeHandle = NULL
long handlecounter = 0
static CRITICAL_SECTION allocsection
static boolean allocsectioninitialized = false
static char frontierstring [] = APPNAME
static unsigned char gMsgAbortButton [256]
static unsigned char gMsgRetryButton [256]
static unsigned char gMsgCancelButton [256]
static unsigned char gMsgIgnoreButton [256]
FARPROC g_lpMsgBoxProc
HHOOK g_hhookCBT
static int gMessageBoxMinWidth
static int gMessageBoxWidth
static int gButtonWidth
static int gButtonSpacing
static long gbaseunits


Define Documentation

#define handlesPerBlock   10000
 

Definition at line 232 of file megastubs.c.

Referenced by frontierExpandHandles().

#define MAXBUTTONSTRINGWIDTH   11
 

Definition at line 751 of file megastubs.c.

Referenced by setbuttonstring().


Typedef Documentation

typedef struct tymemtrack * pmemtrack
 


Function Documentation

boolean alertdialog bigstring  bs  ) 
 

Definition at line 941 of file megastubs.c.

References copyptocstring(), grabthreadglobals(), messagebox(), and releasethreadglobals().

Here is the call graph for this function:

boolean alertstring short  iderror  ) 
 

Definition at line 958 of file megastubs.c.

References alertdialog(), alertstringlistnumber, bigstring, and getstringlist().

Referenced by ccloadfile(), postthreadsmessage(), shellrevert(), showerrorandexit(), tabledroppasteroutine(), and tablesetitemname().

Here is the call graph for this function:

boolean appendcstring bigstring  dest,
char *  cstringsource
 

Definition at line 1492 of file megastubs.c.

References memmove, setstringlength, and stringlength.

Referenced by movefile().

boolean askdialog bigstring  bsprompt,
bigstring  bsresult
 

Definition at line 1160 of file megastubs.c.

References hwndMDIClient, lenbigstring, and winAskDialog().

Here is the call graph for this function:

LRESULT CALLBACK AskDialogCallback HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 1074 of file megastubs.c.

References centerdialog(), FALSE, ID_ASKTEXTDIALOGEDITFIELD, ID_ASKTEXTDIALOGSTATICFIELD, tyAskDialogInfo::retBuffer, tyAskDialogInfo::retBufferLen, setstringlength, tyAskDialogInfo::textBuffer, and TRUE.

Referenced by winAskDialog().

Here is the call graph for this function:

boolean askpassword bigstring  bsprompt,
bigstring  bsresult
 

Definition at line 1165 of file megastubs.c.

References hwndMDIClient, lenbigstring, and winAskDialog().

Referenced by askfunc().

Here is the call graph for this function:

boolean buildfilename unsigned char *  pathsource,
short  pathtype,
unsigned char *  filesource,
short  filetype,
char *  dest
 

Definition at line 1429 of file megastubs.c.

References memmove, setstringlength, and stringlength.

LRESULT CALLBACK CBTProc int  nCode,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 805 of file megastubs.c.

References FALSE, MsgBoxSubClassProc(), and TRUE.

Referenced by threewaydialog(), and twowaydialog().

Here is the call graph for this function:

void centerdialog HWND  hwndDlg  ) 
 

Definition at line 659 of file megastubs.c.

References rc.

Referenced by AskDialogCallback(), CharDialogCallback(), and UserInfoDialogCallback().

boolean chardialog bigstring  prompt,
short n
 

Definition at line 1245 of file megastubs.c.

References bigstring, CharDialogCallback(), copyptocstring(), grabthreadglobals(), hInst, hwndMDIClient, IDD_DIALOGCOMMANDKEY, tyCharDialogInfo::prompt, releasethreadglobals(), tyCharDialogInfo::retBuffer, tyCharDialogInfo::retBufferLen, and setstringlength.

Referenced by mecmdkeypopupselect().

Here is the call graph for this function:

LRESULT CALLBACK CharDialogCallback HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 1192 of file megastubs.c.

References centerdialog(), FALSE, IDC_CHARPROMPT, IDC_EDIT1, tyCharDialogInfo::prompt, tyCharDialogInfo::retBuffer, tyCharDialogInfo::retBufferLen, setstringlength, and TRUE.

Referenced by chardialog().

Here is the call graph for this function:

void convertFromMacExtended double *  foo,
extended80 tenbytebuffer
 

Definition at line 113 of file megastubs.c.

References i, and extended80::x80.

Referenced by coercetodouble(), hashunpacktable(), and langunpackvalue().

void convertToMacExtended double  foo,
extended80 tenbytebuffer
 

Definition at line 80 of file megastubs.c.

References i, and extended80::x80.

Referenced by hashpackvisit(), and langpackvalue().

void Debugger void   ) 
 

void alertdialog (bigstring bs) { printf ("%s", bs); }

Definition at line 188 of file megastubs.c.

Referenced by builtinvalue(), landtestlistports(), main(), and opdraggingmove().

void DebugStr char *  bs  ) 
 

Definition at line 197 of file megastubs.c.

References copyptocstring().

Referenced by alertdialog(), builtinvalue(), cardIsModal(), coerceInsltoTEXT(), coerceTEXTtoSTXT(), coerceTypetoObj(), dbpushdatabase(), DebugNum(), getstringlist(), logtodebugger(), newmodaldialog(), popbackcolor(), popforecolor(), processyield(), pushbackcolor(), pushforecolor(), and pushmacport().

Here is the call graph for this function:

Boolean EmptyRgn hdlregion  rgn  ) 
 

Definition at line 622 of file megastubs.c.

boolean evaluateosascript const tyvaluerecord osaval,
hdltreenode  hparam1,
bigstring  bsname,
tyvaluerecord vreturned
 

Definition at line 72 of file megastubs.c.

Referenced by binaryfunctionvalue(), evaltree(), and langfunctioncall().

boolean fileresolvealias ptrfilespec  fs  ) 
 

Definition at line 648 of file megastubs.c.

Handle CALLBACK frontierAlloc long  userSize  ) 
 

Definition at line 567 of file megastubs.c.

References frontierGetHandle(), frontierReturnHandle(), tymemhandleblock::memBlock, and tymemhandleblock::memSize.

Here is the call graph for this function:

static boolean frontierExpandHandles  )  [static]
 

Definition at line 256 of file megastubs.c.

References handlesPerBlock, i, masterFreeHandle, masterHandleTable, tymemhandleblock::memBlock, tymemhandleblock::memSize, and NULL.

Referenced by frontierGetHandle().

void CALLBACK frontierFree Handle  foo  ) 
 

Definition at line 555 of file megastubs.c.

References frontierReturnHandle(), and tymemhandleblock::memBlock.

Here is the call graph for this function:

static tymemhandleblock* frontierGetHandle  )  [static]
 

Definition at line 291 of file megastubs.c.

References frontierExpandHandles(), masterFreeHandle, tymemhandleblock::memBlock, and NULL.

Referenced by frontierAlloc().

Here is the call graph for this function:

char* CALLBACK frontierLock Handle  foo  ) 
 

Definition at line 314 of file megastubs.c.

Referenced by extfrontierLock().

Handle CALLBACK frontierReAlloc Handle  fooIn,
long  userSize
 

Definition at line 604 of file megastubs.c.

References tymemhandleblock::memBlock, and tymemhandleblock::memSize.

static void frontierReturnHandle tymemhandleblock foo  )  [static]
 

Definition at line 242 of file megastubs.c.

References masterFreeHandle, tymemhandleblock::memBlock, and tymemhandleblock::memSize.

Referenced by frontierAlloc(), and frontierFree().

long CALLBACK frontierSize Handle  foo  ) 
 

Definition at line 591 of file megastubs.c.

Referenced by validhandle().

WindowPtr getcurrentwindow  ) 
 

Definition at line 644 of file megastubs.c.

References shellwindow.

Referenced by invalrect(), pushvalidrgnclip(), smashrect(), and validrect().

boolean initdialogs void   ) 
 

Definition at line 1410 of file megastubs.c.

Referenced by shellinit().

boolean initmacintosh void   ) 
 

Definition at line 636 of file megastubs.c.

boolean intdialog bigstring  bsprompt,
short n
 

Definition at line 1170 of file megastubs.c.

References bigstring, hwndMDIClient, lenbigstring, numbertostring(), stringtoshort(), and winAskDialog().

Referenced by getintfunc(), and shellhandlemenu().

Here is the call graph for this function:

boolean isosascriptnode hdltreenode  htree,
tyvaluerecord osaval
 

Definition at line 76 of file megastubs.c.

Referenced by evaltree(), handlerexpectsnames(), langfunctioncall(), and langipchandletrapverb().

boolean landeventfilter EventRecord ev  ) 
 

Definition at line 1417 of file megastubs.c.

Referenced by langipceventhook(), and shelleventavail().

boolean langdialogstart void   ) 
 

Definition at line 1522 of file megastubs.c.

Referenced by frontierstart().

boolean langipcmenushutdown void   ) 
 

Definition at line 1511 of file megastubs.c.

Referenced by ccdisposerecord().

boolean langipcmenustartup void   ) 
 

Definition at line 1509 of file megastubs.c.

Referenced by ccinstalltablestructure().

boolean langipcsymbolchanged hdlhashtable  ht,
const bigstring  bs,
boolean  fl
 

Definition at line 1513 of file megastubs.c.

Referenced by ccsymbolchanged(), langipcsymboldeleted(), and langipcsymbolinserted().

boolean langipcsymboldeleted hdlhashtable  ht,
const bigstring  bs
 

Definition at line 1517 of file megastubs.c.

Referenced by ccsymboldeleted().

boolean langipcsymbolinserted hdlhashtable  ht,
const bigstring  bs
 

Definition at line 1515 of file megastubs.c.

Referenced by ccsymbolinserted().

static messagebox LPCTSTR  lpText,
LPCTSTR  lpCaption,
UINT  uType
[static]
 

Definition at line 707 of file megastubs.c.

References grabthreadglobals(), hwndMDIClient, and releasethreadglobals().

Referenced by alertdialog(), msgdialog(), replacevariabledialog(), revertdialog(), and savedialog().

Here is the call graph for this function:

LRESULT CALLBACK MsgBoxSubClassProc HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 780 of file megastubs.c.

Referenced by CBTProc().

boolean msgdialog bigstring  bsprompt  ) 
 

Definition at line 721 of file megastubs.c.

References copyptocstring(), and messagebox().

Referenced by browserdragcopy(), and osacomponentverifyshutdown().

Here is the call graph for this function:

short replacevariabledialog bigstring  bs  ) 
 

Definition at line 1008 of file megastubs.c.

References copyptocstring(), messagebox(), and wsprintf.

Referenced by tableconfirmedinsert().

Here is the call graph for this function:

boolean revertdialog bigstring  bs  ) 
 

Definition at line 1048 of file megastubs.c.

References bigstring, convertpstring(), messagebox(), nil, parsedialogstring(), and shellgetstring().

Referenced by shellrevert().

Here is the call graph for this function:

short savedialog bigstring  bsfname  ) 
 

Definition at line 968 of file megastubs.c.

References copyptocstring(), messagebox(), and wsprintf.

Here is the call graph for this function:

void setbuttonstring bigstring  src,
unsigned char *  dest
 

Definition at line 752 of file megastubs.c.

References copyptocstring(), MAXBUTTONSTRINGWIDTH, and stringlength.

Referenced by threewaydialog(), and twowaydialog().

Here is the call graph for this function:

static void setmessageboxbuttonsize int  numberButtons  )  [static]
 

Definition at line 764 of file megastubs.c.

Referenced by threewaydialog(), and twowaydialog().

short threewaydialog bigstring  bsprompt,
bigstring  bsyes,
bigstring  bsno,
bigstring  bscancel
 

Definition at line 903 of file megastubs.c.

References CBTProc(), copyptocstring(), grabthreadglobals(), hwndMDIClient, releasethreadglobals(), setbuttonstring(), setmessageboxbuttonsize(), and shellinstance.

Here is the call graph for this function:

boolean twowaydialog bigstring  bsprompt,
bigstring  bsok,
bigstring  bscancel
 

Definition at line 876 of file megastubs.c.

References CBTProc(), copyptocstring(), grabthreadglobals(), hwndMDIClient, releasethreadglobals(), setbuttonstring(), setmessageboxbuttonsize(), and shellinstance.

Here is the call graph for this function:

boolean userinfodialog bigstring  username,
bigstring  userinitials,
bigstring  userorg,
bigstring  useremail
 

Definition at line 1344 of file megastubs.c.

References bigstring, copyctopstring(), getRegKeyString(), setstringlength, stringlength, tyUserInfoDialogInfo::useremail, tyUserInfoDialogInfo::userinitials, tyUserInfoDialogInfo::username, and tyUserInfoDialogInfo::userorg.

Referenced by getuserinfofunc().

Here is the call graph for this function:

LRESULT CALLBACK UserInfoDialogCallback HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 1281 of file megastubs.c.

References bigstring, centerdialog(), FALSE, IDC_EDIT1, IDC_EDIT2, IDC_EDIT3, IDC_EDIT4, setstringlength, TRUE, tyUserInfoDialogInfo::useremail, tyUserInfoDialogInfo::userinitials, tyUserInfoDialogInfo::username, and tyUserInfoDialogInfo::userorg.

Here is the call graph for this function:

static boolean winAskDialog HWND  window,
bigstring  caption,
bigstring  message,
bigstring  retString,
long  retStringSize,
boolean  flNumeric,
boolean  flPassword
[static]
 

Definition at line 1123 of file megastubs.c.

References AskDialogCallback(), tyAskDialogInfo::caption, grabthreadglobals(), hInst, IDD_ASKNUMBER, IDD_ASKPASSWORD, IDD_ASKTEXT, memmove, releasethreadglobals(), tyAskDialogInfo::retBuffer, tyAskDialogInfo::retBufferLen, stringlength, and tyAskDialogInfo::textBuffer.

Referenced by askdialog(), askpassword(), and intdialog().

Here is the call graph for this function:


Variable Documentation

CRITICAL_SECTION allocsection [static]
 

Handle block routines

Definition at line 238 of file megastubs.c.

boolean allocsectioninitialized = false [static]
 

Definition at line 239 of file megastubs.c.

boolean fldatabasesaveas
 

Definition at line 70 of file megastubs.c.

Referenced by dbassign(), dbassignheapstring(), dbendsaveas(), dbstartsaveas(), dbswapglobals(), dbwriteshadowavaillist(), hashpackscalar(), menuverbpack(), mesavemenurecord(), mesavemenustructure(), mesaveoutline(), opverbpack(), pictverbpack(), tablepreflightsubsdirtyflag(), tableverbpack(), and wpverbpack().

char frontierstring[] = APPNAME [static]
 

Definition at line 704 of file megastubs.c.

HHOOK g_hhookCBT
 

Definition at line 744 of file megastubs.c.

FARPROC g_lpMsgBoxProc
 

Definition at line 743 of file megastubs.c.

long gbaseunits [static]
 

Definition at line 749 of file megastubs.c.

int gButtonSpacing [static]
 

Definition at line 748 of file megastubs.c.

int gButtonWidth [static]
 

Definition at line 747 of file megastubs.c.

int gMessageBoxMinWidth [static]
 

Definition at line 745 of file megastubs.c.

int gMessageBoxWidth [static]
 

Definition at line 746 of file megastubs.c.

unsigned char gMsgAbortButton[256] [static]
 

Definition at line 739 of file megastubs.c.

unsigned char gMsgCancelButton[256] [static]
 

Definition at line 741 of file megastubs.c.

unsigned char gMsgIgnoreButton[256] [static]
 

Definition at line 742 of file megastubs.c.

unsigned char gMsgRetryButton[256] [static]
 

Definition at line 740 of file megastubs.c.

long handlecounter = 0
 

Definition at line 234 of file megastubs.c.

Referenced by ccupdatestatistics().

tymemhandleblock* masterFreeHandle = NULL
 

Definition at line 230 of file megastubs.c.

Referenced by frontierExpandHandles(), frontierGetHandle(), and frontierReturnHandle().

tymemhandleblock* masterHandleTable = NULL
 

Definition at line 229 of file megastubs.c.

Referenced by frontierExpandHandles().


Generated on Wed Jun 7 07:52:11 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6