* transcode.c (struct rb_transcoding): added ary member for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7788bbfaf5
commit
882cb2e37d
@ -1,3 +1,7 @@
|
|||||||
|
Tue Jan 27 10:15:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* transcode.c (struct rb_transcoding): added ary member for debug.
|
||||||
|
|
||||||
Tue Jan 27 10:10:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Jan 27 10:10:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* Doxyfile.in (FILE_VERSION_FILTER, INPUT_FILTER): should not use
|
* Doxyfile.in (FILE_VERSION_FILTER, INPUT_FILTER): should not use
|
||||||
|
@ -71,6 +71,7 @@ typedef struct rb_transcoding {
|
|||||||
|
|
||||||
union rb_transcoding_state_t { /* opaque data for stateful encoding */
|
union rb_transcoding_state_t { /* opaque data for stateful encoding */
|
||||||
void *ptr;
|
void *ptr;
|
||||||
|
char ary[sizeof(double) > sizeof(void*) ? sizeof(double) : sizeof(void*)];
|
||||||
double dummy_for_alignment;
|
double dummy_for_alignment;
|
||||||
} state;
|
} state;
|
||||||
} rb_transcoding;
|
} rb_transcoding;
|
||||||
@ -89,7 +90,7 @@ typedef struct rb_transcoding {
|
|||||||
#define TRANSCODING_STATE_EMBED_MAX sizeof(union rb_transcoding_state_t)
|
#define TRANSCODING_STATE_EMBED_MAX sizeof(union rb_transcoding_state_t)
|
||||||
#define TRANSCODING_STATE(tc) \
|
#define TRANSCODING_STATE(tc) \
|
||||||
((tc)->transcoder->state_size <= sizeof((tc)->state) ? \
|
((tc)->transcoder->state_size <= sizeof((tc)->state) ? \
|
||||||
(void *)&(tc)->state : \
|
(tc)->state.ary : \
|
||||||
(tc)->state.ptr)
|
(tc)->state.ptr)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -424,7 +425,6 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos,
|
|||||||
const unsigned char *in_stop, unsigned char *out_stop,
|
const unsigned char *in_stop, unsigned char *out_stop,
|
||||||
rb_transcoding *tc,
|
rb_transcoding *tc,
|
||||||
const int opt)
|
const int opt)
|
||||||
|
|
||||||
{
|
{
|
||||||
const rb_transcoder *tr = tc->transcoder;
|
const rb_transcoder *tr = tc->transcoder;
|
||||||
int unitlen = tr->input_unit_length;
|
int unitlen = tr->input_unit_length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user