Re: [PATCH] dynamic cmd_table maybe 2

2013-03-25 Thread Philip Herron
had a more > generic benefit elsewhere -- that is to say -- if these changes go as > far as to only help with some python integration local to yourself, > I'm dubious as to the value of this change. > > On 22 March 2013 17:05, Philip Herron wrote: >> + cmd_table = c

[PATCH] dynamic cmd_table maybe 2

2013-03-22 Thread Philip Herron
--- cmd.c | 14 -- tmux.c |2 +- tmux.h |4 +++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/cmd.c b/cmd.c index c8e9702..083c5eb 100644 --- a/cmd.c +++ b/cmd.c @@ -27,7 +27,8 @@ #include "tmux.h" -const struct cmd_entry *cmd_table[] = { +struct cmd_

[PATCH] Dynamicly allocated command table

2013-03-22 Thread Philip Herron
Dynamic commad table allow for command manipulation at runtime i use this in my python scripting command. Philip Herron (1): dynamic command table maybe cmd.c| 179 -- server.c |3 ++ tmux.c | 11 tmux.h |8

[PATCH] dynamic command table maybe

2013-03-22 Thread Philip Herron
--- cmd.c| 179 -- server.c |3 ++ tmux.c | 11 tmux.h |8 ++- 4 files changed, 112 insertions(+), 89 deletions(-) diff --git a/cmd.c b/cmd.c index c8e9702..8a47e33 100644 --- a/cmd.c +++ b/cmd.c @@ -27,93 +27,96

Re: Can't build tmux on Solaris 10

2012-12-26 Thread Philip Herron
Just finished cleaning it up a little more i just: git diff client.c > solaris.patch git diff Makefile.am >> solaris.patch Hope its ok On 26 December 2012 21:55, Philip Herron wrote: > Not sure if you guys already have this fixed, i just made this kind of > dirty patch and have

Re: Can't build tmux on Solaris 10

2012-12-26 Thread Philip Herron
Not sure if you guys already have this fixed, i just made this kind of dirty patch and have it working for me now with suncc. Would ideally like someone to have a peek over it the flock stuff is just dirty put in but i could clean it up and #ifdef it out properly. Then i had to remove the useage o

Re: Can't build tmux on Solaris 10

2012-12-05 Thread Philip Herron
I finally have free time today so i might poke at it again. --Phil On 5 December 2012 12:20, John Long wrote: > Hey guys, any progress on this? > > > On Tue, Nov 27, 2012 at 04:03:20PM +0000, Philip Herron wrote: >> I might give ago at looking into this tomorrow and try to

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
d send them that'd > be great :-). > > Any change to _XPG6 will need to be tested on Solaris 10 and 11 anyway. > > > On Tue, Nov 27, 2012 at 03:35:00PM +, Thomas Adam wrote: >> On Tue, Nov 27, 2012 at 03:31:18PM +, Philip Herron wrote: >> > The erro

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
12 15:31, Philip Herron wrote: > The error is just: > > "client.c", line 82: warning: implicit function declaration: flock > "client.c", line 82: undefined symbol: LOCK_EX > "client.c", line 82: undefined symbol: LOCK_NB > "client.c", lin

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
an't seem to figure out where that flock prototype should be on solaris. Trying to see if i can figure out a fix kind of find this interesting. Maybe you have some ideas already. On 27 November 2012 15:16, John Long wrote: > On Tue, Nov 27, 2012 at 03:08:20PM +, Philip Herron wrot

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
line 81: undefined symbol: LOCK_NB "client.c", line 246: warning: implicit function declaration: cfmakeraw cc: acomp failed for client.c So looking into it now see if i can figure out whats going on. --Phil On 27 November 2012 14:54, John Long wrote: > That would be awesome. If neede

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
I might give it a go now i am working on a solaris 10 machine at the moment. On 27 November 2012 14:44, John Long wrote: > I'm striking out with this. The last suggestion I saw was to try linking > against ncurses instead of Solaris curses. I tried but apparently I don't > know enough to do that.

Re: [PATCH 0/1] Hook support: proof-of-concept

2012-11-26 Thread Philip Herron
Just a quick poke has add-hook support been merged into git master? --Phil On 21 November 2012 18:01, Nicholas Marriott wrote: > Hi > > This seems a reasonable idea to me but I think it should go in cmd_ctx - > it is context for THIS invocation of the command, not for all > invocations. I'd just

Re: [PATCH 1/1] Hook support: Proof-of-concept

2012-11-04 Thread Philip Herron
I am looking forward to checking this out i was thinking of using something like this to have callbacks into ython code from other commands and this solves it! :) On 4 November 2012 01:22, Thomas Adam wrote: > Suggested patch on how to implement before/after hook support. > --- > Makefile.am

Re: Python Scripting

2012-11-03 Thread Philip Herron
t; (such as 06/17 and others) - I'm sure some of the git wizards on the > list could tell you how to do that latter if you wish. > > > > On Sat, Nov 03, 2012 at 01:04:04AM +, Philip Herron wrote: >> Hey >> >> Not sure if this patches will ever be useful to

Re: Python Scripting

2012-11-02 Thread Philip Herron
On 3 November 2012 01:04, Philip Herron wrote: > Hey > > Not sure if this patches will ever be useful to anyone but i decided i > wanted to be able to add commands to tmux in python as i wanted to > interact in a nice way with my system. So i made these patches. > > You