Changeset 62


Ignore:
Timestamp:
10/30/2008 11:06:24 PM (14 years ago)
Author:
marcus
Message:

r47 | svn | 2008-10-14 12:23:15 +0200 (Di, 14 Okt 2008) | 1 line

fixed bug on variable translation (2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/motif/mfexec.c

    r61 r62  
    417417                } /*endif*/ 
    418418                /* if addlist is a variable, translate it */ 
    419                 if  (addlist[0] == '$')  { 
    420                         vstr[0] = 'v'; 
    421                         strcpy( vstr+1, addlist ); 
    422                         GpReadParameter( vstr, cBcLongStrLth, addlist, &ok ); 
    423                         if  (!ok)  { 
    424                                 printf( "*SHM: no %s definition\n", vstr ); 
    425                                 *status = MXE_CONFIG_SETUP; 
    426                                 err_setcontext( " ## variable: not found: " ); 
    427                                 err_setcontext( vstr ); 
    428                                 return; 
    429                         } /*endif*/ 
    430                 } /*endif*/ 
    431                 if  (GpGetInt(cGpI_debug_level) > 3) 
    432                         printf( "SHM-dbg4: :LOC addlist: %s\n", addlist ); 
    433419        } else { 
    434420                strcpy( addlist, code ); 
    435421        } /*endif*/ 
     422 
     423        if  (addlist[0] == '$')  { 
     424                vstr[0] = 'v'; 
     425                strcpy( vstr+1, addlist ); 
     426                GpReadParameter( vstr, cBcLongStrLth, addlist, &ok ); 
     427                if  (!ok)  { 
     428                        printf( "*SHM: no %s definition\n", vstr ); 
     429                        *status = MXE_CONFIG_SETUP; 
     430                        err_setcontext( " ## variable: not found: " ); 
     431                        err_setcontext( vstr ); 
     432                        return; 
     433                } /*endif*/ 
     434        } /*endif*/ 
     435        if  (GpGetInt(cGpI_debug_level) > 3) 
     436                printf( "SHM-dbg4: :LOC addlist: %s\n", addlist ); 
    436437 
    437438} /* end of mxh_translate_button_name */ 
Note: See TracChangeset for help on using the changeset viewer.