Immediately switch to a different input stream. * @param input_file A readable stream. * @param yyscanner The scanner object. * @note This function does not reset the start condition to @c INITIAL . */
| 1934 | * @note This function does not reset the start condition to @c INITIAL . |
| 1935 | */ |
| 1936 | void ap_expr_yyrestart (FILE * input_file , yyscan_t yyscanner) |
| 1937 | { |
| 1938 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 1939 | |
| 1940 | if ( ! YY_CURRENT_BUFFER ){ |
| 1941 | ap_expr_yyensure_buffer_stack (yyscanner); |
| 1942 | YY_CURRENT_BUFFER_LVALUE = |
| 1943 | ap_expr_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); |
| 1944 | } |
| 1945 | |
| 1946 | ap_expr_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); |
| 1947 | ap_expr_yy_load_buffer_state(yyscanner ); |
| 1948 | } |
| 1949 | |
| 1950 | /** Switch to a different input buffer. |
| 1951 | * @param new_buffer The new input buffer. |
no test coverage detected