ruby-changes:6983
From: akr <ko1@a...>
Date: Tue, 12 Aug 2008 07:00:59 +0900 (JST)
Subject: [ruby-changes:6983] Ruby:r18501 (trunk): * transcode_data.h (rb_transcoder): typedef at first.
akr 2008-08-12 07:00:48 +0900 (Tue, 12 Aug 2008) New Revision: 18501 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18501 Log: * transcode_data.h (rb_transcoder): typedef at first. Modified files: trunk/ChangeLog trunk/transcode_data.h Index: ChangeLog =================================================================== --- ChangeLog (revision 18500) +++ ChangeLog (revision 18501) @@ -1,3 +1,7 @@ +Tue Aug 12 07:00:02 2008 Tanaka Akira <akr@f...> + + * transcode_data.h (rb_transcoder): typedef at first. + Tue Aug 12 06:48:35 2008 Tanaka Akira <akr@f...> * transcode.c (rb_trans_conv): find second last error. Index: transcode_data.h =================================================================== --- transcode_data.h (revision 18500) +++ transcode_data.h (revision 18501) @@ -56,10 +56,12 @@ #define TWOTRAIL /* legal but undefined if two more trailing UTF-8 */ #define THREETRAIL /* legal but undefined if three more trailing UTF-8 */ +typedef struct rb_transcoder rb_transcoder; + /* dynamic structure, one per conversion (similar to iconv_t) */ /* may carry conversion state (e.g. for iso-2022-jp) */ typedef struct rb_transcoding { - const struct rb_transcoder *transcoder; + const rb_transcoder *transcoder; int flags; @@ -82,7 +84,7 @@ (tc)->readbuf.ptr) /* static structure, one per supported encoding pair */ -typedef struct rb_transcoder { +struct rb_transcoder { const char *from_encoding; const char *to_encoding; const BYTE_LOOKUP *conv_tree_start; @@ -94,7 +96,7 @@ int (*func_io)(rb_transcoding*, VALUE, const unsigned char*); /* info -> output */ int (*func_so)(rb_transcoding*, const unsigned char*, size_t, unsigned char*); /* start -> output */ int (*finish_func)(rb_transcoding*, unsigned char*); /* -> output */ -} rb_transcoder; +}; typedef enum { transcode_invalid_input, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/