@@ -1184,8 +1184,8 @@ psql_scan_setup(PsqlScanState state,
11841184 const char *line, int line_len)
11851185{
11861186 /* Mustn't be scanning already */
1187- psql_assert (state->scanbufhandle == NULL);
1188- psql_assert (state->buffer_stack == NULL);
1187+ Assert (state->scanbufhandle == NULL);
1188+ Assert (state->buffer_stack == NULL);
11891189
11901190 /* Do we need to hack the character set encoding? */
11911191 state->encoding = pset.encoding;
@@ -1245,7 +1245,7 @@ psql_scan(PsqlScanState state,
12451245 int lexresult;
12461246
12471247 /* Must be scanning already */
1248- psql_assert (state->scanbufhandle);
1248+ Assert (state->scanbufhandle != NULL );
12491249
12501250 /* Set up static variables that will be used by yylex */
12511251 cur_state = state;
@@ -1424,7 +1424,7 @@ psql_scan_slash_command(PsqlScanState state)
14241424 PQExpBufferData mybuf;
14251425
14261426 /* Must be scanning already */
1427- psql_assert (state->scanbufhandle);
1427+ Assert (state->scanbufhandle != NULL );
14281428
14291429 /* Build a local buffer that we'll return the data of */
14301430 initPQExpBuffer(&mybuf);
@@ -1478,7 +1478,7 @@ psql_scan_slash_option(PsqlScanState state,
14781478 char local_quote;
14791479
14801480 /* Must be scanning already */
1481- psql_assert (state->scanbufhandle);
1481+ Assert (state->scanbufhandle != NULL );
14821482
14831483 if (quote == NULL)
14841484 quote = &local_quote;
@@ -1512,7 +1512,7 @@ psql_scan_slash_option(PsqlScanState state,
15121512 * or LEXRES_EOL (the latter indicating end of string). If we were inside
15131513 * a quoted string, as indicated by YY_START, EOL is an error.
15141514 */
1515- psql_assert (lexresult == LEXRES_EOL || lexresult == LEXRES_OK);
1515+ Assert (lexresult == LEXRES_EOL || lexresult == LEXRES_OK);
15161516
15171517 switch (YY_START)
15181518 {
@@ -1608,7 +1608,7 @@ void
16081608psql_scan_slash_command_end(PsqlScanState state)
16091609{
16101610 /* Must be scanning already */
1611- psql_assert (state->scanbufhandle);
1611+ Assert (state->scanbufhandle != NULL );
16121612
16131613 /* Set up static variables that will be used by yylex */
16141614 cur_state = state;
0 commit comments