On 04/13/2018 02:49 PM, Clementine Hayat wrote:
>
> I'll take a look into coccinelle. It may take a bit more time thought.
>
Yeah, don't waste too much time on it. I merely just wanted to mention
it. It not that trivial to learn. But once you do, it's awesome tool.
Michal
--
libvir-list
2018-04-13 8:25 GMT+00:00 Erik Skultety :
> On Fri, Apr 13, 2018 at 09:45:48AM +0200, Michal Privoznik wrote:
>> On 04/13/2018 09:31 AM, Ján Tomko wrote:
>> > On Thu, Apr 12, 2018 at 07:49:15PM +, Clementine Hayat wrote:
>> >> Add a function named virDomainObjCheckIsActive
On Thu, Apr 12, 2018 at 19:49:15 +, Clementine Hayat wrote:
> Add a function named virDomainObjCheckIsActive in src/conf/domain_conf.c.
> It calls virDomainObjIsActive, raises error and returns.
>
> There is a lot of occurence of this pattern and it will save 3 lines on
> each call. Knowing
On Fri, Apr 13, 2018 at 09:45:48AM +0200, Michal Privoznik wrote:
> On 04/13/2018 09:31 AM, Ján Tomko wrote:
> > On Thu, Apr 12, 2018 at 07:49:15PM +, Clementine Hayat wrote:
> >> Add a function named virDomainObjCheckIsActive in src/conf/domain_conf.c.
> >> It calls virDomainObjIsActive,
On 04/13/2018 09:31 AM, Ján Tomko wrote:
> On Thu, Apr 12, 2018 at 07:49:15PM +, Clementine Hayat wrote:
>> Add a function named virDomainObjCheckIsActive in src/conf/domain_conf.c.
>> It calls virDomainObjIsActive, raises error and returns.
>
> *raises error if necessary
>
>>
>> There is a
On Thu, Apr 12, 2018 at 07:49:15PM +, Clementine Hayat wrote:
Add a function named virDomainObjCheckIsActive in src/conf/domain_conf.c.
It calls virDomainObjIsActive, raises error and returns.
*raises error if necessary
There is a lot of occurence of this pattern and it will save 3
Add a function named virDomainObjCheckIsActive in src/conf/domain_conf.c.
It calls virDomainObjIsActive, raises error and returns.
There is a lot of occurence of this pattern and it will save 3 lines on
each call. Knowing that there is over 100 occurences, it will remove 300
lines from the code