db 176 global/global.c int db = GSYMS; db 202 global/global.c db = GTAGS; db 214 global/global.c db = GRTAGS; db 220 global/global.c return db; db 226 global/global.c int db; db 490 global/global.c db = decide_tag_by_context(av, context_file, context_lineno); db 492 global/global.c db = (rflag) ? GRTAGS : ((sflag) ? GSYMS : GTAGS); db 541 global/global.c parsefile(argc, argv, cwd, root, dbpath, db); db 547 global/global.c tagsearch(av, cwd, root, dbpath, db); db 564 global/global.c int db; db 571 global/global.c db = (sflag) ? GSYMS : GTAGS; db 572 global/global.c gtop = gtags_open(dbpath, root, db, GTAGS_READ); db 886 global/global.c parsefile(int argc, char **argv, const char *cwd, const char *root, const char *dbpath, int db) db 921 global/global.c if (!getconfs(dbname(db), comline)) db 922 global/global.c die("cannot get parser for %s.", dbname(db)); db 1027 global/global.c search(const char *pattern, const char *root, const char *cwd, const char *dbpath, int db) db 1045 global/global.c gtop = gtags_open(dbpath, root, db, GTAGS_READ); db 1233 global/global.c tagsearch(const char *pattern, const char *cwd, const char *root, const char *dbpath, int db) db 1241 global/global.c count = search(pattern, root, cwd, dbpath, db); db 1246 global/global.c if (db == GTAGS && getenv("GTAGSLIBPATH") && (count == 0 || Tflag) && !lflag) { db 1261 global/global.c if (!test("f", makepath(libdbpath, dbname(db), NULL))) db 1266 global/global.c count = search(pattern, libdir, cwd, libdbpath, db); db 1279 global/global.c fprintf(stderr, " (using '%s')", makepath(dbpath, dbname(db), NULL)); db 157 gtags/gtags.c int db; db 373 gtags/gtags.c for (db = GTAGS; db < GTAGLIM; db++) { db 379 gtags/gtags.c if (!getconfs(dbname(db), sb)) db 384 gtags/gtags.c fprintf(stderr, "[%s] Creating '%s'.\n", now(), dbname(db)); db 385 gtags/gtags.c createtags(dbpath, cwd, db); db 387 gtags/gtags.c if (db == GTAGS) { db 391 gtags/gtags.c } else if (db == GRTAGS) { db 395 gtags/gtags.c } else if (db == GSYMS) { db 554 gtags/gtags.c int db; db 556 gtags/gtags.c for (db = GTAGS; db < GTAGLIM; db++) { db 560 gtags/gtags.c if ((db == GRTAGS || db == GSYMS) db 561 gtags/gtags.c && !test("f", makepath(dbpath, dbname(db), NULL))) db 564 gtags/gtags.c fprintf(stderr, "[%s] Updating '%s'.\n", now(), dbname(db)); db 565 gtags/gtags.c updatetags(dbpath, root, deleteset, addlist, db); db 593 gtags/gtags.c int db; db 598 gtags/gtags.c for (db = GTAGS; db < GTAGLIM; db++) db 599 gtags/gtags.c utime(makepath(dbpath, dbname(db), NULL), NULL); db 638 gtags/gtags.c updatetags(const char *dbpath, const char *root, IDSET *deleteset, STRBUF *addlist, int db) db 647 gtags/gtags.c if (db == GRTAGS && !test("f", makepath(dbpath, dbname(GTAGS), NULL))) db 653 gtags/gtags.c if (!getconfs(dbname(db), comline)) db 654 gtags/gtags.c die("cannot get tag command. (%s)", dbname(db)); db 655 gtags/gtags.c gtop = gtags_open(dbpath, root, db, GTAGS_MODIFY); db 746 gtags/gtags.c createtags(const char *dbpath, const char *root, int db) db 757 gtags/gtags.c if (!getconfs(dbname(db), comline)) db 758 gtags/gtags.c die("cannot get tag command. (%s)", dbname(db)); db 762 gtags/gtags.c if (db == GRTAGS && !test("f", makepath(dbpath, dbname(GTAGS), NULL))) db 764 gtags/gtags.c gtop = gtags_open(dbpath, root, db, GTAGS_CREATE); db 77 htags/anchor.c int db; db 79 htags/anchor.c for (db = GTAGS; db < GTAGLIM; db++) { db 80 htags/anchor.c anchor_input[db] = NULL; db 94 htags/anchor.c if (gtags_exist[db] == 1) { db 95 htags/anchor.c snprintf(comline, sizeof(comline), "%s -f%s --nofilter=path", global_path, options[db]); db 96 htags/anchor.c anchor_input[db] = xargs_open_with_file(comline, 0, anchor_stream); db 108 htags/anchor.c int db; db 118 htags/anchor.c for (db = GTAGS; db < GTAGLIM; db++) { db 122 htags/anchor.c if ((xp = anchor_input[db]) == NULL) db 146 htags/anchor.c if (db == GTAGS) { db 172 htags/anchor.c } else if (db == GRTAGS) db 185 htags/anchor.c xargs_close(anchor_input[db]); db 186 htags/anchor.c anchor_input[db] = NULL; db 76 htags/cache.c cache_put(int db, const char *tag, const char *line) db 78 htags/cache.c if (db >= GTAGLIM) db 80 htags/cache.c assoc_put(assoc[db], tag, line); db 90 htags/cache.c cache_get(int db, const char *tag) db 92 htags/cache.c if (db >= GTAGLIM) db 94 htags/cache.c return assoc_get(assoc[db], tag); db 57 htags/dupindex.c int db; db 64 htags/dupindex.c for (db = GTAGS; db < GTAGLIM; db++) { db 65 htags/dupindex.c const char *kind = kinds[db]; db 66 htags/dupindex.c const char *option = options[db]; db 72 htags/dupindex.c if (gtags_exist[db] == 0) db 86 htags/dupindex.c if (db != GSYMS) db 119 htags/dupindex.c cache_put(db, prev, buf); db 128 htags/dupindex.c cache_put(db, prev, buf); db 145 htags/dupindex.c snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, dirs[db], count, HTML); db 163 htags/dupindex.c if (db == GTAGS) db 179 htags/dupindex.c cache_put(db, prev, buf); db 189 htags/dupindex.c cache_put(db, prev, buf); db 339 htags/src2html.c int db; db 342 htags/src2html.c db = GTAGS; db 344 htags/src2html.c db = GSYMS; db 346 htags/src2html.c db = GRTAGS; db 347 htags/src2html.c line = cache_get(db, name); db 370 htags/src2html.c if (db == GTAGS) db 372 htags/src2html.c else if (db == GRTAGS) db 400 htags/src2html.c if (db == GSYMS) { db 86 libdb/bt_put.c char *dest, db[NOVFLSIZE], kb[NOVFLSIZE]; db 145 libdb/bt_put.c tdata.data = db; db 147 libdb/bt_put.c memmove(db, &pg, sizeof(pgno_t)); db 148 libdb/bt_put.c memmove(db + sizeof(pgno_t), db 69 libutil/dbop.c DB *db; db 110 libutil/dbop.c db = dbopen(path, rw, 0600, DB_BTREE, &info); db 111 libutil/dbop.c if (!db) db 118 libutil/dbop.c dbop->db = db; db 136 libutil/dbop.c DB *db = dbop->db; db 143 libutil/dbop.c status = (*db->get)(db, &key, &dat, 0); db 166 libutil/dbop.c DB *db = dbop->db; db 180 libutil/dbop.c status = (*db->put)(db, &key, &dat, 0); db 200 libutil/dbop.c DB *db = dbop->db; db 214 libutil/dbop.c status = (*db->put)(db, &key, &dat, 0); db 232 libutil/dbop.c DB *db = dbop->db; db 239 libutil/dbop.c status = (*db->del)(db, &key, 0); db 241 libutil/dbop.c status = (*db->del)(db, &key, R_CURSOR); db 274 libutil/dbop.c DB *db = dbop->db; db 293 libutil/dbop.c for (status = (*db->seq)(db, &key, &dat, R_CURSOR); db 295 libutil/dbop.c status = (*db->seq)(db, &key, &dat, R_NEXT)) { db 309 libutil/dbop.c for (status = (*db->seq)(db, &key, &dat, R_FIRST); db 311 libutil/dbop.c status = (*db->seq)(db, &key, &dat, R_NEXT)) { db 350 libutil/dbop.c DB *db = dbop->db; db 359 libutil/dbop.c while ((status = (*db->seq)(db, &key, &dat, R_NEXT)) == RET_SUCCESS) { db 502 libutil/dbop.c DB *db = dbop->db; db 505 libutil/dbop.c (void)db->close(db); db 510 libutil/dbop.c (void)db->close(db, (dbop->openflags & DBOP_REMOVE || dbop->dbname[0] == '\0') ? 1 : 0); db 52 libutil/dbop.h DB *db; /* descripter of DB */ db 254 libutil/gtagsop.c dbname(int db) db 256 libutil/gtagsop.c assert(db >= 0 && db < GTAGLIM); db 257 libutil/gtagsop.c return tagslist[db]; db 273 libutil/gtagsop.c gtags_open(const char *dbpath, const char *root, int db, int mode) db 279 libutil/gtagsop.c gtop->db = db; db 298 libutil/gtagsop.c gtop->dbop = dbop_open(makepath(dbpath, dbname(db), NULL), dbmode, 0644, DBOP_DUP); db 301 libutil/gtagsop.c die("cannot make %s.", dbname(db)); db 302 libutil/gtagsop.c die("%s not found.", dbname(db)); db 310 libutil/gtagsop.c if (gtop->db == GTAGS) db 313 libutil/gtagsop.c if (gtop->db == GRTAGS || gtop->db == GSYMS) { db 341 libutil/gtagsop.c die("%s seems new format. Please install the latest GLOBAL.", dbname(gtop->db)); db 343 libutil/gtagsop.c die("%s seems older format. Please remake tag files.", dbname(gtop->db)); db 79 libutil/gtagsop.h int db; /* 0:GTAGS, 1:GRTAGS, 2:GSYMS */