summaryrefslogtreecommitdiffhomepage
path: root/src/load.c
AgeCommit message (Collapse)Author
2013-11-19irep->pool struct pool -> mrb_valueMiura Hideki
2013-11-15wrong size of filenames bufferYukihiro "Matz" Matsumoto
2013-11-15add new function mrb_load_irep_file_cxt() and simplifies mruby.cYukihiro "Matz" Matsumoto
2013-11-15enum mrb_vtype varies on compile time configuration, namely MRB_NAN_BOXINGYukihiro "Matz" Matsumoto
2013-11-14fix length check in read_section_debug(); fix #1572fleuria
2013-11-14remove possible free-after-realloc problem; close #1570Yukihiro "Matz" Matsumoto
2013-11-14remove unnecessary jumpYukihiro "Matz" Matsumoto
2013-11-13pacify some warnings on OpenBSDYukihiro "Matz" Matsumoto
2013-11-13fixnum in irep->pool may overflowYukihiro "Matz" Matsumoto
2013-11-10check for corrupted mrb file dataYukihiro "Matz" Matsumoto
2013-11-09protect returning irep (in proc) from GCYukihiro "Matz" Matsumoto
2013-11-07wrong return value from read_lineno_record()Yukihiro "Matz" Matsumoto
2013-11-07irep->pool not to be GCedYukihiro "Matz" Matsumoto
2013-11-07modified to use irep->reps to reference child ireps. preparation forYukihiro "Matz" Matsumoto
removing irep array from mrb_state. note that instructions OP_LAMBDA, OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-03refactor mrb_context_run()fleuria
2013-11-03introduce mrb_context_run()fleuria
currently there are two scnenario to call mrb_run(), the first is calling a proc, in this case mrb should create a new environment, discarding all the variables except args, reciever and block. the second is calling the newly generated irep, like in mirb. in this case, the variables should be kept after mrb_run(). so we introduce mrb_context_run() to handle this seperately.
2013-09-10Fix checking return value of fread()Akito Mochizuki
2013-09-03MSVC: compilation works again (+minor style fixes)Cremno
2013-09-02don't use RArray in filename table generatingtake_cheeze
2013-09-02declare variable outside fortake_cheeze
2013-09-02support multiple filename in ireptake_cheeze
2013-06-25use mrb_malloc_simple() to allocate crc buffer; close #1302Yukihiro "Matz" Matsumoto
2013-06-25Fix crash on load *mrbkyab
2013-06-22Add fallback for allocate CRC bufferkyab
2013-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-05-13Fix early free of irep->filenameCarson McDonald
2013-05-05fix typos.crimsonwoods
2013-04-26Add void to function parameters. This is for compatibility with C++Masaki Muranaka
2013-04-25Remove redundant whitespaces. Just cosmetic.Masaki Muranaka
2013-04-25Add comments why there is no need to put the SIZE_ERROR check. It is for ↵Masaki Muranaka
reviews in the future.
2013-04-25Add error checks for small environments which pointer is less than 32bit. ↵Masaki Muranaka
These code will be removed by optimizer if the target runs on 32bit or above.
2013-04-25More strict NULL checks.Masaki Muranaka
2013-04-25Fix underlying memory leaks. When realloc is failed, memories are leaked.Masaki Muranaka
2013-04-23fix unnecessary irep_freemasahino
2013-04-22Simplify load.c. Remove code clones. Suppress return paths.Masaki Muranaka
2013-04-20put spaces after if/whileYukihiro "Matz" Matsumoto
2013-03-30Add null char terminate to each symbol name.Masaki Muranaka
2013-03-29Add CHAR_BIT check. There are uint8_t to char conversions.Masaki Muranaka
2013-03-29Reduce temporary memory allocations. They are redundant.Masaki Muranaka
2013-03-29Modify the type of line-number to uint16_t. Type short is not portable. And ↵Masaki Muranaka
it cannot be more than UINT16_MAX because of the mrbc binary format.
2013-03-29Remove RiteFile as no used.Masaki Muranaka
2013-03-28Merge pull request #1101 from monaka/pr-cleanup-includesYukihiro "Matz" Matsumoto
Cleanup includes
2013-03-29Rearrange SIZE_MAX. It is supported also VC++ since its version10. And there ↵Masaki Muranaka
seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++.
2013-03-29Sort include files. Some redundant includes are removed.Masaki Muranaka
2013-03-29Fixed wrong section size calculationYuichiro MASUI
2013-03-28return value from fread(3) just cannot be ignoredYukihiro "Matz" Matsumoto
2013-03-28Catch return values to silent compilerDaniel Bovensiepen
2013-03-27Added debug infomation section into .mrb fileYuichiro MASUI
2013-03-27Remove unused variablemattn
2013-03-27bug in fread(3) error checkYukihiro Matz Matsumoto