Changeset 3741


Ignore:
Timestamp:
Jul 3, 2013, 9:10:00 AM (11 years ago)
Author:
gah
Message:

fix Makefile

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r3736 r3741  
    4444.PHONY: all test install clean distclean package distrib runtime-distrib $(TARGETS)
    4545
    46 all: $(TARGETS)
    47 
    48 $(TARGETS):
    49         $(MAKE) -C $@ all
     46all:
     47        for i in $(TARGETS) ; do \
     48          $(MAKE) -C $$i all || exit 1 ;\
     49        done
    5050
    5151test:
  • trunk/gui/scripts/drawingentry.tcl

    r3671 r3741  
    125125
    126126    # scan through all variables and attach notifications for changes
    127     foreach cpath [$_xmlobj children -as path -type variable $_path.substitutions] {
     127    set subs [$_xmlobj children -as path -type variable $_path.substitutions]
     128    foreach cpath $subs {
    128129        set map ""
    129130        set name ""
     
    171172
    172173    # find all embedded controls and build a popup for each hotspot
    173     foreach cpath [$_xmlobj children -type hotspot -as path $_path.components] {
     174    set hotspots [$_xmlobj children -type hotspot -as path $_path.components]
     175    foreach cpath $hotspots {
    174176        set listOfControls [$_xmlobj children -type controls $cpath]
    175177        if {[llength $listOfControls] > 0} {
     
    190192        }
    191193    }
    192 
    193194    set c $itk_component(drawing)
    194     foreach cpath [$_xmlobj children -type text -as path $_path.components] {
     195    set texts [$_xmlobj children -type text -as path $_path.components]
     196    foreach cpath $texts {
    195197        set popup ""
    196198        set mode [XmlGetSubst $cpath.hotspot]
     
    601603            set width [expr [image width $img] / 4]
    602604        } else {
    603             set width [expr [ScreenX $w] - [ScreenX 0]]
     605            set width [expr int([ScreenX $w] - [ScreenX 0])]
    604606        }
    605607        set h [XmlGetSubst $cpath.height]
     
    607609            set height [expr [image height $img] / 4]
    608610        } else {
    609             set height [expr [ScreenY $h] - [ScreenY 0]]
     611            set height [expr int([ScreenY $h] - [ScreenY 0])]
    610612        }
    611613        if { $width != [image width $img] || $height != [image height $img] } {
    612614            set dst [image create photo -width $width -height $height]
    613             blt::winop resample $img $dst
     615            blt::winop resample $img $dst box
    614616            image delete $img
    615617            set img $dst
     
    627629            set x2 $tmp
    628630        }
    629         set width [expr {$x2 - $x1 + 1}]
    630         set height [expr {$y2 - $y1 + 1}]
     631        set width [expr {int($x2 - $x1 + 1)}]
     632        set height [expr {int($y2 - $y1 + 1)}]
    631633        if { $width != [image width $img] || $height != [image height $img] } {
    632634            set dst [image create photo -width $width -height $height]
    633             blt::winop resample $img $dst
     635            blt::winop resample $img $dst box
    634636            image delete $img
    635637            set img $dst
     
    639641        set height [expr [image height $img] / 4]
    640642        set dst [image create photo -width $width -height $height]
    641         blt::winop resample $img $dst
     643        blt::winop resample $img $dst box
    642644        image delete $img
    643645        set img $dst
     
    971973
    972974    if {$bad ne ""} {
    973         puts "WARNING: $bad"
    974         puts "assuming default \"0 0 1 1\" coordinates"
     975        puts stderr "WARNING: $bad"
     976        puts stderr "assuming default \"0 0 1 1\" coordinates"
    975977        array set xvals {1 0 2 1}
    976978        array set yvals {1 0 2 1}
     
    10311033            }
    10321034            default {
    1033                 puts "WARNING: don't understand \"$elem\" in $_path"
     1035                puts stderr "WARNING: don't understand \"$elem\" in $_path"
    10341036            }
    10351037        }
     
    10421044itcl::body Rappture::DrawingEntry::Invoke {cpath x y} {
    10431045    if {![info exists _cpath2popup($cpath)]} {
    1044         puts "WARNING: no controls for hotspot at $cpath"
     1046        puts stderr "WARNING: no controls for hotspot at $cpath"
    10451047        return
    10461048    }
  • trunk/lang/R/Makefile.in

    r3725 r3741  
    2121R               = @R@
    2222
    23 coresrcdir      = ${PWD}/../../rappture/src/core
    24 corelibdir      = ${PWD}/../src/core
    25 R_flags         = --configure-args='--with-rappture-include=$(includedir)\
    26                                     --with-rappture-lib=$(libdir)'
     23coresrcdir      = ${PWD}/$(srcdir)/../../src/core
     24corelibdir      = ${PWD}/../../src/core
     25R_flags         = --configure-args='--with-rappture-include=$(coresrcdir) \
     26                                    --with-rappture-lib=$(corelibdir)'
    2727
    2828RLIB            = R
  • trunk/lang/R/Rappture/man/Rappture-package.Rd

    r2709 r3741  
    3131~~ Literature or other references for background information ~~
    3232}
    33 ~~ Optionally other standard keywords, one per line, from file KEYWORDS in ~~
    34 ~~ the R documentation directory ~~
    3533\keyword{ package }
    3634\seealso{
  • trunk/lang/R/Rappture/src/RpLibraryRInterface.cc

    r3177 r3741  
    2424rp_lib_finalizer(SEXP ptr)
    2525{
    26     RpLibrary* lib = NULL;
    2726    if (!R_ExternalPtrAddr(ptr)) {
    2827        return;
    2928    }
    30     lib = (RpLibrary *) R_ExternalPtrAddr(ptr);
     29#ifdef notdef
     30    /* Until we figure this out, don't delete the library object.  R is
     31     * calling the finalizer on every method of the library object.  This is a
     32     * problem only if someone explicitly deletes the library object from
     33     * R. */
     34    RpLibrary* lib;
     35    lib = (RpLibrary *)R_ExternalPtrAddr(ptr);
    3136    if (lib != NULL) {
    3237        delete lib;
    33         lib = NULL;
    34     }
     38    }
     39#endif
    3540    R_ClearExternalPtr(ptr);
    36 
    3741}
    3842
     
    9296    SEXP path)              // null terminated path
    9397{
    94     RpLibrary* lib = NULL;
     98    RpLibrary* lib;
    9599    SEXP ans;
    96100    int handleVal = -1;
     
    123127
    124128    lib = (RpLibrary*) getObject_Void(handleVal);
    125 
    126129    if (lib == NULL) {
    127130        error("invalid Rappture Library Object");
Note: See TracChangeset for help on using the changeset viewer.