summaryrefslogtreecommitdiffstats
path: root/TODO
blob: 9074a5e623725211da7d891488f0e97bf2bfea85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
`mkid' TODO - Future directions

* Portability
  - Fix filenames.c to handle non-UNIX file names properly
    (notably DOS & OS/2).
  - Fix assumption that (sizeof (int) == sizeof (long))

* all query interfaces
  - add environment variable for setting default ID file name.

* lid
  - use "long long" (if the compiler supports it) integer comparisons
    in find_number().
  - generalize the command-line interface for different behaviors.
    User passes a command-format string for operating on the results
    of a query:
    %p = pattern, %f = crunched file list, %F = uncrunched file list
    filename list options:
	{,} -vs- expanded; space -vs- newline separator
    pattern list options:
	tokens -vs- regexp
    Recommend the following aliases to emulate old behavior:
      alias lid="findid --format='echo %p %f'"
      alias eid="findid --format='vi +/\\<%p\\>/ %F'" # for vi users
      alias gid="findid --format='egrep \\<%p\\> %F'"
      alias aid="findid --format='fgrep -i %p %F'"
      alias pid="findid --format='echo %p %f' -f"
      alias fid="findid --format='echo %t ' -f"

* mkid & lid
  - store & retrieve floating point literals
  - automatically crack (optionally gzipped or compressed) tar files, so
    you can index and search archived source without having to unpack it.

* mkid
  - (Optinally?) store tokenized contents of comments.
  - Store attributes with symbols: type, func, variable struct-tag
    enum-tag, keyword, etc.  Store caller/callee relationships between
    identifiers.  Indicate which files have defns vs. uses.  This info
    is needed to support a cscope interface.
  - Add times(2) results to statistics output.
  - treat \ specially for TeX files and do likewise with @ for Texinfo.

* gscope
  - add a cscope work-alike query interface
  - rewrite scanners to be scanner/parsers that can distinguish defn
    from use, lvalues from rvalues, types from vars from funcs from macros.

* grep
  - Hack GNU grep to use a mkid database for hints about which files to
    search. 


Local Variables:
mode: text
fill-column: 75
End: