db 222 global/global.c int db = GSYMS; db 246 global/global.c db = GTAGS; db 263 global/global.c db = GRTAGS; db 275 global/global.c db = GRTAGS; db 285 global/global.c db = GRTAGS; db 303 global/global.c if (db == GSYMS && getenv("GTAGSLIBPATH")) { db 322 global/global.c db = GTAGS; db 328 global/global.c return db; db 334 global/global.c int db; db 671 global/global.c db = decide_tag_by_context(av, context_file, atoi(context_lineno)); db 674 global/global.c db = GTAGS; db 676 global/global.c db = GRTAGS + GSYMS; db 678 global/global.c db = (rflag) ? GRTAGS : ((sflag) ? GSYMS : GTAGS); db 689 global/global.c completion(dbpath, root, av, db); db 775 global/global.c parsefile(argv, cwd, root, dbpath, db); db 781 global/global.c tagsearch(av, cwd, root, dbpath, db); db 795 global/global.c completion_tags(const char *dbpath, const char *root, const char *prefix, int db) db 798 global/global.c GTOP *gtop = gtags_open(dbpath, root, db, GTAGS_READ, 0); db 868 global/global.c completion(const char *dbpath, const char *root, const char *prefix, int db) db 875 global/global.c count = completion_tags(dbpath, root, prefix, db); db 879 global/global.c if (db == GTAGS && getenv("GTAGSLIBPATH") && (count == 0 || Tflag) && !lflag) { db 894 global/global.c if (!test("f", makepath(libdbpath, dbname(db), NULL))) db 899 global/global.c count = completion_tags(libdbpath, libdir, prefix, db); db 1439 global/global.c parsefile(char *const *argv, const char *cwd, const char *root, const char *dbpath, int db) db 1458 global/global.c if (db == GRTAGS + GSYMS) db 1461 global/global.c data.target = 1 << db; db 1472 global/global.c data.cv = convert_open(type, format, root, cwd, dbpath, stdout, db); db 1570 global/global.c search(const char *pattern, const char *root, const char *cwd, const char *dbpath, int db) db 1588 global/global.c gtop = gtags_open(dbpath, root, db, GTAGS_READ, 0); db 1589 global/global.c cv = convert_open(type, format, root, cwd, dbpath, stdout, db); db 1795 global/global.c tagsearch(const char *pattern, const char *cwd, const char *root, const char *dbpath, int db) db 1803 global/global.c count = search(pattern, root, cwd, dbpath, db); db 1810 global/global.c if (db == GTAGS && getenv("GTAGSLIBPATH") && (count == 0 || Tflag) && !lflag) { db 1825 global/global.c if (!test("f", makepath(libdbpath, dbname(db), NULL))) db 1830 global/global.c count = search(pattern, libdir, cwd, libdbpath, db); db 1843 global/global.c fprintf(stderr, " (using '%s')", makepath(dbpath, dbname(db), NULL)); db 676 gtags/gtags.c int db; db 708 gtags/gtags.c for (db = GTAGS; db < GTAGLIM; db++) db 709 gtags/gtags.c utime(makepath(dbpath, dbname(db), NULL), NULL); db 80 htags/anchor.c int db; db 82 htags/anchor.c for (db = GTAGS; db < GTAGLIM; db++) { db 83 htags/anchor.c anchor_input[db] = NULL; db 97 htags/anchor.c if (gtags_exist[db] == 1) { db 98 htags/anchor.c snprintf(comline, sizeof(comline), "%s -f%s --encode-path=\" \t\" --result=ctags-xid --nofilter=path", quote_shell(global_path), options[db]); db 99 htags/anchor.c anchor_input[db] = xargs_open_with_file(comline, 0, anchor_stream); db 111 htags/anchor.c int db, current_fid; db 128 htags/anchor.c for (db = GTAGS; db < GTAGLIM; db++) { db 132 htags/anchor.c if ((xp = anchor_input[db]) == NULL) db 155 htags/anchor.c if (db == GTAGS) { db 181 htags/anchor.c } else if (db == GRTAGS) db 194 htags/anchor.c xargs_close(anchor_input[db]); db 195 htags/anchor.c anchor_input[db] = NULL; db 85 htags/cache.c cache_put(int db, const char *tag, const char *line, int len) db 87 htags/cache.c if (db >= GTAGLIM) db 89 htags/cache.c assoc_put_withlen(assoc[db], tag, line, len); db 99 htags/cache.c cache_get(int db, const char *tag) db 101 htags/cache.c if (db >= GTAGLIM) db 103 htags/cache.c return assoc_get(assoc[db], tag); db 58 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 73 htags/dupindex.c if (gtags_exist[db] == 0) db 90 htags/dupindex.c if (db != GSYMS) db 126 htags/dupindex.c cache_put(db, prev, strbuf_value(tmp), strbuf_getlen(tmp) + 1); db 138 htags/dupindex.c cache_put(db, prev, strbuf_value(tmp), strbuf_getlen(tmp) + 1); db 157 htags/dupindex.c snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, dirs[db], count, HTML); db 175 htags/dupindex.c if (db == GTAGS) db 195 htags/dupindex.c cache_put(db, prev, strbuf_value(tmp), strbuf_getlen(tmp) + 1); db 206 htags/dupindex.c cache_put(db, prev, strbuf_value(tmp), strbuf_getlen(tmp) + 1); db 434 htags/src2html.c int db; db 437 htags/src2html.c db = GTAGS; db 439 htags/src2html.c db = GSYMS; db 441 htags/src2html.c db = GRTAGS; db 442 htags/src2html.c line = cache_get(db, name); db 475 htags/src2html.c if (db == GTAGS) db 477 htags/src2html.c else if (db == GRTAGS) db 506 htags/src2html.c if (db == GSYMS) { db 85 libdb/bt_put.c char *dest, db[NOVFLSIZE], kb[NOVFLSIZE]; db 144 libdb/bt_put.c tdata.data = db; db 146 libdb/bt_put.c memmove(db, &pg, sizeof(pgno_t)); db 147 libdb/bt_put.c memmove(db + sizeof(pgno_t), db 257 libutil/dbop.c DB *db; db 298 libutil/dbop.c db = dbopen(path, rw, 0600, DB_BTREE, &info); db 299 libutil/dbop.c if (!db) db 306 libutil/dbop.c dbop->db = db; db 330 libutil/dbop.c DB *db = dbop->db; db 337 libutil/dbop.c status = (*db->get)(db, &key, &dat, 0); db 360 libutil/dbop.c DB *db = dbop->db; db 382 libutil/dbop.c status = (*db->put)(db, &key, &dat, 0); db 404 libutil/dbop.c DB *db = dbop->db; db 418 libutil/dbop.c status = (*db->put)(db, &key, &dat, 0); db 436 libutil/dbop.c DB *db = dbop->db; db 443 libutil/dbop.c status = (*db->del)(db, &key, 0); db 445 libutil/dbop.c status = (*db->del)(db, &key, R_CURSOR); db 477 libutil/dbop.c DB *db = dbop->db; db 496 libutil/dbop.c for (status = (*db->seq)(db, &key, &dat, R_CURSOR); db 498 libutil/dbop.c status = (*db->seq)(db, &key, &dat, R_NEXT)) { db 512 libutil/dbop.c for (status = (*db->seq)(db, &key, &dat, R_FIRST); db 514 libutil/dbop.c status = (*db->seq)(db, &key, &dat, R_NEXT)) { db 553 libutil/dbop.c DB *db = dbop->db; db 562 libutil/dbop.c while ((status = (*db->seq)(db, &key, &dat, R_NEXT)) == RET_SUCCESS) { db 708 libutil/dbop.c DB *db = dbop->db; db 742 libutil/dbop.c (void)db->close(db); db 747 libutil/dbop.c (void)db->close(db, dbop->dbname[0] == '\0' ? 1 : 0); db 61 libutil/dbop.h DB *db; /**< descripter of DB */ db 273 libutil/gtagsop.c if (gtop->db == GRTAGS || gtop->db == GSYMS) { \ db 275 libutil/gtagsop.c if ((gtop->db == GRTAGS && !defined) || (gtop->db == GSYMS && defined)) \ db 305 libutil/gtagsop.c dbname(int db) db 307 libutil/gtagsop.c if (db == GRTAGS + GSYMS) db 308 libutil/gtagsop.c db = GRTAGS; db 309 libutil/gtagsop.c assert(db >= 0 && db < GTAGLIM); db 310 libutil/gtagsop.c return tagslist[db]; db 327 libutil/gtagsop.c gtags_open(const char *dbpath, const char *root, int db, int mode, int flags) db 334 libutil/gtagsop.c gtop->db = db; db 360 libutil/gtagsop.c strlimcpy(tagfile, makepath(dbpath, dbname(db == GSYMS ? GRTAGS : db), NULL), sizeof(tagfile)); db 364 libutil/gtagsop.c die("cannot make %s.", dbname(db)); db 365 libutil/gtagsop.c die("%s not found.", dbname(db)); db 367 libutil/gtagsop.c if (gtop->mode == GTAGS_READ && db != GTAGS) { db 390 libutil/gtagsop.c if (gtop->db == GRTAGS || gtop->db == GSYMS || gtop->openflags & GTAGS_COMPACT) { db 105 libutil/gtagsop.h int db; /**< 0:#GTAGS, 1:#GRTAGS, 2:#GSYMS */ db 197 libutil/pathconvert.c convert_open(int type, int format, const char *root, const char *cwd, const char *dbpath, FILE *op, int db) db 216 libutil/pathconvert.c cv->db = db; db 33 libutil/pathconvert.h int db; /**< for @NAME{gtags-cscope} */