From owner-freebsd-hackers Mon Jul 29 02:26:09 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA15567 for hackers-outgoing; Mon, 29 Jul 1996 02:26:09 -0700 (PDT) Received: from mail.ca2.so-net.or.jp (mail.ca2.so-net.or.jp [202.238.95.34]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA15562 for ; Mon, 29 Jul 1996 02:26:06 -0700 (PDT) Received: from chiota (ppp724d.pppp.ap.so-net.or.jp [202.238.114.77]) by mail.ca2.so-net.or.jp (8.7.5/3.4W396052919) with SMTP id SAA78892; Mon, 29 Jul 1996 18:25:55 +0900 Received: from localhost (localhost [127.0.0.1]) by chiota (8.6.12/) with SMTP id SAA00390; Mon, 29 Jul 1996 18:24:57 +0900 Message-Id: <199607290924.SAA00390@chiota> To: hackers@freebsd.org Cc: shigio@ca2.so-net.or.jp Subject: Unix source code tour by global 1.3 and patched vi. Date: Mon, 29 Jul 1996 18:24:57 +0900 From: Shigio Yamaguchi Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello, this is Yamaguchi. I put the source code of GLOBAL version1.3 for FreeBSD 2.1R at http://ux01.so-net.or.jp/~shigio/freebsd/emain.html GLOBAL is a command which find the locations of specified function in C source files. This includes the patch for VI(nvi/nex 1.34) to use global within the editor. NEW FEATURE in VERSION 1.3: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ o Global search in not only a source tree but also library paths specified by environment variable GTAGSLIBPATH. Example: % cd /develop/src/mh % gtags <- make tag file % global mhl uip/mhlsbr.c <- mhl() found in the source tree % global strlen <- strlen() not found % cd /usr/src/lib % gtags <- make library tag % cd /usr/src/sys % gtags <- make system call tag % setenv GTAGSLIBPATH /usr/src/lib:/usr/src/sys % cd /develop/src/mh % global strlen ../../../usr/src/lib/libc/string/strlen.c <- strlen() is found in library % global access ../../../usr/src/sys/kern/vfs_syscalls.c <- access() is found in kernel OTHER FEATURES: ~~~~~~~~~~~~~~~ o Global can find the locations of specified function very quickly. o Global can locate not only function definitions but also function references. o Global can treat a source tree containing subdirectories and you can get relative path of objects from anywhere within the tree. o Global allow duplicate entries. o Global can understand perl's regular expression. o Global can be executed from vi's tag commands.(nvi/nex 1.34 only) The new version of nvi/nex(1.61 and later) supports duplicate entries in tags file. You can use patched ctags in this this package with the nvi/nex. If you cannot get items, please send E-mail to me. Please enjoy. -- Shigio Yamaguchi E-Mail: shigio@ca2.so-net.or.jp Home Page: http://ux01.so-net.or.jp/~shigio/