home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / lib / Xmu / sharedlib.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-31  |  1.7 KB  |  61 lines

  1. /*
  2.  * $XConsortium: sharedlib.c,v 1.6 91/07/31 21:12:30 keith Exp $
  3.  * 
  4.  * Copyright 1991 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  */
  17.  
  18. #if defined(SUNSHLIB) && !defined(SHAREDCODE)
  19.  
  20. #include "Atoms.h"
  21.  
  22. struct _AtomRec {
  23.     char *name;
  24.     struct _DisplayRec* head;
  25. };
  26.  
  27. #if __STDC__ && !defined(UNIXCPP)
  28. #define DeclareAtom(atom) \
  29. extern struct _AtomRec __##atom; \
  30. AtomPtr _##atom = &__##atom;
  31. #else
  32. #define DeclareAtom(atom) \
  33. extern struct _AtomRec __/**/atom; \
  34. AtomPtr _/**/atom = &__/**/atom;
  35. #endif
  36.  
  37. DeclareAtom(XA_ATOM_PAIR)
  38. DeclareAtom(XA_CHARACTER_POSITION)
  39. DeclareAtom(XA_CLASS)
  40. DeclareAtom(XA_CLIENT_WINDOW)
  41. DeclareAtom(XA_CLIPBOARD)
  42. DeclareAtom(XA_COMPOUND_TEXT)
  43. DeclareAtom(XA_DECNET_ADDRESS)
  44. DeclareAtom(XA_DELETE)
  45. DeclareAtom(XA_FILENAME)
  46. DeclareAtom(XA_HOSTNAME)
  47. DeclareAtom(XA_IP_ADDRESS)
  48. DeclareAtom(XA_LENGTH)
  49. DeclareAtom(XA_LIST_LENGTH)
  50. DeclareAtom(XA_NAME)
  51. DeclareAtom(XA_NET_ADDRESS)
  52. DeclareAtom(XA_NULL)
  53. DeclareAtom(XA_OWNER_OS)
  54. DeclareAtom(XA_SPAN)
  55. DeclareAtom(XA_TARGETS)
  56. DeclareAtom(XA_TEXT)
  57. DeclareAtom(XA_TIMESTAMP)
  58. DeclareAtom(XA_USER)
  59.  
  60. #endif /* SUNSHLIB */
  61.