ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] select patch


From: Johannes Altmanninger
Subject: Re: [RP] select patch
Date: Thu, 19 Jun 2014 20:46:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0


On 06/19/2014 08:27 PM, Jeff Abrahamson wrote:
Thanks!  This looks good, up to my late-afternoon ability to review code.  I trust anyway that you'll eventually test it, too. ;-)

Do you ever allocate or deallocate curname?


Jeff Abrahamson

I have never done all this...
How should I allocate curname?
Is it:
char curname[MAX_WINDOW_NAME_LENGTH];
Deallocating should just be `free(curname);`, right?

Also I am a stuck at the function pointer.
From what I understood it is a function, that takes the name and match_type
and returns a comparison function
Is this the right type?
int (*compare_window_names)(char* name, int match_type)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]