summaryrefslogtreecommitdiffhomepage
path: root/src/transcode.c
AgeCommit message (Collapse)Author
2012-05-23cast style consistencyYukihiro Matsumoto
2012-05-20C++ compilability -- don't jump across variable initializationMitchell Blank Jr
C++ is picker than C about when you can "goto" across a variable being defined. The fix is to just minimize the variable's scope inside an extra set of brackets. Without this change, g++ has the following errors: transcode.c:590: error: jump to label 'resume_label3' transcode.c:514: error: from here transcode.c:582: error: crosses initialization of 'const unsigned char* p' transcode.c:2124: error: jump to label 'set_encs' transcode.c:2184: error: from here transcode.c:2088: error: skips initialization of 'const char* err' transcode.c:2089: error: skips initialization of 'size_t error_len' transcode.c:2090: error: skips initialization of 'mrb_value bytes' transcode.c:2091: error: skips initialization of 'mrb_value dumped' transcode.c:2092: error: skips initialization of 'size_t readagain_len' transcode.c:2093: error: skips initialization of 'mrb_value bytes2'
2012-05-19C++ compilability -- "try" is a keyword, avoid as variable nameMitchell Blank Jr
2012-05-19Helper functions for st_foreach() return "enum st_retval" not "int"Mitchell Blank Jr
Just making this a bit more consistent throughout the code
2012-05-19C++ compilability - don't define types inside othersMitchell Blank Jr
The following is legal code in both C and C++: struct foo { struct bar { int a } x; int y; }; ...however in C++ it defines a type called "foo::bar" instead of "bar". Just avoid this construct altogether
2012-05-10remove encode_class and converter_class from mrb_stateYukihiro Matsumoto
2012-05-09temporal VC patch from nkshigeruYukihiro Matsumoto
2012-05-09move declaration in the middleYukihiro Matsumoto
2012-04-30rm whitespaceroco
2012-04-24mv variable.h to mruby/variable.hYukihiro Matsumoto
2012-04-20remove dependency to SIZEOF_INTYukihiro Matsumoto
2012-04-20the type of return values of tr->func_ii() and tr->func_si() is already ↵NAKAMURA Usaku
mrb_value, so no need to cast.
2012-04-20add mruby sourcesmimaki