コード例 #1
0
ファイル: lua.cpp プロジェクト: parisfuja/RR-source
    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 */
    }
コード例 #2
0
ファイル: SchemaDumper.cpp プロジェクト: fb/startkladde
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);
}