~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a level of indirection to make it rather easier to work out which of a
[sgt/putty]
/
mac
/
macdlg.c
diff --git
a/mac/macdlg.c
b/mac/macdlg.c
index
3da5083
..
4f18bdd
100644
(file)
--- a/
mac/macdlg.c
+++ b/
mac/macdlg.c
@@
-1,4
+1,4
@@
-/* $Id: macdlg.c,v 1.1
0 2003/02/02 15:59:00
ben Exp $ */
+/* $Id: macdlg.c,v 1.1
1 2003/02/04 23:39:26
ben Exp $ */
/*
* Copyright (c) 2002 Ben Harris
* All rights reserved.
/*
* Copyright (c) 2002 Ben Harris
* All rights reserved.
@@
-65,7
+65,7
@@
void mac_newsession(void)
void mac_dupsession(void)
{
void mac_dupsession(void)
{
- Session *s1 =
(Session *)GetWRefC
on(FrontWindow());
+ Session *s1 =
mac_windowsessi
on(FrontWindow());
Session *s2;
s2 = smalloc(sizeof(*s2));
Session *s2;
s2 = smalloc(sizeof(*s2));
@@
-180,7
+180,7
@@
void mac_opensession(void)
void mac_savesession(void)
{
void mac_savesession(void)
{
- Session *s =
(Session *)GetWRefC
on(FrontWindow());
+ Session *s =
mac_windowsessi
on(FrontWindow());
void *sesshandle;
assert(s->hasfile);
void *sesshandle;
assert(s->hasfile);
@@
-193,7
+193,7
@@
void mac_savesession(void)
void mac_savesessionas(void)
{
#if !TARGET_API_MAC_CARBON /* XXX Navigation Services */
void mac_savesessionas(void)
{
#if !TARGET_API_MAC_CARBON /* XXX Navigation Services */
- Session *s =
(Session *)GetWRefC
on(FrontWindow());
+ Session *s =
mac_windowsessi
on(FrontWindow());
StandardFileReply sfr;
void *sesshandle;
StandardFileReply sfr;
void *sesshandle;
@@
-284,7
+284,7
@@
void mac_activatedlg(WindowPtr window, EventRecord *event)
void mac_clickdlg(WindowPtr window, EventRecord *event)
{
short item;
void mac_clickdlg(WindowPtr window, EventRecord *event)
{
short item;
- Session *s =
(Session *)GetWRefC
on(window);
+ Session *s =
mac_windowsessi
on(window);
DialogRef dialog = GetDialogFromWindow(window);
if (DialogSelect(event, &dialog, &item))
DialogRef dialog = GetDialogFromWindow(window);
if (DialogSelect(event, &dialog, &item))