diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-01 14:33:56 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-01 14:33:56 +0000 |
commit | 2ae7b0328e9bf0caf16411eabc924effedccfb5c (patch) | |
tree | 1e830150da3df89a9b81865c9028459185eefb1f /transcode_data.h | |
parent | edf1d608c725db1a42f884a91c7ac18b9f98aef0 (diff) |
* transcode_data.h (BYTE_LOOKUP_BASE): abstract accessor for
BYTE_LOOKUP.
(BYTE_LOOKUP_INFO): ditto.
* transcode.c (transcode_restartable0): use BYTE_LOOKUP_BASE and
BYTE_LOOKUP_INFO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode_data.h')
-rw-r--r-- | transcode_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/transcode_data.h b/transcode_data.h index 1b8eeae379..b705760273 100644 --- a/transcode_data.h +++ b/transcode_data.h @@ -21,6 +21,9 @@ typedef struct byte_lookup { const struct byte_lookup *const *info; } BYTE_LOOKUP; +#define BYTE_LOOKUP_BASE(bl) ((bl)->base) +#define BYTE_LOOKUP_INFO(bl) ((bl)->info) + #ifndef PType /* data file needs to treat this as a pointer, to remove warnings */ #define PType (const BYTE_LOOKUP *) |