Hi,
> As you can see sqlite3.c and sqlite3.h files results are mixed-up.
> It would be great if those could be ordered - first all results
> from sqlite3.c are listed and then all sqlite3.h follow (or vice-versa).
Global(1) sorts the output by 1. tag name, 2. file name, 3. line number
in this priority. Since '--result=grep' omits tag name, maybe it looks unnatural.
If you invoke global(1) with the -x option, it will bring the following result.
sqlite_int64 371 libglibc/sqlite3.c typedef SQLITE_INT64_TYPE sqlite_int64;
sqlite_int64 374 libglibc/sqlite3.c typedef __int64 sqlite_int64;
sqlite_int64 377 libglibc/sqlite3.c typedef long long int sqlite_int64;
sqlite_int64 247 libglibc/sqlite3.h typedef SQLITE_INT64_TYPE sqlite_int64;
sqlite_int64 250 libglibc/sqlite3.h typedef __int64 sqlite_int64;
sqlite_int64 253 libglibc/sqlite3.h typedef long long int sqlite_int64;
sqlite_uint64 372 libglibc/sqlite3.c typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
sqlite_uint64 375 libglibc/sqlite3.c typedef unsigned __int64 sqlite_uint64;
sqlite_uint64 378 libglibc/sqlite3.c typedef unsigned long long int sqlite_uint64;
sqlite_uint64 248 libglibc/sqlite3.h typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
sqlite_uint64 251 libglibc/sqlite3.h typedef unsigned __int64 sqlite_uint64;
sqlite_uint64 254 libglibc/sqlite3.h typedef unsigned long long int sqlite_uint64;
> Can I also disable somehow regexp search for definitions and references?
> Being able to do "literal" definition/reference search would be very valuable.
That's on the head of the TODO list already.
Regards,
Shigio