[Bond-users] Papyrus makelabels

Jasen Betts jasen at treshna.com
Sun Dec 11 16:51:08 EST 2011


On Sat, Dec 10, 2011 at 01:00:53PM +0000, Colin Close wrote:
> On Saturday 10 Dec 2011 02:14:47 Colin Close wrote:
> > On Friday 09 Dec 2011 15:13:00 Colin Close wrote:
> > > On Friday 09 Dec 2011 13:37:25 Jasen Betts wrote:


> > > > --- a/gui/src/report.c
> > > > +++ b/gui/src/report.c
> > > > @@ -104,8 +104,18 @@ run_report ()
> > > > 
> > > >           param = (require_parameter *) walk->data;
> > > >           if (param->value)
> > > >           
> > > >             {
> > > > 
> > > > -             args=g_list_append(args,mem_strdup("-a"));
> > > > -             args=g_list_append(args, mem_strdup_printf ("%s=%s",
> > > > param->ident, +             if( param->ident[0] == '-' &&
> > > > param->ident[1]
> > > > == '-' ) +               { /* if param ident begins "--" emit it and the
> > > > value without '-a' preamble +                  * and without "=" joining
> > > > them */
> > > > +                 if( param->ident[2] ) /* suppress '--' with nothing
> > > > after, only emit value */ +
> > > > args=g_list_append(args,mem_strdup(param->ident)); +
> > > > args=g_list_append(args, mem_strdup(param->value)); +               }

> > > > +             else

remove that "else" -  should be near line 114

> > > > +               {
> > > > +                 args=g_list_append(args,mem_strdup("-a"));
> > > > +                 args=g_list_append(args, mem_strdup_printf ("%s=%s",
> > > > param->idnt, param->value)); +               }
> > > > 
> > > >             }
> > > >           
> > > >           walk = walk->next;
> > > >         
> > > >         }

> Hi Jasen,
> Please forgive this continued blather it seems that the extra space is not 
> required. I confused myself by making more than one change at a time. It is 
> just the  "ensure_variable(char *name)" thing  that is causing the problem.
> Best,

do the edit described above: remove the else.

when you get it working I'll submit a tidier version 





-- 
Jasen Betts
treshna Enterprises Ltd
Tel: +64 3 974 9169 or 0800 894 149  
(for Jasen dial ext 204 when the voice starts)
Fax: +64 28 894 860
Web: www.treshna.com
267 Madras Street, Christchurch, New Zealand
IT Consultancy - Websites - Database development - Computer tech support




More information about the Bond-users mailing list