summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-30 15:33:13 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-30 15:33:13 +0800
commit7b2cc2e83030882b319bbf87932c7727c174adc7 (patch)
tree311a608a57199d330df05f9f23d6345971fde564 /include/pttstruct.h
parent2962ffe9d364a629996465a1cf08770791823db3 (diff)
downloadpttbbs-7b2cc2e83030882b319bbf87932c7727c174adc7.tar
pttbbs-7b2cc2e83030882b319bbf87932c7727c174adc7.tar.gz
pttbbs-7b2cc2e83030882b319bbf87932c7727c174adc7.tar.bz2
pttbbs-7b2cc2e83030882b319bbf87932c7727c174adc7.tar.lz
pttbbs-7b2cc2e83030882b319bbf87932c7727c174adc7.tar.xz
pttbbs-7b2cc2e83030882b319bbf87932c7727c174adc7.tar.zst
pttbbs-7b2cc2e83030882b319bbf87932c7727c174adc7.zip
* (pwcu branch) const cuser code complete
git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4795 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index cd0c98df..a79e2bb6 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -140,11 +140,12 @@ typedef struct userec_t {
} PACKSTRUCT userec_t;
#ifdef CONST_CUSER
-# define cuser ((const userec_t ) pwcuser)
+// const userec_t cuser;
# define cuser_ref ((const userec_t*)&pwcuser)
+# define cuser (*cuser_ref)
#else
-# define cuser pwcuser
# define cuser_ref (&cuser)
+# define cuser pwcuser
#endif
/* flags in userec_t.withme */