1// This command-line utility displays the data structure of a datafile 2// created with the Metakit library as a one-line description. 3 4#include "mk4.h" 5 6#include <stdio.h> 7 8#if defined (macintosh) 9#include /**/ <console.h> 10#define d4_InitMain(c,v) c = ccommand(&v) 11#endif 12 13///////////////////////////////////////////////////////////////////////////// 14 15int main(int argc, char** argv) 16{ 17#ifdef d4_InitMain 18 d4_InitMain(argc, argv); 19#endif 20 21 if (argc != 2) 22 fputs("Usage: STRUCT datafile", stderr); 23 else 24 { 25 c4_Storage store (argv[1], false); 26 puts(store.Description()); 27 } 28 29 return 0; 30} 31 32///////////////////////////////////////////////////////////////////////////// 33