Example #1
0
    void Environment::dump(int top) {
        int i;

        printf("total in stack %d\n", top);

        for (i = 1; i <= top; i++) { /* repeat for each level */
            dumpIndex(i);
        }
        printf("\n"); /* end the listing */
    }
Example #2
0
void SchemaDumper::dumpIndexes (QStringList &output, const QString &table)
{
	QList<IndexSpec> indexes=interface.showIndexes (table);

	// Don't output anything if there are no indexes
	if (indexes.isEmpty ()) return;

	output << notr ("  indexes:");
	foreach (const IndexSpec &index, indexes)
		dumpIndex (output, index);
}