Subversion Repositories wimsdev

Rev

Rev 9095 | Rev 9229 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9095 Rev 9227
Line 50... Line 50...
50
    int pr;
50
    int pr;
51
    pr=atoi(p[0]);
51
    pr=atoi(p[0]);
52
    if(pr<0 || pr>100000000) return;
52
    if(pr<0 || pr>100000000) return;
53
    fprintf(outf,"precision=%d\n",pr);
53
    fprintf(outf,"precision=%d\n",pr);
54
}
54
}
55
 
-
 
56
void p_css(char *p[MAX_PARM])
55
void p_gen2(char *name_gen, char *p[MAX_PARM])
57
{
56
{
58
    char vbuf_css[MAX_LINELEN+1];
57
    char vbuf_gen[MAX_LINELEN+1];
59
    if(p==NULL) return;
58
    if(p==NULL) return;
60
    snprintf(vbuf_css,sizeof(vbuf_css),"%s",p[0]); subst(vbuf_css);
59
    snprintf(vbuf_gen,sizeof(vbuf_gen),"%s",p[0]); subst(vbuf_gen);
61
    fprintf(outf,"oefcss=%s\n",vbuf_css);
-
 
62
}
-
 
63
 
-
 
64
void p_credits(char *p[MAX_PARM])
-
 
65
{
-
 
66
    char vbuf_credits[MAX_LINELEN+1];
-
 
67
    if(p==NULL) return;
-
 
68
    snprintf(vbuf_credits,sizeof(vbuf_credits),"%s",p[0]); subst(vbuf_credits);
-
 
69
    singlespace(vbuf_credits);
60
    singlespace(vbuf_gen);
70
    fprintf(outf,"credits=%s\n\n", vbuf_credits);
61
    fprintf(outf,"%s=%s\n\n", name_gen, vbuf_gen);
71
}
62
}
-
 
63
void p_css(char *p[MAX_PARM]) {p_gen2("oefcss", p);}
-
 
64
void p_credits(char *p[MAX_PARM]){p_gen2("credits", p);}
72
 
65
 
73
void p_wims(char *p[MAX_PARM])
66
void p_wims(char *p[MAX_PARM])
74
{
67
{
75
    char vbuf[MAX_LINELEN+1];
68
    char vbuf[MAX_LINELEN+1];
76
    snprintf(vbuf,sizeof(vbuf),"%s",p[0]); subst(vbuf);
69
    snprintf(vbuf,sizeof(vbuf),"%s",p[0]); subst(vbuf);