public static int rgc_buffer_unget_char( input_port p, int c ) { p.filepos--; if (0 < p.matchstop) --p.matchstop; else { p.buffer[0]= (byte)c; if (p.bufpos == 0) { p.bufpos= 1; p.buffer[1]= (byte)'\0'; } } return c; }