src/bin/psql/command.c
static void
ignore_slash_options(PsqlScanState scan_state)
{
	char	   *arg;

	while ((arg = psql_scan_slash_option(scan_state,
										 OT_NORMAL, NULL, false)) != NULL)
		free(arg);
}
/*
 * Read and discard "normal" slash command options.
 *
 * This should be used for inactive-branch processing of any slash command
 * that eats one or more OT_NORMAL, OT_SQLID, or OT_SQLIDHACK parameters.
 * We don't need to worry about exactly how many it would eat, since the
 * cleanup logic in HandleSlashCmds would silently discard any extras anyway.
 */
Read and discard "normal" slash command options.
This should be used for inactive-branch processing of any slash command
that eats one or more OT_NORMAL, OT_SQLID, or OT_SQLIDHACK parameters.
We don't need to worry about exactly how many it would eat, since the
cleanup logic in HandleSlashCmds would silently discard any extras anyway.
Read and discard " normal " slash command options . This should be used for inactive - branch processing of any slash command that eats one or more OT_NORMAL OT_SQLID or OT_SQLIDHACK parameters . We don ' t need to worry about exactly how many it would eat since the cleanup logic in HandleSlashCmds would silently discard any extras anyway .
static void
ignore_slash_options(PsqlScanState scan_state)
{
	char	   *arg;
	while ((arg = psql_scan_slash_option(scan_state,
										 OT_NORMAL, NULL, false)) != NULL)
		free(arg);
}
static void ignore_slash_options ( PsqlScanState scan_state ) { char * arg ; while ( ( arg = psql_scan_slash_option ( scan_state , OT_NORMAL , NULL , false ) ) != NULL ) free ( arg ) ; }
Read and discard "normal" slash command options.
Read and discard " normal " slash command options .