CnPack Forum

#1 以前修改的cvstrac:browse.c//树形目录（限两级）
static void show_dirtree(const char *zName, int level) {
char **az;
int n;
const char *zRoot;
const char *flag = (level==0 ? "" : "<span> |--</span>");

zRoot = db_config("cvsroot","");
az = db_query("SELECT base, isdir FROM file WHERE dir='%q' ORDER BY isdir desc, base", zName);
if( zName[0] ){ zName = mprintf("%s/",zName); }
for(n=0; az[n]; n+=2) {
char *zFilename = 0;
if( atoi(az[n+1]) ) {
zFilename = mprintf("%s%s", zName, az[n]);
..

#1 >>Next Page

Forum:CVSTrac 相关问题
Thread:以前修改的cvstrac:br ...
Next Thread:请教一个问题

Home
Login

Powered by Discuz!