Changeset 80760
- Timestamp:
- 07/16/11 15:20:14 (4 years ago)
- Location:
- branches/gsoc11-rev-upgrade/base/src/machista1.0
- Files:
-
- 3 edited
-
machista.i (modified) (1 diff)
-
machista_wrap.c (modified) (1 diff)
-
tests/test.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/gsoc11-rev-upgrade/base/src/machista1.0/machista.i
r80737 r80760 14 14 %include "typemaps.i" 15 15 16 %rename(SUCCESS) MACHO_SUCCESS; 16 17 #define MACHO_SUCCESS (0x00) 18 19 %rename(EFILE) MACHO_EFILE; 17 20 #define MACHO_EFILE (0x01) 21 22 %rename(EMMAP) MACHO_EMMAP; 18 23 #define MACHO_EMMAP (0x02) 24 25 %rename(EMEM) MACHO_EMEM; 19 26 #define MACHO_EMEM (0x04) 27 28 %rename(ERANGE) MACHO_ERANGE; 20 29 #define MACHO_ERANGE (0x08) 30 31 %rename(EMAGIC) MACHO_EMAGIC; 21 32 #define MACHO_EMAGIC (0x10) 22 33 -
branches/gsoc11-rev-upgrade/base/src/machista1.0/machista_wrap.c
r80742 r80760 2620 2620 2621 2621 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)))); 2628 2628 return TCL_OK; 2629 2629 } -
branches/gsoc11-rev-upgrade/base/src/machista1.0/tests/test.tcl
r80739 r80760 10 10 puts [lindex $argv $i] 11 11 set rlist [machista::parse_file $h [lindex $argv $i]] 12 if {[lindex $rlist 0] == $machista:: MACHO_SUCCESS} {12 if {[lindex $rlist 0] == $machista::SUCCESS} { 13 13 set r [lindex $rlist 1] 14 14 set a [$r cget -mt_archs]
Note: See TracChangeset
for help on using the changeset viewer.

