langsystem7.h

Go to the documentation of this file.
00001 
00002 /*  $Id: langsystem7.h 603 2006-03-06 21:54:23Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define langsystem7include
00029 
00030 
00031 /*
00032 #ifndef __ALIASES__
00033 
00034     #include <Aliases.h>
00035 
00036 #endif
00037 */
00038 
00039 
00040 #ifndef langinclude
00041 
00042     #include "lang.h"
00043     
00044 #endif
00045 
00046 
00047 #ifdef MACVERSION
00048     #define filespecsize(fs) (sizeof (tyfilespec) - sizeof (Str63) + stringsize ((fs).name))
00049 #endif
00050 
00051 #ifdef WIN95VERSION
00052     #define filespecsize(fs) (sizeof (tyfilespec))  // assume all data is contiguous
00053 #endif
00054 
00055 
00056 typedef boolean (*langvisitlistvaluescallback) (tyvaluerecord *, ptrvoid); /*2003-04-28 AR*/
00057 
00058 
00059 /*prototypes*/
00060 
00061 extern boolean filespectoalias (const tyfilespec *, boolean, AliasHandle *);  /*landsystem7.c*/
00062 
00063 extern boolean aliastostring (Handle, bigstring);
00064 
00065 extern boolean aliastofilespec (AliasHandle, tyfilespec *);
00066 
00067 extern boolean coercetoalias (tyvaluerecord *);
00068 
00069 extern boolean langpackfileval (const tyvaluerecord *, Handle *);
00070 
00071 extern boolean langunpackfileval (Handle, tyvaluerecord *);
00072 
00073 extern boolean objspectoaddress (tyvaluerecord *);
00074 
00075 extern boolean objspectofilespec (tyvaluerecord *);
00076 
00077 extern boolean filespectoobjspec (tyvaluerecord *);
00078 
00079 extern boolean objspectostring (Handle, bigstring);
00080 
00081 extern boolean coercetoobjspec (tyvaluerecord *);
00082 
00083 extern boolean setobjspecverb (hdltreenode, tyvaluerecord *);
00084 
00085 extern boolean evaluateobjspec (hdltreenode, tyvaluerecord *);
00086 
00087 extern boolean isobjspectree (hdltreenode);
00088 
00089 #ifdef flnewfeatures
00090 
00091 extern boolean filespecaddvalue (tyvaluerecord *, tyvaluerecord *, tyvaluerecord *);
00092 
00093 extern boolean filespecsubtractvalue (tyvaluerecord *, tyvaluerecord *, tyvaluerecord *);
00094 
00095 extern boolean getobjectmodeldisplaystring (tyvaluerecord *, bigstring);
00096 
00097 extern boolean makelistvalue (hdltreenode, tyvaluerecord *);
00098 
00099 extern boolean makerecordvalue (hdltreenode, boolean, tyvaluerecord *);
00100 
00101 extern boolean langgetlistsize (const tyvaluerecord *, long *);
00102 
00103 #ifdef oplanglists
00104     extern boolean langgetlistitem (const tyvaluerecord *, long, ptrstring, tyvaluerecord *);
00105     
00106     extern boolean langpushlistval (struct tylistrecord **, ptrstring, tyvaluerecord *);
00107 
00108     extern boolean langpushlisttext (struct tylistrecord ** hlist, Handle hstring);
00109     
00110     extern boolean langpushliststring (struct tylistrecord ** hlist, bigstring bs);
00111     
00112     extern boolean langpushlistaddress (struct tylistrecord ** hlist, hdlhashtable ht, bigstring bs);
00113     
00114     extern boolean langpushlistlong (struct tylistrecord ** hlist, long num);
00115     
00116     extern boolean getnthlistval (struct tylistrecord ** hlist, long n, ptrstring pkey, tyvaluerecord *val);
00117 
00118     extern boolean setnthlistval (struct tylistrecord ** hlist, long n, ptrstring pkey, tyvaluerecord *val);
00119 #else
00120     extern boolean langgetlistitem (const tyvaluerecord *, long, OSType *, tyvaluerecord *);
00121 #endif
00122 
00123 extern boolean coercetolist (tyvaluerecord *, tyvaluetype);
00124 
00125 extern boolean coercelistvalue (tyvaluerecord *, tyvaluetype);
00126 
00127 extern boolean listaddvalue (tyvaluerecord *, tyvaluerecord *, tyvaluerecord *);
00128 
00129 extern boolean listsubtractvalue (tyvaluerecord *, tyvaluerecord *, tyvaluerecord *);
00130 
00131 extern boolean listcomparevalue (tyvaluerecord *, tyvaluerecord *, tytreetype, tyvaluerecord *);
00132 
00133 extern boolean coercetolistposition (tyvaluerecord *);
00134     
00135 extern boolean listarrayvalue (tyvaluerecord *, bigstring, tyvaluerecord *, tyvaluerecord *);
00136 
00137 extern boolean listassignvalue (tyvaluerecord *, bigstring, tyvaluerecord *, tyvaluerecord *);
00138 
00139 extern boolean listdeletevalue (tyvaluerecord *, bigstring, tyvaluerecord *);
00140 
00141 extern boolean langvisitlistvalues (tyvaluerecord *, langvisitlistvaluescallback, ptrvoid); /*2003-04-28 AR*/
00142 
00143 #endif
00144 
00145 

Generated on Wed May 31 18:19:53 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6