NUMPARSE

"Martin Fuchs" <[email protected]> Sun, 29 Feb 2004 14:53:34 +0100
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
Changelog:
* include/oleauto.h (struct NUMPARSE, NUMPRS_...): add declarations for struct NUMPARSE
* include/oleauto.h (VarParseNumFromStr, VarNumFromParseNum): add function declarations



For documentation please see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm/chap7_406d.asp


Index: oleauto.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/oleauto.h,v
retrieving revision 1.9
diff -u -p -d -r1.9 oleauto.h
--- oleauto.h	12 May 2003 10:35:34 -0000	1.9
+++ oleauto.h	29 Feb 2004 13:58:10 -0000
@@ -81,6 +81,23 @@
 #define V_DECIMALREF(X) V_UNION(X,pdecVal)
 #define V_I1(X) V_UNION(X,cVal)
 
+#define NUMPRS_LEADING_WHITE 0x00001
+#define NUMPRS_TRAILING_WHITE 0x00002
+#define NUMPRS_LEADING_PLUS 0x00004
+#define NUMPRS_TRAILING_PLUS 0x00008
+#define NUMPRS_LEADING_MINUS 0x00010
+#define NUMPRS_TRAILING_MINUS 0x00020
+#define NUMPRS_HEX_OCT 0x00040
+#define NUMPRS_PARENS 0x00080
+#define NUMPRS_DECIMAL 0x00100
+#define NUMPRS_THOUSANDS 0x00200
+#define NUMPRS_CURRENCY 0x00400
+#define NUMPRS_EXPONENT 0x00800
+#define NUMPRS_USE_ALL 0x01000
+#define NUMPRS_STD 0x01FFF
+#define NUMPRS_NEG 0x10000
+#define NUMPRS_INEXACT 0x20000
+
 #include <oaidl.h>
 
 typedef enum tagREGKIND {
@@ -107,6 +124,15 @@ typedef struct tagINTERFACEDATA {
 	UINT cMembers;
 } INTERFACEDATA,*LPINTERFACEDATA;
 
+typedef struct {
+	int cDig;
+	unsigned long dwInFlags;
+	unsigned long dwOutFlags;
+	int cchUsed;
+	int nBaseShift;
+	int nPwr10;
+} NUMPARSE;
+
 WINOLEAUTAPI_(BSTR) SysAllocString(const OLECHAR*);
 WINOLEAUTAPI_(int) SysReAllocString(BSTR*,const OLECHAR*);
 WINOLEAUTAPI_(BSTR) SysAllocStringLen(const OLECHAR*,unsigned int);
@@ -251,6 +277,8 @@ WINOLEAUTAPI CreateErrorInfo(LPCREATEERR
 WINOLEAUTAPI_(unsigned long) OaBuildVersion(void);
 WINOLEAUTAPI VectorFromBstr (BSTR, SAFEARRAY **);
 WINOLEAUTAPI BstrFromVector (SAFEARRAY *, BSTR *);
+WINOLEAUTAPI VarParseNumFromStr(OLECHAR*,LCID,ULONG,NUMPARSE*,BYTE*);
+WINOLEAUTAPI VarNumFromParseNum(NUMPARSE*,BYTE*,ULONG,VARIANT*);
 
 WINOLEAUTAPI VarAdd(LPVARIANT, LPVARIANT, LPVARIANT);
 WINOLEAUTAPI VarSub(LPVARIANT, LPVARIANT, LPVARIANT);



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click