Changeset 75 for anr/gantt.l


Ignore:
Timestamp:
Feb 3, 2010, 12:33:25 AM (14 years ago)
Author:
coach
Message:

modification pour permettre la génération automatique des tables incluant des couts sans délivrables, explication dans README

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anr/gantt.l

    r63 r75  
    133133
    134134char* gen_label_base(char* buf,Tlivrable*p)
    135     { sprintf(buf,"D%d%d%d",p->tn,p->stn,p->dn); return buf; }
     135    { if (p->dn >=0) sprintf(buf,"D%d%d%d",p->tn,p->stn,p->dn); else sprintf(buf,""); return buf; }
    136136char* gen_label_vers(char* buf,Tlivrable*p)
    137137    { if (p->nbvers<=1) strcpy(buf,""); else sprintf(buf,"V%c",p->v); return buf; }
     
    222222S=[0-9]+  { stn=atoi(yytext+2); }
    223223D=[0-9]+  { dn=atoi(yytext+2); }
     224D=none    { dn=-2; }
    224225V=V[1-8F] { v=yytext[3]; }
    225226ML=[0-9]+ {
     
    545546    for (stn=0 ; curr->ls[tn][stn][0][0]!=0 ; stn++)
    546547        for (dn=0 ; curr->ls[tn][stn][dn][0]!=0 ; dn++) {
    547             y=delivrable(label_x,box_x,title_x,y,tn,stn,dn);
     548                        if (curr->ls[tn][stn][dn][0]->dn >=0)
     549                                y=delivrable(label_x,box_x,title_x,y,tn,stn,dn);
    548550        }
    549551}
Note: See TracChangeset for help on using the changeset viewer.