home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21486 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.1 KB

  1. Path: sparky!uunet!olivea!pagesat!netsys!news.cerf.net!network.ucsd.edu!ucsbcsl!foxtrot!doug
  2. From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
  3. Newsgroups: comp.windows.x
  4. Subject: Conflict with MINSHORT value in server/include/misc.h
  5. Message-ID: <7443@ucsbcsl.ucsb.edu>
  6. Date: 21 Jan 93 22:55:50 GMT
  7. Sender: root@ucsbcsl.ucsb.edu
  8. Organization: Center for Computer Music Research and Composition, UCSB
  9. Lines: 21
  10.  
  11. This is in X11R5.
  12.  
  13. In the file mit/server/include/misc.h, the macros MAXSHORT and MINSHORT are
  14. #defined to be 32767 and -32767, respectively.
  15.  
  16. On my machine (NeXT), this macros are already defined.  This itself is no
  17. problem, but on the NeXT, MINSHORT is #defined as ((short)0x8000), which
  18. equals -32768!
  19.  
  20. My questions: Why is there this descrepancy?  Is there not a standard for this
  21. value?  Is one of these values specifically wrong?  Should I just go with the
  22. value as #defined in the X server code?
  23.  
  24. Thanks for any input.
  25.  
  26.  
  27. -- 
  28. Douglas Scott                              (805)893-8352
  29. Center for Computer Music Research and Composition
  30. University of California, Santa Barbara
  31. Internet: (NeXTMail ok)   <doug@foxtrot.ccmrc.ucsb.edu>
  32.