-void file___IFStream___reopen(val_t p0){
- struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
- val_t REGB0;
- val_t tmp;
- fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
- fra.me.file = LOCATE_file;
- fra.me.line = 71;
- fra.me.meth = LOCATE_file___IFStream___reopen;
- fra.me.has_broke = 0;
- fra.me.REG_size = 2;
- fra.me.REG[0] = NIT_NULL;
- fra.me.REG[1] = NIT_NULL;
- fra.me.REG[0] = p0;
- REGB0 = CALL_stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
- /* ./../lib/standard//file.nit:73 */
- if (UNTAG_Bool(REGB0)) {
- CALL_stream___IOS___close(fra.me.REG[0])(fra.me.REG[0]);
- }
- fra.me.REG[1] = ATTR_file___FStream____path(fra.me.REG[0]);
- REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
- /* ./../lib/standard//file.nit:74 */
- if (UNTAG_Bool(REGB0)) {
- fprintf(stderr, "Reciever is null");
- fprintf(stderr, " (%s:%d)\n", LOCATE_file, 74);
- nit_exit(1);
- }
- fra.me.REG[1] = CALL_string___String___to_cstring(fra.me.REG[1])(fra.me.REG[1]);
- fra.me.REG[1] = CALL_file___NativeFileCapable___io_open_read(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
- ATTR_file___FStream____file(fra.me.REG[0]) = fra.me.REG[1];
- REGB0 = TAG_Bool(false);
- /* ./../lib/standard//file.nit:75 */
- ATTR_file___IFStream____end_reached(fra.me.REG[0]) = REGB0;
- REGB0 = TAG_Int(0);
- /* ./../lib/standard//file.nit:76 */
- ATTR_stream___BufferedIStream____buffer_pos(fra.me.REG[0]) = REGB0;
- fra.me.REG[0] = ATTR_stream___BufferedIStream____buffer(fra.me.REG[0]);
- REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
- /* ./../lib/standard//file.nit:77 */
- if (UNTAG_Bool(REGB0)) {
- fprintf(stderr, "Reciever is null");
- fprintf(stderr, " (%s:%d)\n", LOCATE_file, 77);
- nit_exit(1);
- }
- CALL_abstract_collection___RemovableCollection___clear(fra.me.REG[0])(fra.me.REG[0]);
- stack_frame_head = fra.me.prev;
- return;
-}