search for: lppoint

Displaying 20 results from an estimated 24 matches for "lppoint".

2018 Jan 22
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...y found a bug in your code ;-) > > // stdint.h > typedef int int32_t; > > // winnt.h > typedef long LONG; > > // windef.h > typedef struct tagPOINT > { > LONG x; // long x > LONG y; // long y > } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; > > // win32.h > typedef int32_t LONG; > > struct POINT > { > LONG x; // int x > LONG y; // int y > }; > > So POINT is defined two different ways. In your minimal interface, it's > declared as 2 int32's, which are int. In the actual Windows header...
2018 Jan 22
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...s warn you how bad of an idea this is. For starters, I already found a bug in your code ;-) // stdint.h typedef int int32_t; // winnt.h typedef long LONG; // windef.h typedef struct tagPOINT { LONG x; // long x LONG y; // long y } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; // win32.h typedef int32_t LONG; struct POINT { LONG x; // int x LONG y; // int y }; So POINT is defined two different ways. In your minimal interface, it's declared as 2 int32's, which are int. In the actual Windows header files, it's declared as 2 longs. This might seem lik...
2018 Jan 24
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...int32_t; >>> >>> // winnt.h >>> typedef long LONG; >>> >>> // windef.h >>> typedef struct tagPOINT >>> { >>> LONG x; // long x >>> LONG y; // long y >>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>> >>> // win32.h >>> typedef int32_t LONG; >>> >>> struct POINT >>> { >>> LONG x; // int x >>> LONG y; // int y >>> }; >>> >>> So POINT is defined two different ways. In your minimal interface...
2018 Jan 22
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...stdint.h >> typedef int int32_t; >> >> // winnt.h >> typedef long LONG; >> >> // windef.h >> typedef struct tagPOINT >> { >> LONG x; // long x >> LONG y; // long y >> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >> >> // win32.h >> typedef int32_t LONG; >> >> struct POINT >> { >> LONG x; // int x >> LONG y; // int y >> }; >> >> So POINT is defined two different ways. In your minimal interface, it's >> declared as 2 int32'...
2018 Jan 22
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...n 22, 2018 at 7:08 PM, Zachary Turner <zturner at google.com> wrote: > This is pretty gross, honestly :) > > Can't you just use using declarations? > > namespace Win32 { > extern "C" { > > using ::BOOL; > using ::LONG; > using ::POINT; > using ::LPPOINT; > > using ::GetCursorPos; > } > } > > This works with clang-cl. > > On Mon, Jan 22, 2018 at 5:39 AM Leonardo Santagada <santagada at gmail.com> > wrote: > >> Here it is a minimal example, we do this so we don't have to import the >> whole windows...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...gt;> // winnt.h >>>> typedef long LONG; >>>> >>>> // windef.h >>>> typedef struct tagPOINT >>>> { >>>> LONG x; // long x >>>> LONG y; // long y >>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>> >>>> // win32.h >>>> typedef int32_t LONG; >>>> >>>> struct POINT >>>> { >>>> LONG x; // int x >>>> LONG y; // int y >>>> }; >>>> >>>> So POINT is defined tw...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...gt;> typedef long LONG; >>>>> >>>>> // windef.h >>>>> typedef struct tagPOINT >>>>> { >>>>> LONG x; // long x >>>>> LONG y; // long y >>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>> >>>>> // win32.h >>>>> typedef int32_t LONG; >>>>> >>>>> struct POINT >>>>> { >>>>> LONG x; // int x >>>>> LONG y; // int y >>>>> }; >>>>>...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>>>>>>> // windef.h >>>>>>> typedef struct tagPOINT >>>>>>> { >>>>>>> LONG x; // long x >>>>>>> LONG y; // long y >>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>> >>>>>>> // win32.h >>>>>>> typedef int32_t LONG; >>>>>>> >>>>>>> struct POINT >>>>>>> { >>>>>>> LONG x; // int x >>>>>>>...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...gt;>>>>> >>>>>> // windef.h >>>>>> typedef struct tagPOINT >>>>>> { >>>>>> LONG x; // long x >>>>>> LONG y; // long y >>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>> >>>>>> // win32.h >>>>>> typedef int32_t LONG; >>>>>> >>>>>> struct POINT >>>>>> { >>>>>> LONG x; // int x >>>>>> LONG y; // int y >>>...
2003 Apr 10
1
Starcraft Patch
...d X11DRV_SetCursorPos( INT x, INT y ) { +#ifdef HAVE_LIBXXF86DGA2 + Display *display = DGAUsed ? gdi_display : thread_display(); +#else Display *display = thread_display(); +#endif TRACE( "warping to (%d,%d)\n", x, y ); @@ -518,7 +536,11 @@ */ void X11DRV_GetCursorPos(LPPOINT pos) { +#ifdef HAVE_LIBXXF86DGA2 + Display *display = DGAUsed ? gdi_display : thread_display(); +#else Display *display = thread_display(); +#endif Window root, child; int rootX, rootY, winX, winY; unsigned int xstate; Index: tools/wineinstall =========================================...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>>>>>>>>> typedef struct tagPOINT >>>>>>>>> { >>>>>>>>> LONG x; // long x >>>>>>>>> LONG y; // long y >>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>> >>>>>>>>> // win32.h >>>>>>>>> typedef int32_t LONG; >>>>>>>>> >>>>>>>>> struct POINT >>>>>>>>> { >>>>>>>...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>> // windef.h >>>>>>>> typedef struct tagPOINT >>>>>>>> { >>>>>>>> LONG x; // long x >>>>>>>> LONG y; // long y >>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>> >>>>>>>> // win32.h >>>>>>>> typedef int32_t LONG; >>>>>>>> >>>>>>>> struct POINT >>>>>>>> { >>>>>>>> LONG x; // int x...
2018 Jan 25
3
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;> typedef struct tagPOINT >>>>>>>>>>> { >>>>>>>>>>> LONG x; // long x >>>>>>>>>>> LONG y; // long y >>>>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>>>> >>>>>>>>>>> // win32.h >>>>>>>>>>> typedef int32_t LONG; >>>>>>>>>>> >>>>>>>>>>> struct POINT >>>>>>&gt...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;>>>>> typedef struct tagPOINT >>>>>>>>>> { >>>>>>>>>> LONG x; // long x >>>>>>>>>> LONG y; // long y >>>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>>> >>>>>>>>>> // win32.h >>>>>>>>>> typedef int32_t LONG; >>>>>>>>>> >>>>>>>>>> struct POINT >>>>>>>>>> { >...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ruct tagPOINT >>>>>>>>>>>> { >>>>>>>>>>>> LONG x; // long x >>>>>>>>>>>> LONG y; // long y >>>>>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>>>>> >>>>>>>>>>>> // win32.h >>>>>>>>>>>> typedef int32_t LONG; >>>>>>>>>>>> >>>>>>>>>>>> struct POINT >&gt...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>>>>>>>>>>> { >>>>>>>>>>>>> LONG x; // long x >>>>>>>>>>>>> LONG y; // long y >>>>>>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>>>>>> >>>>>>>>>>>>> // win32.h >>>>>>>>>>>>> typedef int32_t LONG; >>>>>>>>>>>>> >>>>>>>>>>>>>...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>>>>>>>> { >>>>>>>>>>>>>> LONG x; // long x >>>>>>>>>>>>>> LONG y; // long y >>>>>>>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>>>>>>> >>>>>>>>>>>>>> // win32.h >>>>>>>>>>>>>> typedef int32_t LONG; >>>>>>>>>>>>>> >>>>>>>>>&...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>>>>> { >>>>>>>>>>>>>>> LONG x; // long x >>>>>>>>>>>>>>> LONG y; // long y >>>>>>>>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // win32.h >>>>>>>>>>>>>>> typedef int32_t LONG; >>>>>>>>>>>>>>> >>>>>&...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>> { >>>>>>>>>>>>>>>> LONG x; // long x >>>>>>>>>>>>>>>> LONG y; // long y >>>>>>>>>>>>>>>> } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // win32.h >>>>>>>>>>>>>>>> typedef int32_t LONG; >>>>>>>>>>>>>>>> >&...
2018 Jan 22
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
This is pretty gross, honestly :) Can't you just use using declarations? namespace Win32 { extern "C" { using ::BOOL; using ::LONG; using ::POINT; using ::LPPOINT; using ::GetCursorPos; } } This works with clang-cl. On Mon, Jan 22, 2018 at 5:39 AM Leonardo Santagada <santagada at gmail.com> wrote: > Here it is a minimal example, we do this so we don't have to import the > whole windows api everywhere. > > https://gist.github.com/san...