Subversion Repositories wimsdev

Rev

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

Rev 8010 Rev 8068
Line 1248... Line 1248...
1248
    }
1248
    }
1249
    pm->fill=o->fill_tag;
1249
    pm->fill=o->fill_tag;
1250
    ovlstrcpy(pm->str,p); return 0;
1250
    ovlstrcpy(pm->str,p); return 0;
1251
}
1251
}
1252
 
1252
 
-
 
1253
/* Create the struct objparm pm corresponding to the objparm p
1253
/* Execute a command. Returns 0 if OK. */
1254
 * Execute a command. Returns 0 if OK.
-
 
1255
 */
1254
int obj_main(char *p)
1256
int obj_main(char *p)
1255
{
1257
{
1256
    int i;
1258
    int i;
1257
    char *pp,*name,*pt;
1259
    char *pp,*name,*pt;
1258
    char tbuf2[MAX_LINELEN+1];
1260
    char tbuf2[MAX_LINELEN+1];
Line 1269... Line 1271...
1269
      *(pp++)=0; pp=find_word_start(pp);
1271
      *(pp++)=0; pp=find_word_start(pp);
1270
    }
1272
    }
1271
    if(strlen(p)==1 || (strlen(p)==2 && isdigit(*(p+1)))) {
1273
    if(strlen(p)==1 || (strlen(p)==2 && isdigit(*(p+1)))) {
1272
      setvar(p,evalue(pp)); return 0;
1274
      setvar(p,evalue(pp)); return 0;
1273
    }
1275
    }
-
 
1276
/* search the number of the object */
1274
    i=search_list(objtab,obj_no,sizeof(objtab[0]),name);
1277
    i=search_list(objtab,obj_no,sizeof(objtab[0]),name);
1275
    if(i<0) {
1278
    if(i<0) {
1276
      error("bad_cmd"); return 1;
1279
      error("bad_cmd"); return 1;
1277
    }
1280
    }
1278
    if(image==NULL && (objtab[i].color_pos || objtab[i].required_parms>2)) {
1281
    if(image==NULL && (objtab[i].color_pos || objtab[i].required_parms>2)) {