usr.bin/patch/inp.c
void
re_input(void)
{
	if (using_plan_a) {
		free(i_ptr);
		i_ptr = NULL;
		if (i_womp != NULL) {
			munmap(i_womp, i_size);
			i_womp = NULL;
		}
		i_size = 0;
	} else {
		using_plan_a = true;	/* maybe the next one is smaller */
		close(tifd);
		tifd = -1;
		free(tibuf[0]);
		free(tibuf[1]);
		tibuf[0] = tibuf[1] = NULL;
		tiline[0] = tiline[1] = -1;
		tireclen = 0;
	}
}
/* New patch--prepare to edit another file. */
New patch--prepare to edit another file.
New patch -- prepare to edit another file .
void
re_input(void)
{
	if (using_plan_a) {
		free(i_ptr);
		i_ptr = NULL;
		if (i_womp != NULL) {
			munmap(i_womp, i_size);
			i_womp = NULL;
		}
		i_size = 0;
	} else {
		using_plan_a = true;	
		close(tifd);
		tifd = -1;
		free(tibuf[0]);
		free(tibuf[1]);
		tibuf[0] = tibuf[1] = NULL;
		tiline[0] = tiline[1] = -1;
		tireclen = 0;
	}
}
void re_input ( void ) { if ( using_plan_a ) { free ( i_ptr ) ; i_ptr = NULL ; if ( i_womp != NULL ) { munmap ( i_womp , i_size ) ; i_womp = NULL ; } i_size = 0 ; } else { using_plan_a = true ; close ( tifd ) ; tifd = -1 ; free ( tibuf [ 0 ] ) ; free ( tibuf [ 1 ] ) ; tibuf [ 0 ] = tibuf [ 1 ] = NULL ; tiline [ 0 ] = tiline [ 1 ] = -1 ; tireclen = 0 ; } }
New patch--prepare to edit another file.
New patch -- prepare to edit another file .
/* maybe the next one is smaller */