Commit Graph

1078 Commits

Author SHA1 Message Date
Suresh Sundriyal
ef36548b82 Merge pull request #141 from sureshsundriyal/wip
Some more build related additions/fixes.
2015-03-23 16:09:47 -07:00
Suresh Sundriyal
bc5a6cd154 [minor] Fix the tinfo disable message. 2015-03-23 15:57:43 -07:00
Suresh Sundriyal
498efe4bbb [build] autogen.sh run 2015-03-23 15:46:54 -07:00
Suresh Sundriyal
2c7f70d56c [build] Provide an option to disable tinfo linking.
In some cases, tinfo is not required to build but the library still gets
linked in because it's present on the system. There should be an
explicit way to disable linking with tinfo.
2015-03-23 15:44:25 -07:00
Suresh Sundriyal
de7024e820 [yajl macro] Remove unnecessary addition to libs. 2015-03-23 15:13:38 -07:00
Suresh Sundriyal
182279db6c Merge pull request #140 from sureshsundriyal/wip
Fix the filename in pcre macro
2015-03-23 03:53:18 -07:00
Suresh Sundriyal
c83371c74e Fix the filename in pcre macro 2015-03-23 03:43:10 -07:00
Suresh Sundriyal
57140c7b02 Merge pull request #139 from sureshsundriyal/wip
Build related stuff.
2015-03-23 03:38:10 -07:00
Suresh Sundriyal
23e2d86421 [build] autogen run 2015-03-23 03:28:24 -07:00
Suresh Sundriyal
649f486d13 [File headers] Add some headers to m4 files.
Add the license and copyright headers to m4 files.
2015-03-23 03:23:05 -07:00
Suresh Sundriyal
13c6b82f8c [build] Fix SQLite3 realted m4 macros.
The current macro does not seem to honor the CFLAGS and LDFLAGS
variables if '--with-sqlite3=yes' is used. Fix this and some of
the other cruft in the macro.
2015-03-23 03:22:59 -07:00
Timothy Stack
42521ef337 [hist] the wrong view could be used when switching from hist to log 2015-03-22 21:58:12 -07:00
Timothy Stack
cf462cecde [hist] need to rebuild the histogram if files are closed 2015-03-22 11:49:37 -07:00
Timothy Stack
0cbaa394cb [build] autogen 2015-03-22 11:32:00 -07:00
Suresh Sundriyal
06ed04cea9 Merge pull request #137 from sureshsundriyal/wip
[Coverity] Eliminate null pointer dereferencing.
2015-03-22 01:17:39 -07:00
Suresh Sundriyal
6567b53266 [Coverity] Eliminate null pointer dereferencing.
There is a possibility that 'name' might be NULL and {get/set}env might
dereference it.
2015-03-21 23:22:58 -07:00
Tim Stack
28956fc63f Merge pull request #136 from sureshsundriyal/wip
Minor changes.
2015-03-21 21:01:54 -07:00
Suresh Sundriyal
e3f2939904 [Coverity] Uninitialized variable.
Zero out 'msg' during declaration.
2015-03-21 17:07:43 -07:00
Suresh Sundriyal
803642a849 [Coverity] Fixes an 'Uninitialized variables' error.
Initialize retval to SQLITE_ERROR during declaration at the beggining of
the method. I could technically go with SQLITE_OK but if this is going
to be unintentially returned without being initialized, I would much
rather it return an error than success.
2015-03-21 17:06:39 -07:00
Tim Stack
1457aba137 Merge pull request #135 from sureshsundriyal/wip
Remove unused 'strncasestr_i'.
2015-03-21 15:20:50 -07:00
Suresh Sundriyal
74de13e2c9 Remove unused 'strncasestr_i'.
The function is not really used anywhere and does not really do what the
name suggests it should. It leads to compiler warnings about 'unused'
function. Removing this for now.
2015-03-21 13:43:40 -07:00
Tim Stack
0850d75173 Merge pull request #133 from sureshsundriyal/wip
Code changes to get rid of warnings & errors.
2015-03-21 13:35:23 -07:00
Suresh Sundriyal
d1c267b0b1 [Warning] conversion from string literal to 'char *'
Fix the deprecation warning about conversion from string literal to
'char *' by implicitly casting the literal.
2015-03-21 13:11:26 -07:00
Suresh Sundriyal
1c0d3a4f5a [Warnings] varargs with reference parameters.
'va_start' has undefined behvaior with reference types, so use a pointer instead.
2015-03-21 11:56:12 -07:00
Suresh Sundriyal
89b31050f1 [Compile errors] Fix some errors on ancient toolchains.
Fix some random errors on older toolchains where sys/time.h does
not include time.h.
2015-03-21 11:39:48 -07:00
Tim Stack
eab197ecdc Merge pull request #132 from sureshsundriyal/master
Remove the check for libreadline.a
2015-03-21 09:10:07 -07:00
Suresh Sundriyal
263ece0d93 Remove the check for libreadline.a
Do a standard check for libreadline and use '-lreadline' as usual.
2015-03-21 00:20:35 -07:00
Tim Stack
c312814637 Merge pull request #131 from sureshsundriyal/master
[build] Make sure readline has the necessary symbols.

Fixes #122
2015-03-20 20:59:07 -07:00
Timothy Stack
b02430f4d9 add netinet include 2015-03-20 20:55:46 -07:00
Suresh Sundriyal
f52d9641ed [build] Make sure readline has the necessary symbols.
On FreeBSD variant, readline functionality is provided by editline which
is almost compatible but not quite. We could do a specific check for
editline but if editline adds the functionality in the future, this
check will still continue to fail. Instead look for one of the symbols
currently missing in editline as a sanity check.
2015-03-20 20:50:14 -07:00
Timothy Stack
fa2ed5621d [build] autogen run 2015-03-20 20:32:40 -07:00
Tim Stack
476a0da930 Merge pull request #130 from sureshsundriyal/master
Fix the 'readline' ac macro.
2015-03-20 20:26:41 -07:00
Suresh Sundriyal
31c4669a8a [build] Fix the 'readline' ac macro.
The macro does not track the include directory when it is passed in
using the '--with-readline=/foo/bar' invocation of '--with-readline'
flag.

This change should fix the problem. I've tried to keep the functionality
exactly the same as before and converted the script to pure M4sh, which
should produce a more portable configure script.
2015-03-20 17:17:30 -07:00
Suresh Sundriyal
df5045a64c [build] break up lnav.m4 based on the functionality 2015-03-20 13:21:44 -07:00
Timothy Stack
ff724e4941 [pipe-to] set env vars for each log line column 2015-03-19 22:16:55 -07:00
Timothy Stack
650ce89a19 [build] autogen 2015-03-19 20:46:56 -07:00
Tim Stack
615172dcec Merge pull request #129 from sureshsundriyal/master
[build] Reimplement yajl m4 macro using only M4sh.
2015-03-19 20:46:02 -07:00
Timothy Stack
aea0bd54e0 [cmd] add a :redraw command to do a full redraw of the window
Fixes #18
2015-03-19 20:43:22 -07:00
Suresh Sundriyal
8031a83290 [build] Reimplement yajl m4 macro using only M4sh. 2015-03-19 03:49:45 -07:00
Timothy Stack
12b81fe4e7 [format] fix full message read for json formats 2015-03-18 22:57:30 -07:00
Timothy Stack
dc79bd3bf5 [nav] reset where shift+j/k set bookmarks after scrolling
Fixes #13
2015-03-18 21:54:46 -07:00
Timothy Stack
12e0befe30 [pretty-print] try to reverse lookup IP addresses 2015-03-18 06:32:56 -07:00
Timothy Stack
c3968e4291 [pretty-print] remove some extra line feeds 2015-03-18 05:49:27 -07:00
Timothy Stack
3e7063a522 [pretty-print] put closing curlys on their own line 2015-03-17 22:38:50 -07:00
Tim Stack
facb75589b Merge pull request #128 from sureshsundriyal/master
Partial fix for issue#53 (Allow the use of yajl installed on the system)
2015-03-17 21:04:15 -07:00
Timothy Stack
42b809427d Revert "[pretty-print] add a test for the pretty-printer"
This reverts commit e0cec10445.
2015-03-16 23:51:36 -07:00
Timothy Stack
e0cec10445 [pretty-print] add a test for the pretty-printer 2015-03-16 23:44:05 -07:00
Timothy Stack
1a9e41cf2f use stringstream instead of strstream 2015-03-16 23:27:40 -07:00
Timothy Stack
c670a86d04 [pretty-print] first pass at a pretty-printer
Defect Number:
    Reviewed By:
   Testing Done:
2015-03-16 23:10:34 -07:00
Timothy Stack
1d3481c3fa [cmd] add pipe-to and pipe-line-to commands 2015-03-16 09:16:49 -07:00