Changeset 6381 for trunk/include


Ignore:
Timestamp:
Jul 21, 2001, 11:10:49 AM (24 years ago)
Author:
sandervl
Message:

header updates

Location:
trunk/include/win
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/debugstr.h

    r4124 r6381  
    1 /* $Id: debugstr.h,v 1.3 2000-08-30 13:56:37 sandervl Exp $ */
    21#ifndef __WINE_DEBUGSTR_H
    32#define __WINE_DEBUGSTR_H
     
    98   as strings are re-used.  */
    109
    11 #define debugstr_a(a) a
    12 #define debugstr_w(a) a
     10#define debugstr_a(a) debugstr_an(a, 80)
     11#define debugstr_w(a) debugstr_wn(a, 80)
    1312
    1413//extern LPSTR debugstr_a (LPCSTR s);
  • trunk/include/win/debugtools.h

    r5470 r6381  
    200200  static char res[128];
    201201
    202   if (!src) return "(null)";
     202  if (!HIWORD(src))
     203  {
     204        if (!src) return "(null)";
     205        sprintf(res, "#%04x", LOWORD(src) );
     206        return res;
     207  }
    203208  if (n > sizeof(res)) return "(null)";
    204209
     
    246251  static char res[128];
    247252
    248   if (!src) return "(null)";
     253  if (!HIWORD(src))
     254  {
     255        if (!src) return "(null)";
     256        sprintf(res, "#%04x", LOWORD(src) );
     257        return res;
     258  }
    249259  if (n > sizeof(res)) return "(null)";
    250260  if (n < 0) n = 0;
  • trunk/include/win/winuser.h

    r5593 r6381  
    12901290    POINT   pt;
    12911291} MSG, *PMSG, *NPMSG, *LPMSG;
     1292
     1293#define POINTSTOPOINT(pt, pts)                          \
     1294        { (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts);   \
     1295          (pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }         
     1296
     1297#define POINTTOPOINTS(pt)      (MAKELONG((short)((pt).x), (short)((pt).y)))
    12921298
    12931299
Note: See TracChangeset for help on using the changeset viewer.