19 #include <sys/types.h>
21 #include "libdbg/dbglog.h"
27 ////////////////////////////////////////////////////////////////////////////////
32 ////////////////////////////////////////////////////////////////////////////////
34 ÎÁÞÁÌÏ: ×ÓÅ ÆÁÊÌÙ × ÓÐÉÓËÅ
37 ÆÁÊÌÙ: ÕÂÉÒÁÅÍ ×ÓÅ, ÇÄÅ ÎÅ ×ÓÔÒÅÞÁÅÔÓÑ ÄÁÎÎÙÊ ÔÜÇ
40 ÆÁÊÌÙ: ÕÂÉÒÁÅÍ ×ÓÅ, ÇÄÅ ÄÁÎÎÙÊ ÔÜÇ ÎÅ ×ÓÔÒÅÞÁÅÔÓÑ × artist
42 ÅÓÌÉ ÚÁËÁÎÞÉ×ÁÅÔÓÑ ÎÁ ÉÍÑ ÔÜÇÁ:
43 ÓÏÂÉÒÁÅÍ ×ÓÅ ÔÜÇÉ ÉÚ ÆÁÊÌÏ×, ÇÄÅ ÄÁÎÎÙÊ ÔÜÇ ×ÓÔÒÅÞÁÅÔÓÑ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍ ÐÏÌÅ
46 ×ÏÚ×ÒÁÝÁÅÍ ×ÓÅ ÔÜÇÉ ÄÌÑ ×ÓÅÈ ÆÁÊÌÏ×
51 ////////////////////////////////////////////////////////////////////////////////
52 int main (int argc
, char *argv
[]) {
54 dbglog_set_screenout(1);
55 dbglog_set_fileout(0);
58 if (load_tagfile("tags.dat") != 0) { fprintf(stderr
, "FATAL: can't open tagfile!\n"); return -1; }
60 printf("database load time: %.15g seconds\n", (double)(ste
-stt
)/(double)CLOCKS_PER_SEC
);
62 for (int f
= 1; f
< argc
; ++f
) {
63 dirinfo_t
*di
= list_dir(argv
[f
]);
65 dlogf("=====================\n");
66 for (int f
= 0; f
< di
->fcount
; ++f
) dlogf(" [%s]\n", di
->names
[f
]);
72 fgets(s
, sizeof(s
), stdin
);