Przemyslaw Czerpak fa7562e992 2009-10-27 11:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/xhbarr.c
    + added XHB_AINS(), XHB_ADEL() functions which accept negative indexes.
      Warning I haven't replicated xHarbour bugs in AINS() so it's not
      exactly the same. Sooner or later someone will fix AINS() code in
      xHarbour CVS. This code illustrates the problem and also
      incompatibilities with Clipper:
         #ifdef __HARBOUR__
            #ifndef __XHARBOUR__
               #xtranslate adel(<x,...>) => xhb_adel(<x>)
               #xtranslate ains(<x,...>) => xhb_ains(<x>)
            #endif
         #endif
         proc main()
            local a := { 100, 200, 300 }
            ? ; aeval( a, { |x| qout( x ) } )
            adel( a, -1, .t. )
            ? ; aeval( a, { |x| qout( x ) } )
            ains( a, -1, 400, .t. )
            ? ; aeval( a, { |x| qout( x ) } )
            ains( a )
            ? ; aeval( a, { |x| qout( x ) } )
         return
2009-10-27 10:51:37 +00:00
Description
Harbour Core — Reference source for Five development
172 MiB
Languages
C 80.3%
xBase 17.8%
Makefile 0.6%
C++ 0.4%
Harbour 0.4%
Other 0.3%