New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80760


Ignore:
Timestamp:
07/16/11 15:20:14 (4 years ago)
Author:
cal@…
Message:

rev-upgrade: Removed leading "MACHO_" from constants namespaced anyway

Location:
branches/gsoc11-rev-upgrade/base/src/machista1.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc11-rev-upgrade/base/src/machista1.0/machista.i

    r80737 r80760  
    1414%include "typemaps.i" 
    1515 
     16%rename(SUCCESS) MACHO_SUCCESS; 
    1617#define MACHO_SUCCESS   (0x00) 
     18 
     19%rename(EFILE) MACHO_EFILE; 
    1720#define MACHO_EFILE     (0x01) 
     21 
     22%rename(EMMAP) MACHO_EMMAP; 
    1823#define MACHO_EMMAP     (0x02) 
     24 
     25%rename(EMEM) MACHO_EMEM; 
    1926#define MACHO_EMEM      (0x04) 
     27 
     28%rename(ERANGE) MACHO_ERANGE; 
    2029#define MACHO_ERANGE    (0x08) 
     30 
     31%rename(EMAGIC) MACHO_EMAGIC; 
    2132#define MACHO_EMAGIC    (0x10) 
    2233 
  • branches/gsoc11-rev-upgrade/base/src/machista1.0/machista_wrap.c

    r80742 r80760  
    26202620   
    26212621   
    2622   SWIG_Tcl_SetConstantObj(interp, "machista::MACHO_SUCCESS", SWIG_From_int((int)((0x00)))); 
    2623   SWIG_Tcl_SetConstantObj(interp, "machista::MACHO_EFILE", SWIG_From_int((int)((0x01)))); 
    2624   SWIG_Tcl_SetConstantObj(interp, "machista::MACHO_EMMAP", SWIG_From_int((int)((0x02)))); 
    2625   SWIG_Tcl_SetConstantObj(interp, "machista::MACHO_EMEM", SWIG_From_int((int)((0x04)))); 
    2626   SWIG_Tcl_SetConstantObj(interp, "machista::MACHO_ERANGE", SWIG_From_int((int)((0x08)))); 
    2627   SWIG_Tcl_SetConstantObj(interp, "machista::MACHO_EMAGIC", SWIG_From_int((int)((0x10)))); 
     2622  SWIG_Tcl_SetConstantObj(interp, "machista::SUCCESS", SWIG_From_int((int)((0x00)))); 
     2623  SWIG_Tcl_SetConstantObj(interp, "machista::EFILE", SWIG_From_int((int)((0x01)))); 
     2624  SWIG_Tcl_SetConstantObj(interp, "machista::EMMAP", SWIG_From_int((int)((0x02)))); 
     2625  SWIG_Tcl_SetConstantObj(interp, "machista::EMEM", SWIG_From_int((int)((0x04)))); 
     2626  SWIG_Tcl_SetConstantObj(interp, "machista::ERANGE", SWIG_From_int((int)((0x08)))); 
     2627  SWIG_Tcl_SetConstantObj(interp, "machista::EMAGIC", SWIG_From_int((int)((0x10)))); 
    26282628  return TCL_OK; 
    26292629} 
  • branches/gsoc11-rev-upgrade/base/src/machista1.0/tests/test.tcl

    r80739 r80760  
    1010        puts [lindex $argv $i] 
    1111        set rlist [machista::parse_file $h [lindex $argv $i]] 
    12         if {[lindex $rlist 0] == $machista::MACHO_SUCCESS} { 
     12        if {[lindex $rlist 0] == $machista::SUCCESS} { 
    1313                set r [lindex $rlist 1] 
    1414                set a [$r cget -mt_archs] 
Note: See TracChangeset for help on using the changeset viewer.