Boost logo

Boost Users :

From: mosfet (richom.v_at_[hidden])
Date: 2006-12-01 15:05:17


My wave version : 1.2.1.1813 (20050312)
My command line :

Wave.exe -D_M_IX86 -D_WIN32 -D_DEBUG -D_WINDOWS -D_MBCS
-S"D:\Logiciels\Microsoft Platform SDK\Include"
-S"D:\Logiciels\Microsoft Visual Studio\VC98\INCLUDE"
-S"D:\Logiciels\Microsoft Visual Studio\VC98\MFC\INCLUDE"
-S"D:\Logiciels\Microsoft Visual Studio\VC98\ATL\INCLUDE"
--c99 -o foo_pre.h foo.h

and I get the following :

#line 47 "D:\\Logiciels\\Microsoft Platform SDK\\Include\\windef.h"
typedef unsigned long ULONG;
typedef ULONG *PULONG;
typedef unsigned short USHORT;
typedef USHORT *PUSHORT;
typedef unsigned char UCHAR;
typedef UCHAR *PUCHAR;
typedef char *PSZ;
#line 151 "D:\\Logiciels\\Microsoft Platform SDK\\Include\\windef.h"
typedef unsigned long DWORD;
typedef int BOOL;
...

I don't care about windef.h, I am only intereted in replacing my values
by these definitions.

My original foo.h is something like :

#pragma once

#include <windef.h>

VOID foo(BYTE bTest, CHAR szTest);
ULONG foo(LPBYTE bTest, CHAR szTest);

About my config file, I have

#
# enable variadics et.al. in C++ mode
#
--variadics
#
# enable timer support
#
--timer
#
# emulate MSVC 6.0
#
-D_DEBUG
-DWIN32
-D_WINDOWS
-D_MBCS
-D_M_IX86

#
# add system include search paths
#
#-S"D:\Logiciels\Microsoft Platform SDK\Include"
#-S"D:\Logiciels\Microsoft Visual Studio\VC98\INCLUDE"
#-S"D:\Logiciels\Microsoft Visual Studio\VC98\MFC\INCLUDE"
#-S"D:\Logiciels\Microsoft Visual Studio\VC98\ATL\INCLUDE"

Hartmut Kaiser a écrit :
> mosfet wrote:
>
>> I don't undertand how wave works. I am trying to use it on a
>> simple C header file. I have included System and user include
>> paths and some defines but when I start wave sample driver
>> wave.exe, nothing happens.
>
> What wave version are you using (output of 'wave --version')?
> What's the commandline you're using?
> What do you mean by 'nothing happens'?
>
>> What I want is to convert all the defines into native types,
>> for instance. By the way the config file doesnt' seem to like
>> windows path while it works on the command line.
>
> Could you send me the cfg file in question so I can try to look into the
> issue?
>
> Regards Hartmut
>
>> foo.h
>> //-----//
>>
>> VOID foo(BYTE bTest, CHAR szTest);
>> ULONG foo(LPBYTE bTest, CHAR szTest);
>>
>> I would like to get
>>
>> void foo(unsigned char bTest, char szTest); unsigned long
>> foo(BYTE * bTest, char szTest);
>>
>> but maybe I haven't understood what a preprocessor was.
>> If someone could help, it's really urgent.
>>
>>
>>
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net