|
From: <cre...@us...> - 2007-02-28 00:32:28
|
Revision: 1638
http://svn.sourceforge.net/frontierkernel/?rev=1638&view=rev
Author: creecode
Date: 2007-02-27 16:32:28 -0800 (Tue, 27 Feb 2007)
Log Message:
-----------
formatting tweaks
Modified Paths:
--------------
Frontier/branches/Frontier_Long_File_Paths/Common/source/tablewindow.c
Frontier/branches/Frontier_Long_File_Paths/Common/source/threads.c
Frontier/branches/Frontier_Long_File_Paths/Common/source/timedate.c
Frontier/branches/Frontier_Long_File_Paths/Common/source/wpverbs.c
Modified: Frontier/branches/Frontier_Long_File_Paths/Common/source/tablewindow.c
===================================================================
--- Frontier/branches/Frontier_Long_File_Paths/Common/source/tablewindow.c 2007-02-27 23:30:09 UTC (rev 1637)
+++ Frontier/branches/Frontier_Long_File_Paths/Common/source/tablewindow.c 2007-02-28 00:32:28 UTC (rev 1638)
@@ -308,6 +308,7 @@
shelladjustaftergrow (tableformatswindow); /*PBS 7.0b52: Get col. titles caught up.*/
return (true);
+
} /*tableverbsetfont*/
@@ -365,44 +366,46 @@
if (outlinedata == nil)
return;
-
+
if (tablechecksortorder ())
tableupdatecoltitles (false);
-
+
if (tablecheckzoombutton ())
tabledrawzoombutton (false);
-
+
browsercommitchanges ();
opidle ();
+
} /*tableverbeventloopidle*/
static boolean tablegetvariableroutine (ptrvoid refcon) {
-
+
hdlexternalvariable *hvariable = (hdlexternalvariable *) refcon;
hdlhashtable ht;
if (tableformatsdata == nil)
return (false);
-
+
ht = (hdlhashtable) (**tableformatsdata).htable;
*hvariable = (hdlexternalvariable) (**ht).hashtablerefcon;
return (true);
+
} /*tablegetvariableroutine*/
boolean tableverbclose (void) {
-
+
hdltableformats hf = tableformatsdata;
hdlhashtable ht;
hdloutlinerecord ho = outlinedata;
if (hf == nil) //already closed & disposed?
return (true);
-
+
ht = (hdlhashtable) (**hf).htable;
// tableverbcheckwindowrect (ho);
@@ -416,15 +419,18 @@
assert ((**hf).editval == nil);
if (tableoutlineneedssaving ()) { /*we have to keep the in-memory version around*/
-
+
(**ho).flwindowopen = false;
opcloseoutline (); /*prepare for dormancy, not in a window anymore*/
+
}
else {
+
tabledisposeoutline (hf);
+
}
-
+
killundo (); /*toss any newly-generated undos*/
tablewindowclosed ((hdlexternalvariable) (**ht).hashtablerefcon);
@@ -435,7 +441,8 @@
(**ht).flwindowopen = false;
- return (true);
+ return (true);
+
} /*tableverbclose*/
Modified: Frontier/branches/Frontier_Long_File_Paths/Common/source/threads.c
===================================================================
--- Frontier/branches/Frontier_Long_File_Paths/Common/source/threads.c 2007-02-27 23:30:09 UTC (rev 1637)
+++ Frontier/branches/Frontier_Long_File_Paths/Common/source/threads.c 2007-02-28 00:32:28 UTC (rev 1638)
@@ -437,46 +437,52 @@
boolean threadyield (boolean flresting) {
-#pragma unused(flresting)
+ #pragma unused(flresting)
+
/*
5.0a19 dmb: added flresting parameter
*/
-
-#ifdef MACVERSION
- ThreadID idthread = idwaitingthread;
- idwaitingthread = kNoThreadID;
+ #ifdef MACVERSION
- return (YieldToThread (idthread) == noErr);
-#endif
-
-#ifdef WIN95VERSION
- ptrvoid hglobals = TlsGetValue (ixlocalthreadglobals);
+ ThreadID idthread = idwaitingthread;
+
+ idwaitingthread = kNoThreadID;
+
+ return (YieldToThread (idthread) == noErr);
+
+ #endif
- (*threadcallbacks.swapoutcallback) (hglobals);
+ #ifdef WIN95VERSION
- if (flresting)
- SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_BELOW_NORMAL);
+ ptrvoid hglobals = TlsGetValue (ixlocalthreadglobals);
+
+ (*threadcallbacks.swapoutcallback) (hglobals);
+
+ if (flresting)
+ SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_BELOW_NORMAL);
+
+ ReleaseMutex (hsharedthreadglobals);
- ReleaseMutex (hsharedthreadglobals);
+ Sleep (0L); /*6.1b12 AR: give up the rest of our timeslice*/
+
+ WaitForSingleObject (hsharedthreadglobals, INFINITE);
- Sleep (0L); /*6.1b12 AR: give up the rest of our timeslice*/
-
- WaitForSingleObject (hsharedthreadglobals, INFINITE);
-
- if (flresting) {
+ if (flresting) {
- // if (inmainthread ())
- // SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_ABOVE_NORMAL);
- // else
- SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_NORMAL);
- }
-
- (*threadcallbacks.swapincallback) (hglobals);
+ // if (inmainthread ())
+ // SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_ABOVE_NORMAL);
+ // else
+ SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_NORMAL);
+ }
+
+ (*threadcallbacks.swapincallback) (hglobals);
+
+ return (true);
+
+ #endif
- return (true);
-#endif
} /*threadyield*/
Modified: Frontier/branches/Frontier_Long_File_Paths/Common/source/timedate.c
===================================================================
--- Frontier/branches/Frontier_Long_File_Paths/Common/source/timedate.c 2007-02-27 23:30:09 UTC (rev 1637)
+++ Frontier/branches/Frontier_Long_File_Paths/Common/source/timedate.c 2007-02-28 00:32:28 UTC (rev 1638)
@@ -695,12 +695,10 @@
while (getstringcharacter(bsdate, idx-1) == ' ')
--idx;
- if (idx > 3) {
- if ((getstringcharacter(bsdate, idx - 3) == 'G') && (getstringcharacter(bsdate, idx - 2) == 'M') && (getstringcharacter(bsdate, idx -1) == 'T')) {
+ if (idx > 3)
+ if ((getstringcharacter(bsdate, idx - 3) == 'G') && (getstringcharacter(bsdate, idx - 2) == 'M') && (getstringcharacter(bsdate, idx -1) == 'T'))
flUseGMT = true;
- }
- }
-
+
*ptime = 0; /*default return value*/
clearbytes (&longdate, sizeof (longdate));
@@ -722,14 +720,12 @@
shortdate.month = longdate.ld.month;
shortdate.year = longdate.ld.year;
+
}
else {
SecondsToDate (0, &shortdate);
-
- /*
- GetTime (&shortdate);
- */
+
}
shortdate.hour = longdate.ld.hour; /*time fields will be zero if !flgottime*/
@@ -740,13 +736,13 @@
DateToSeconds (&shortdate, ptime);
- if (flUseGMT) {
+ if (flUseGMT)
adjustforcurrenttimezone (ptime);
- }
#endif
#ifdef WIN95VERSION
+
tydaterec returnDT;
tydaterec return2DT;
tydaterec actualDT;
@@ -887,6 +883,7 @@
#endif
return (true);
+
} /*stringtotime*/
Modified: Frontier/branches/Frontier_Long_File_Paths/Common/source/wpverbs.c
===================================================================
--- Frontier/branches/Frontier_Long_File_Paths/Common/source/wpverbs.c 2007-02-27 23:30:09 UTC (rev 1637)
+++ Frontier/branches/Frontier_Long_File_Paths/Common/source/wpverbs.c 2007-02-28 00:32:28 UTC (rev 1638)
@@ -1085,6 +1085,7 @@
}
case settextfunc: {
+
Handle htext;
flnextparamislast = true;
@@ -1098,6 +1099,7 @@
fl = setbooleanvalue (true, v);
break;
+
}
case getseltextfunc: {
@@ -1360,6 +1362,7 @@
}
case insertfunc: {
+
Handle x;
flnextparamislast = true;
@@ -1377,6 +1380,7 @@
fl = true;
break;
+
}
/*
@@ -1942,6 +1946,7 @@
*hv = (hdlexternalvariable) (**wpdata).wprefcon;
return (true);
+
} /*wpverbgetvariable*/
@@ -1966,6 +1971,7 @@
default:
return (false);
}
+
} /*wpverbgettargetdata*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|