bigloo.foreign.rgc_buffer_unget_char C# (CSharp) Method

rgc_buffer_unget_char() public static method

public static rgc_buffer_unget_char ( input_port p, int c ) : int
p input_port
c int
return int
        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;
        }
foreign