Commit Graph

560 Commits

Author SHA1 Message Date
Maurilio Longo
bd80e8d997 2001-07-18 09:06 GMT+2 Maurilio Longo <maurilio.longo@libero.it>
* source/rtl/tbrowse.prg
     + activated scoping
   * include/hbapierr.h
     include/hbapiitm.h
     include/hbvm.h
     source/rtl/errorapi.c
     source/vm/hvm.c
     source/vm/itemapi.c
     ! fixed va_start() use or, better, changed it to be compatible with OS/2 EMX GCC
       compiler which REQUIRES that va_start() calls use a type which cannot be promoted
       to something bigger. That is, this call is correct:
       va_start(valist, ulUnsignedLongType)
       while this one is not:
       va_start(valist, usUnsignedShortType)
       Using a type which can be promoted to a bigger one leads to memory corruption.
       I think this requirement could exist even on other ANSI C compilers.
     ! Removed workaround inside hb_itemDo() and hb_itemDoC() to prevent this corruption.
2001-07-18 07:21:03 +00:00
Ron Pinkas
8abc351c51 2001-07-17 18:25 UTC-0800 Ron Pinkas <ron@profit-master.com>
* utils/hbpp/hbpp.c
     * Commented an exit() call in hb_compGenError() to continue processing after an error just like Harbour does.

   * include/hbapi.h
     + Added 2nd parameter BOOL bArg to hb_macroGetValue()

   * include/hbexpra.c
     + Added global BOOL hb_exp_bArgList = FALSE;

   * include/hbexprb.c
     + Added logic to generate HB_P_MACROPUSHARG rather than HB_MACROPUSH when pushed macro is a function call argument.

   * include/hbpcode.h
   * source/compiler/genc.c
   * source/compiler/hbfix.c
   * source/compiler/hbpcode.c
     + Added new HB_P_MACROPUSHARG

   * source/macro/macro.y
     + Added logic to generate an error if macro expression is list, unless servicing an HB_MACROPUSHARG.

   * source/vm/hvm.c
     + Added support for new HB_P_MACROPUSHARG calling hb_macroGetValue() with TRUE for bArg.

   * source/vm/macro.c
     + Added 2nd parameter BOOL bArg to hb_macroGetValue() to signify servicing of HB_P_MACROPUSHARG.

   * contrib/dot/pp.prg
     + Added bSplit 4th paramater to PP_PreProLine() defaulting to .T.. - Calls from PP_PreProFile() set it to .F..
2001-07-18 01:29:53 +00:00
Jean-Francois Lefebvre
5caa7066c1 2001-07-17 21:50 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-07-17 19:46:51 +00:00
Ron Pinkas
6ed48b5b25 2001-07-16 09:45 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/vm/hvm.c
   * source/vm/macro.c
     + Wrapped macro statement support within #ifdef HB_MACRO_STATEMENTS (which is NOT defined).
2001-07-16 16:42:59 +00:00
Ron Pinkas
d8977933fa 2001-07-16 03:40 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/vm/hvm.c
   * source/vm/macro.c
     + Added missing #include "hbpp.h" to resolve strict compiler warnings.
2001-07-16 10:40:24 +00:00
Ron Pinkas
4454fbac5e 2001-07-16 03:00 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/vm/hvm.c
     + Added call to hb_pp_Free() in hb_vmQuit() to release pp tables if loaded by macro evaluation.
2001-07-16 10:03:05 +00:00
Ron Pinkas
6c5369f4f8 2001-07-16 02:45 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/vm/hvm.c
     * Few improvements to recent support for lists in macro expansion

   * source/vm/macro.c
     + Added preprocessing support to hb_macroGetValue()

   * source/compiler/harbour.sly
   * source/compiler/harbour.y
     + Added rules to support MacroVar and MacroExpr as a standalone Statement.
2001-07-16 09:41:28 +00:00
Ron Pinkas
005cee072c 2001-07-15 20:45 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbapi.h
     + Added member iListElements to HB_MACRO structure.

   * source/macro/macro.y
     + Added rules to support a macro of a comma seperated list.

   * source/vm/hvm.c
     + Added: int hb_vm_iFunCalls = 0, *hb_vm_aiMacroListParameters = NULL, hb_vm_iMacroListAllocated
       to support new logic to track number of extra parameters introduced by means of a macro expanded to a list.

   * source/vm/macro.c
     + Added logic to track number of extra parameters introduced by means of a macro expanded to a list.
2001-07-16 03:43:13 +00:00
Jean-Francois Lefebvre
1177052490 2001-07-12 00:40 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-07-11 22:42:17 +00:00
Jean-Francois Lefebvre
0802a42ff6 2001-07-10 01:15 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-07-09 23:13:17 +00:00
Jean-Francois Lefebvre
5e42eeb160 2001-07-10 00:15 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-07-09 22:40:33 +00:00
Antonio Linares
c98c63f0d3 New profiler support functions added 2001-06-30 08:26:43 +00:00
Antonio Linares
31be17356d Added profiler support for functions and procedures 2001-06-30 07:39:36 +00:00
Antonio Linares
87bef70b86 added profiler initialization for new dynamic symbols 2001-06-30 07:19:31 +00:00
Antonio Linares
866d798b98 Profiler support added 2001-06-29 14:56:12 +00:00
Antonio Linares
4aaada42f3 profiler support added 2001-06-29 14:48:08 +00:00
Jean-Francois Lefebvre
84ebe40227 2001-06-26 00:40 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-06-25 22:42:35 +00:00
Ron Pinkas
bafe7aa495 2001-06-24 11:15 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/vm/arrays.c
     ! Fixed but in hb_arrayDel() which caused a GPF by accessing an item beyond the array end.
2001-06-24 18:12:34 +00:00
David G. Holm
6c5d60d9f6 See ChangeLog entry 2001-06-22 11:10 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-22 15:14:51 +00:00
David G. Holm
d5220415d2 See ChangeLog entry 2001-06-21 14:45 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-21 18:49:58 +00:00
David G. Holm
a13ea3a883 See ChangeLog entry 2001-06-20 14:50 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-20 18:55:21 +00:00
Jean-Francois Lefebvre
f91dd188aa 2001-06-18 22:50 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-06-18 20:50:55 +00:00
David G. Holm
035115e687 See ChangeLog entry 2001-06-18 14:10 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-18 18:12:00 +00:00
Jean-Francois Lefebvre
c8398e01a3 2001-06-15 23:35 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-06-15 21:37:14 +00:00
David G. Holm
7dda61c6e2 See ChangeLog entry 2001-06-15 13:55 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-15 17:59:21 +00:00
David G. Holm
cc172e3091 See ChangeLog entry 2001-06-14 17:15 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-14 21:20:43 +00:00
Jean-Francois Lefebvre
85496e9c3d 2001-06-12 21:20 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-06-12 19:23:38 +00:00
Jean-Francois Lefebvre
e3d1d9c674 2001-06-09 09:35 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-06-09 07:51:00 +00:00
Ron Pinkas
8a3b3dc3f2 2001-06-07 18:40 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/vm/hvm.c
     ! Fixed HB_P_MPOPFIELD was poping assgined value pre-maturely, causing "data type error" from RDD when replacing a field using macro.
2001-06-08 01:38:26 +00:00
Jean-Francois Lefebvre
2089356692 2001-06-03 09:35 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-06-03 07:32:42 +00:00
Ron Pinkas
6aaecd70e6 2001-06-01 10:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     + PP_RunArray( asLines, aParams )
     + PP_Exec( aProcedures, aInitExit, nProcId, aParams )
     * Modified all PP_RunXXXX() to use PP_Exec()
     * RP_Comp_Err() now repports source line and line number with the sysntax error.

   * contrib/dot/pp_harb.ch
     + Added Tinterpreter() class
         METHOD New()
         METHOD AddLine( cLine )
         METHOD SetScript( cText )
         METHOD Compile()
         METHOD Run()
         METHOD RunFile( cFile, aParams, cPPOExt, bBlanks ) INLINE PP_Run( cFile, aParams, cPPOExt, bBlanks )
         METHOD ClearRules()
         METHOD InitStdRules()
         METHOD LoadClass()
         METHOD LoadFiveWin()

   * contrib/dot/prgscrpt.prg
     * Modified to demonstrate TInterpreter() syntax.

   * include/hbapi.h
   * source/vm/arrays.c
     * Fixed bug, in hb_stackArrayFromParams() and modified to accept a frame base parameter.

   * source/vm/arrayshb.c
     + Added HB_APARAMS() PRG wrapper to hb_stackArrayFromParams() returning array with passed parameter of the function calling HB_APARAMS()

   * source/rtl/do.c
     * Added required frams base parameter in calls to hb_stackArrayFromParams(). This fix population of oErr:Args if error occurs.
2001-06-01 17:42:09 +00:00
Ron Pinkas
efb9abf69c 2001-05-25 12:20 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     * Few corrections to NextToken() and CompileRule() to match Clipper behaviour regrding decimal point, and decimal numbers.

   * source/pp/ppcore.c
     - Removed unused variable as per compiler warning.

   * source/vm/hvm.c
     ! Fixed HB_P_POPFIELD and HB_P_POPVARIABLE to NOT pop top stack element pre-maturely.
       Item is now pop only after assignment took place. This fixes problem where the FieldPut rutine had to use the stack,
       thus overriding the assigned item.
2001-05-25 19:18:50 +00:00
Jean-Francois Lefebvre
df0469310e 2001-05-21 21:35 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-21 19:48:54 +00:00
Jean-Francois Lefebvre
7a15d4b230 2001-05-21 07:20 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-21 05:20:23 +00:00
Jean-Francois Lefebvre
bcf30692fc 2001-05-20 23:15 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-20 21:19:12 +00:00
Jean-Francois Lefebvre
348e31507c 2001-05-15 20:15 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-15 18:15:51 +00:00
Viktor Szakats
37b052fc7a 2001-05-15 15:02 UTC+0100 Viktor Szakats <viktor.szakats@syenar.hu> 2001-05-15 13:02:07 +00:00
Brian Hays
26cf690f08 2001-05-13 07:55 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-14 02:54:55 +00:00
Jean-Francois Lefebvre
cb8fa099bd 2001-05-13 22:30 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-13 20:30:28 +00:00
Ron Pinkas
88d6d4ea34 2001-05-10 14:40 UTC-0800 Ron Pinkas <ron@profit-master.com> 2001-05-10 22:05:54 +00:00
Jean-Francois Lefebvre
c1bc118679 2001-05-09 00:02 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-08 22:06:38 +00:00
Ron Pinkas
196044b21f 2001-05-07 11:40 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbclass.ch
     ! Added missing parameter to declaration of AddMultiData()

   * source/compiler/harbour.c
     ! Corrected broken Linked-List links in hb_compDeclaredInit()

   * source/compiler/hbpcode.c
     * Minor correction declared parameters checking.

   * source/vm/hvm.c
     + Added complete call stack display to hb_vmRequestCancel()
       /* Cancelling will now show the complete call stack, rather than the not very helpful just current procedure. */
2001-05-07 18:45:55 +00:00
Paul Tucker
8f556a7159 see changelog 2001-5-6 12:00 utc(-500) ptucker@sympatico.ca 2001-05-06 16:04:43 +00:00
Ron Pinkas
ee674c5116 2001-05-02 11:05 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbapi.h
     * Changed HB_NESTED_CLONED to record BaseArray instead of first item.
     * Reverted declaration of hb_arrayClone to use 2nd paramater ( pClonedList ) for futute Thread Safety.

   * source/vm/arrays.c
     * Corrected handling of nested (shared) empty array in hb_arrayClone().
     * Reverted definition of hb_arrayClone() to use 2nd parameter ( pClonedList ) for future Thread Safety.

   * source/vm/arrayshb.c
   * source/vm/classes.c
   * source/vm/hvm.c
     * Added required 2nd parameter ( NULL ) to calls to hb_arrayClone()
2001-05-02 18:36:34 +00:00
Ron Pinkas
c1188f415a 2001-04-28 02:10 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbapi.h
     - Removed 2nd parameter from hb_arrayClone() declaration

   * source/vm/arrays.c
     - Removed 2nd parameter from definition of hb_arrayClone(), added a static s_pClonedList instead.

   * source/vm/arrayshb.c
   * source/vm/classes.c
   * source/vm/hvm.c
     - Removed 2nd parameter from calls to hb_arrayClone()
2001-04-28 21:26:43 +00:00
Antonio Linares
6ee9f5b25a __VMSTKLCOUNT( <nProcLevel> ) now accepts a nProcLevel param 2001-04-26 11:57:14 +00:00
Antonio Linares
1e409d6b69 __VMPARLLIST( <nProcLevel> ) enhanced to accept a proclevel 2001-04-25 18:07:00 +00:00
Ron Pinkas
103ed2fab3 2001-04-18 01:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/vm/arrays.c
     ! Corrected a minor typo, that could cause some un-released memory on some occasions.
2001-04-18 08:34:37 +00:00
Ron Pinkas
11435cf83e 2001-04-17 19:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbapi.h
     * Removed 3rd paramater from declaration of hb_arrayClone().

   * source/vm/arrays.c
     ! Optimized and improved hb_arrayClone().

   * source/vm/arrayshb.c
   * source/vm/classes.c
   * source/vm/hvm.c
     * Changed calls to hb_arrayClone() to remove no longer needed, 3rd parameter.
2001-04-18 06:52:00 +00:00
Ron Pinkas
e21cb2b118 2001-04-17 19:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbapi.h
     + Added typedef struct HB_NESTED_CLONED
     * Changed declaration of hb_arrayClone to hb_arrayClone( PHB_ITEM pArray, PHB_NESTED_CLONED pClonedList, BOOL *bCyclic )

   * source/vm/arrays.c
     ! Fixed hb_arrayClone() to correctly clone any array including RELATIVE Ciclic Referncing of any level.

   * source/vm/arrayshb.c
   * source/vm/classes.c
   * source/vm/hvm.c
     * Changed calls to hb_arrayClone() to pass 2 additional NULLs as 2nd. and 3rd. parameters.
2001-04-18 02:28:39 +00:00