diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-03-24 15:39:27 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-03-25 04:37:06 +0100 |
commit | aaae4123b9bcdf0a3d5d006fcb7daf10a1d95fbc (patch) | |
tree | 5316578a9ec3282d45900504c50df2f4a767b956 /lib | |
parent | 5a20325c867b32333f489b7d04c6b8e6571ed06d (diff) | |
download | samba-aaae4123b9bcdf0a3d5d006fcb7daf10a1d95fbc.tar.gz samba-aaae4123b9bcdf0a3d5d006fcb7daf10a1d95fbc.tar.bz2 samba-aaae4123b9bcdf0a3d5d006fcb7daf10a1d95fbc.zip |
unistr: moved some UCS2 macros into util_unistr
we need to move towards eliminating smb_ucs2_t. This moves a couple of
the related macros into the only file they are used in
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/charset/charset.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h index 494a4ebc1a..141fbea7be 100644 --- a/lib/util/charset/charset.h +++ b/lib/util/charset/charset.h @@ -48,15 +48,6 @@ typedef uint16_t smb_ucs2_t; /* turn a 7 bit character into a ucs2 character */ #define UCS2_CHAR(c) ((c) << UCS2_SHIFT) -/* return an ascii version of a ucs2 character */ -#define UCS2_TO_CHAR(c) (((c) >> UCS2_SHIFT) & 0xff) - -/* Copy into a smb_ucs2_t from a possibly unaligned buffer. Return the copied smb_ucs2_t */ -#define COPY_UCS2_CHAR(dest,src) (((unsigned char *)(dest))[0] = ((unsigned char *)(src))[0],\ - ((unsigned char *)(dest))[1] = ((unsigned char *)(src))[1], (dest)) - - - /* * for each charset we have a function that pulls from that charset to * a ucs2 buffer, and a function that pushes to a ucs2 buffer |