Commit Graph

36 Commits

Author SHA1 Message Date
Ron Pinkas
3af6268daf Minor formatting 2001-02-11 16:27:37 +00:00
Alexander S.Kresin
a8b1b0d28e 2001-02-11 18:22 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-02-11 15:26:12 +00:00
Ron Pinkas
3ad80020bf 2000-11-08 24:10 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/cmdcheck.c
   * utils/hbpp/hbpp.c
     + Added missing type case for C++ compilers.

   * source/compiler/simplex.c
     * Added 1 missing var reset.
2000-11-08 22:10:48 +00:00
Ron Pinkas
28e1134746 2000-11-06 22:10 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/cmdcheck.c
   * utils/hbpp/hbpp.c
     + Added support for complex Command Line #defines

   * source/pp/ppcore.c
     * Renamed ParseDefine() to hb_pp_ParseDefine() and made it public.
2000-11-07 06:10:11 +00:00
David G. Holm
e3c4d1c3d1 See ChangeLog entry 2000-10-05 16:00 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-10-05 20:14:26 +00:00
David G. Holm
31d5180c0a See ChangeLog entry 2000-10-05 15:00 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-10-05 19:10:56 +00:00
Maurilio Longo
6d53f541ed 20000801-21:55 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-08-01 20:03:07 +00:00
Ron Pinkas
6ddbb5b481 2000-08-01 12:10 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/cmdcheck.c
     + Added support for "new style" switches specs, for command line arguments.

     /* Note: */ I did *not* implement same for the Environment Variables parsing.
2000-08-01 19:19:40 +00:00
Ron Pinkas
dfeb227c89 2000-07-31 20:25 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/cmdcheck.c
     + Added support for multiple switches, without seperator, like: -n-w
2000-08-01 03:24:43 +00:00
Viktor Szakats
f1c10aae9d 2000-07-29 03:28 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-07-29 01:39:59 +00:00
Ron Pinkas
31f151b6ae 2000-06-06 20:10 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/cmdcheck.c
      + Implemented support for -m

    * include/hbcomp.h
      + Added structure _HARBVARS to hold Harbour Session Variables
      + Added structure +AUTOOPEN to hold names of external modules already compiled.

    * source/compiler/harbour.c
      + Moved the parsing/compiling logic into new hb_compCompile()
      + Added:
		static void hb_compAutoOpenAdd( char * szName );
		static BOOL hb_compAutoOpenFind( char * szName );
		static void hb_compSaveVars( PHARBVARS, int );
		static void hb_compRestoreVars( PHARBVARS, int );

    * source/compiler/harbour.l
      + Added:
		void * hb_compGet_YY_CURRENT_BUFFER()
		void hb_compSet_YY_CURRENT_BUFFER( void * pBuffer )
		int hb_compGet_yy_init( void )
		void hb_compSet_yy_init( int i )
		int hb_compGet_yy_start( void )
		void hb_compSet_yy_start( int i )
		int hb_compGet_yy_did_buffer_switch_on_eof( void )
		void hb_compSet_yy_did_buffer_switch_on_eof( int i )

     * source/compiler/harbour.y
       + Added logic to call hb_compCompile() when DO ... or DO ... WITH
       + Added:
		void * hb_compGet_pLoops( void )
		void hb_compSet_pLoops( void * pLoops )
		void * hb_compGet_rtvars( void )
		void hb_compSet_rtvars( void * rtvars )

      *	source/compiler/hbusage.c
	+ Added display of -m compiler switch

Please note:

1. Implementation is practicaly completed, but there is one known issue to be resolved: Once we open and compile
   an external module, the very next prg line in the parent prg is not processed, I would love to get some assistance
   with this - Ryszard, Antonio, Victor, Paul? as I am seriously limited with time over this week.
   It seems I am not saving one of Bison/Flex vars, so my restore of the previous session is not complete :-(

2. Clipper seem to have a bug, on the following code:
   DO WHILE WITH ...
   Clipper will attempt to compile external "WITH.PRG" instead of "WHILE.PRG", can any one advise if I am missing something here...
   In our implementation the above line will attemp to compile "WHILE.PRG"
2000-06-07 03:47:47 +00:00
Ron Pinkas
a3a61fd11d 2000-06-04 03:05 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* include/hbcomp.h
     + Added: extern char *        hb_pp_STD_CH;

   * include/hbpp.h
     + Added: extern void hb_pp_SetRules( BOOL (*hb_compInclude)(char *, PATHNAMES * ) );

   * source/compiler/hbusage.c
   * source/compiler/harbour.c
   * source/compiler/cmdcheck.c
     + Added support for -u[FileName]
     - Removed TODO for -u

   * source/pp/ppcomp.c
     + Added hb_pp_ReadRules() - Logic to process directives from user supplied command defs.

   * source/pp/ppcore.c
     + Added hb_pp_SetRules() - Logic to use predefined rules, none, or user defined.

   * source/pp/pptable.c
     + Added hb_pp_Table() - Moved predefined rules into this function, to allow for conditional use.
2000-06-04 10:12:52 +00:00
Viktor Szakats
be81ee127d 2000-05-27 23:12 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-05-28 19:52:03 +00:00
Patrick Mast
da551faae0 Added -? and -h option for the compiler. 2000-05-07 21:35:26 +00:00
Ron Pinkas
a6f92b5008 20000504-23:00 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/cmdcheck.c
     + Added -w4 option for the compiler.
2000-05-05 06:02:37 +00:00
Viktor Szakats
d2a2b542ea 20000501-17:42 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-05-01 15:48:24 +00:00
Viktor Szakats
09bb6f21b2 20000422-16:16 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-22 14:13:56 +00:00
Ron Pinkas
84c34d5733 20000420-23:15 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/cmdcheck.c
     - Removed #ifdef HARBOUR_OBJ_GENERATION

   * source/compiler/genhrb.c
     - Removed unused vars wVar and wLen.

   * source/compiler/genjava.c
     - Removed unused vars wVar and wLen.

   * source/compiler/genobj32.c
     - Removed #ifdef HARBOUR_OBJ_GENERATION

   * source/compiler/harbour.c
     - Removed #ifdef HARBOUR_OBJ_GENERATION
2000-04-21 06:20:38 +00:00
Viktor Szakats
503b9a920e 20000420-23:33 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-20 21:41:47 +00:00
Ron Pinkas
68f8243cbe 20000419-05:30 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/hvm.c
     + Added PCodes HB_P_JAMPSHORT, HB_P_JAMPSHORTFALSE and HB_P_JAMPSHORTTRUE

   * source/compiler/harbour.c
     + Added hb_compOptimizeJumps() - Jumps Optimizer.
     + Added hb_compSort_ULONG() Call back function for qsort - used in the Jump Optimizer.
     + Added support for new elements of _FUNC.
     * Modified hb_compGen*Jump*() to support Short Normal and Far Jumps.

   * source/include/hbexprb.c
     * Reverted handling of .OR. .AND. and IIF() to use default (FAR) JUMPs - note the use of (0) when calling hb_compGenJump*().

   * source/compiler/genc.c
     + Added support for HB_P_JAMPSHORT, HB_P_JAMPSHORTFALSE and HB_P_JAMPSHORTTRUE

   * source/compiler/cmdcheck.c
     + Added support for new switch -J[0|1] default is J1 which enables the Jump Optimizer - Use -J0 to disable.

   * source/compiler/hbgenerr.c
     - Removed following errors:
        "Jump offset too long for HB_P_JUMP needed HB_P_JUMPFAR",
        "Jump offset too long for HB_P_JUMPTRUE needed HB_P_JUMPFARTRUE",
        "Jump offset too long for HB_P_JUMPFALSE needed HB_P_JUMPFARFALSE",

     * Changed "HB_P_JUMPx not found when fixing offset" to "Jump PCode not found"

   * source/include/hberrors.h
     - Removed following defines:
   	#define HB_COMP_ERR_INVALID_JUMPTRUE            46
   	#define HB_COMP_ERR_INVALID_JUMPFALSE           47
   	#define HB_COMP_ERR_JUMP_NOT_FOUND              48

   * source/include/hberrors.h
     + Added following to __FUNC
   	ULONG  * pNOOPs;                 /* pointer to the NOOP array */
   	ULONG  * pJumps;                 /* pointer to the Jumps array */
   	int    iNOOPs;                   /* NOOPs Counter */
   	int    iJumps;                   /* Jumps Counter */

   * source/include/hbpcode.h
     + Added HB_P_JAMPSHORT, HB_P_JAMPSHORTFALSE and HB_P_JAMPSHORTTRUE
2000-04-18 12:41:08 +00:00
Viktor Szakats
bf2a6741b3 20000409-03:48 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-09 02:12:16 +00:00
Viktor Szakats
c58df7356f 20000403-22:20 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-03 20:18:59 +00:00
Viktor Szakats
6b72938dee 20000313-15:57 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-13 15:03:53 +00:00
Viktor Szakats
c69b622588 20000312-16:24 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-12 15:35:54 +00:00
Viktor Szakats
3f335033d4 20000306-13:25 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-06 12:38:23 +00:00
Viktor Szakats
eafad66714 20000306-04:43 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-06 03:43:05 +00:00
Viktor Szakats
c124d2959e 20000302-20:44 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-02 19:49:22 +00:00
Viktor Szakats
3e3819e705 20000302-11:21 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-02 11:58:22 +00:00
Viktor Szakats
7928a16138 20000214-07:50 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-02-14 06:54:30 +00:00
Viktor Szakats
f697073a47 20000213-04:02 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-02-13 03:06:28 +00:00
Ryszard Glab
a28cf6b8b9 ChangeLog 20000116-15:35 GMT+1 2000-01-16 14:23:07 +00:00
Viktor Szakats
da4ec7ce82 19991218-10:35 GMT+1 Victor Szel <info@szelvesz.hu> 1999-12-18 09:37:55 +00:00
Viktor Szakats
9ac4a23deb 19991211-14:51 GMT+1 Victor Szel <info@szelvesz.hu> 1999-12-11 15:03:10 +00:00
Ryszard Glab
7a9444924f ChangeLog 19991209-17:10 1999-12-09 16:15:00 +00:00
Viktor Szakats
ef400b31cb 19991209-01:05 GMT+1 Victor Szel <info@szelvesz.hu> 1999-12-09 01:20:07 +00:00
Viktor Szakats
1a5c7bff79 19991208-18:06 GMT+1 1999-12-08 18:31:36 +00:00