Commit Graph

2011 Commits

Author SHA1 Message Date
David G. Holm
0164bf58ef See ChangeLog entry 2000-06-15 15:00 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-06-15 19:09:17 +00:00
Ron Pinkas
37a0086bd1 2000-06-14 22:37 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcomp.c
     ! Fixed missing CR at EOF of #include file, causing #line directive to be on same line with the next line in parrent file.
     ! Big Improvment of line numbering of #line directive - almost identical to Clipper - to be continued.
2000-06-15 05:41:55 +00:00
Jean-Francois Lefebvre
06fd917ea2 2000-06-14 23:23 UTC+0200 JfL&RaC <jfl@mafact.com> <rac@mafact.com> 2000-06-14 21:29:33 +00:00
David G. Holm
c8c8bfab40 See ChangeLog entry 2000-06-14 15:30 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-06-14 19:32:13 +00:00
Ron Pinkas
6343384017 2000-06-14 10:00 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     ! Fixed getExpReal() to terminate on unbalanced ')'
2000-06-14 17:06:33 +00:00
Ignacio Ortiz de Zuniga
d299208af1 *** empty log message *** 2000-06-14 11:02:22 +00:00
Luiz Rafael Culik
193f05a349 *** empty log message *** 2000-06-14 01:14:18 +00:00
Luiz Rafael Culik
27ab6c7d1c *** empty log message *** 2000-06-14 00:56:33 +00:00
Luiz Rafael Culik
db33ebffce See changelog 20000613-21:20 GMT -3 2000-06-14 00:28:50 +00:00
Luiz Rafael Culik
c5e8808773 See changelog 20000613-21:20 GMT-3 2000-06-14 00:20:50 +00:00
Jean-Francois Lefebvre
def7c89af5 2000-06-13 22:47 UTC+0200 JfL&RaC <jfl@mafact.com> <rac@mafact.com>
2000-06-13 22:47 UTC+0200 JfL&RaC <jfl@mafact.com> <rac@mafact.com>
2000-06-13 20:46:32 +00:00
Ryszard Glab
aae392a7ef ChangeLog 2000-06-13 19:55 UTC+0100 2000-06-13 17:51:13 +00:00
Ron Pinkas
5a862c6043 2000-06-13 08:08 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcomp.c
     ! Minor correction - There should be no empty lines between #line directive any more.
2000-06-13 15:08:08 +00:00
Ron Pinkas
1738f03fce 2000-06-13 03:00 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* makefile.bc
     + Added ppcomp.c and ppcore.c to list of harbour.exe dependencies.

   * source/pp/ppcore.c
   * source/compiler/harbour.y
     ! Corrected initialization of pFile->iLine to 1

   * source/pp/ppcomp.c
     ! Fixed redundnant empty lines generation and line numbering.
2000-06-13 10:08:22 +00:00
David G. Holm
5511c0fe38 See ChangeLog entry 2000-06-12 20:25 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-06-13 00:28:38 +00:00
Maurilio Longo
34e36a29ef 20000612-23:10 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-06-12 21:09:59 +00:00
Jean-Francois Lefebvre
1370a9b74c 2000-06-12 21:47 UTC+0200 JfL&RaC <jfl@mafact.com> <rac@mafact.com> 2000-06-12 19:40:17 +00:00
Jean-Francois Lefebvre
567e3b3961 2000-06-12 17:20 UTC+0200 JfL&RaC <jfl@mafact.com> <rac@mafact.com> 2000-06-12 15:23:23 +00:00
Ryszard Glab
9185eeb220 ChangeLog 2000-06-12 16:55 UTC+0100 2000-06-12 14:53:23 +00:00
Ryszard Glab
b58aaa9a88 ChangeLog 2000-06-12 16:00 UTC+0100 2000-06-12 13:54:31 +00:00
Ryszard Glab
bc1ffaa562 ChangeLog 2000-06-12 15:40 UTC+0100 2000-06-12 13:37:08 +00:00
Ron Pinkas
cfedfaf3f2 2000-06-11 23:30 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
source/compiler/harbour.c
     * hb_compCompile() Added Clipper like message showing how many parse errors found.
     * hb_compAutoOpen() added 2nd paramter pointer to bSkipGen of caller (hb_compCompile()).
       Added logic to not "remember" hb_comp_bAnyWarning and hb_comp_iErrorCount from previous parsings.
2000-06-12 06:41:50 +00:00
Ron Pinkas
4b20bace29 2000-06-11 21:30 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* include/hbcomp.h
     * Enclosed declarations of functions to support in-line nested compilation within #ifdef HB_NESTED_COMPILE

   source/compiler/harbour.y
     * Enclosed functions to support in-line nested compilation within #ifdef HB_NESTED_COMPILE
     * Changed rules for DO ... to add name of module to hb_comp_pAutoOpen linked list.
     + Added hb_compAutoOpen() - Parses the needed externals when -m not specified
     - Defed out hb_compYACCMAIN() (#if 0) - no longer needed, moved logic into hb_compCompile() and hb_compAutoOpen()

   source/compiler/harbour.l
     + Added #define YY_USER_ACTION ... to fix Flex problem with ^ (BOL RegExp)
     * Enclosed functions to support in-line nested compilation within #ifdef HB_NESTED_COMPILE

   source/compiler/harbour.c
     * Enclosed functions to support in-line nested compilation within #ifdef HB_NESTED_COMPILE
     * Modified hb_compCompile() to support future in-line nested compilation, and defed it out.
     * Changed hb_compCompile() to call hb_compAutoOpen() for modules called in DO ... that are not defined in main prg.
     ! Completed -m support, by default directives in external opened modules will be avialable to subsequent externals.
       this feature is defed out if strict compatibilty ise selected.
2000-06-12 04:50:50 +00:00
April White
36820dbe62 *** empty log message *** 2000-06-10 18:10:50 +00:00
Luiz Rafael Culik
ce9027faa2 See changelog 20000610-05:50 GMT -3 2000-06-10 08:47:42 +00:00
David G. Holm
029dc75434 See ChangeLog entry 2000-06-09 15:30 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-06-09 19:49:09 +00:00
David G. Holm
3e36a6ea4b See ChangeLog entry 2000-06-09 15:30 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-06-09 19:39:24 +00:00
Ron Pinkas
f4a4d1f980 2000-06-07 22:50 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* include/hbpp.h
  * source/compiler/harbour.c
  * source/pp/ppcore.c
    * Modified hb_pp_SetRules() to receive 2nd parameter BOOL hb_comp_bQuiet, since ppcore is part of PP.lib which is linked
      into HBRUN.exe which does not include harbour.c where hb_comp_bQuiet is defined.

  * source/compiler/harbour.l
    ! Fixed parse error on IF [...]

  * source/vm/classes.c
    Posted patch provided by JF

  * source/rtl/tobject.prg
    Posted missing file provided by JF
2000-06-09 06:59:56 +00:00
Lubos Janica
d7198df0a4 2000-06-09 08:15 UTC+0100 Lubos Janica <janica@fornax.sk>
* source/rdd/dbfntx1.c
    	After this change we can create indexes. And they working with Clipper !
	But this isn't optimized.
      * Module initialization for other then GNU compilers
      + static ERRCODE hb_ntxPageKeyAdd( LPPAGEINFO pPage, PHB_ITEM pKey, int level)
      + static ERRCODE hb_ntxPageKeyInsert( LPPAGEINFO pPage, PHB_ITEM pKey, int pos )
      + static int hb_ntxItemCompare( PHB_ITEM pKey1, PHB_ITEM pKey2 )
      + static ERRCODE hb_ntxPageAddPageKeyAdd( LPPAGEINFO pPage, PHB_ITEM pKey, int level, int pos )
2000-06-09 06:21:24 +00:00
Maurilio Longo
1a4bdf7427 20000608-22:10 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-06-08 20:08:37 +00:00
Ron Pinkas
52c70a7db3 2000-06-07 22:50 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/harbour.c
     * main() Moved calls to hb_pp_init() to hb_pp_SetRules() in ppcore.c to avoid redefinition of standard defs.

   * source/pp/ppcore.c
     * hb_pp_SetRules() Moved calls to hb_pp_init() from main() in Harbour.c to avoid redefinition of standard defs.
     ! Minor fixes to warnings and errors.
2000-06-08 05:50:09 +00:00
Ron Pinkas
e5f03d9691 2000-06-05 19:50 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     * Changed hb_pp_SetRules() to only always default to .CH extension, if file name supplied without extension.
     ! Converted some printf() messages to standard warnnings and errors.

   * include/hberrors.h
     + Added:
		#define HB_PP_ERR_CANNOT_OPEN_RULES             15
		#define HB_COMP_ERR_BAD_RULES_FILE_NAME         16

		#define HB_PP_WARN_NO_DIRECTIVES                2
2000-06-08 04:45:13 +00:00
Jean-Francois Lefebvre
17d0cd1fb7 see 2000-06-07 22:42 UTC+0200 JFl&RaC <jfl@mafact.com>,<rac@mafact.com>
see 2000-06-07 22:42 UTC+0200 JFl&RaC <jfl@mafact.com>,<rac@mafact.com>
see 2000-06-07 22:42 UTC+0200 JFl&RaC <jfl@mafact.com>,<rac@mafact.com>
2000-06-07 20:53:08 +00:00
Lubos Janica
949a0d6027 2000-06-07 21:51 UTC+0100 Lubos Janica <janica@fornax.sk>
* source/rdd/dbfntx1.c
     Begin of implementation ntx driver. It's not working !
       + static ERRCODE ntxOrderCreate( AREAP pArea, LPDBORDERCREATEINFO pOrderInfo );
       + static ERRCODE ntxOrderInfo( AREAP pArea, USHORT uiIndex, LPDBORDERINFO pInfo );
       + static ERRCODE ntxOrderListAdd( AREAP pArea, LPDBORDERINFO pOrderInfo );
       + static ERRCODE ntxOrderListClear( AREAP pArea );
       + static ERRCODE ntxClose( AREAP pArea );
       + some internal funcitons
2000-06-07 19:58:38 +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
743e74b93c 2000-06-05 19:50 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     * Changed hb_pp_SetRules() to only default to .CH extension, if file name as supplied without extension was not found.
     ! Improved Messages to report various possible conditions.
2000-06-06 02:51:06 +00:00
Antonio Linares
bd14fd408c 2000-06-05 14:52 GMT+1 2000-06-05 12:52:06 +00:00
Ron Pinkas
d19e6ae858 2000-06-04 17:35 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     ! Corrected compiler warning
     ! Corrected @ after ; missing trailing space.
2000-06-05 00:37:14 +00:00
Ron Pinkas
1dbf8d3fcc 2000-06-04 11:16 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcomp.c
   * source/pp/ppcore.c
     ! Corrected compiler warnings
2000-06-04 18:47:53 +00:00
Ron Pinkas
9309b9f3c5 2000-06-04 09:40 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     * Changed case of '@' in hb_pp_RdStr() to only add missing space when in the begining of a new line.
2000-06-04 16:42:03 +00:00
Ron Pinkas
29eb8c65fa 2000-06-04 03:35 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     * Commented fix 2000-06-02 14:45 UTC-0800 Ron Pinkas <Ron@Profit-Master.com> until more complete solution
2000-06-04 10:52:40 +00:00
Ron Pinkas
d4785143b3 2000-06-04 03:30 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     * Corrected error message in SetRules() to report filename with default extension.
2000-06-04 10:33:56 +00:00
Ron Pinkas
fa68f5d2d8 2000-06-04 03:25 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     * Added \n to error message in SetRules()
2000-06-04 10:26:54 +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
f85f1fa13c 2000-06-03 13:36 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-06-03 11:33:06 +00:00
Viktor Szakats
fb2863f778 2000-06-03 10:53 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-06-03 08:49:29 +00:00
Viktor Szakats
25879cbf80 2000-06-03 01:13 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-06-03 08:38:45 +00:00
Ron Pinkas
dc5211fc52 2000-06-02 14:45 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     ! Added logic to CommandStuff() to fix problem with Keyword or Match Marker are matched after non provided multiple optional patterns.
2000-06-02 21:57:13 +00:00
Viktor Szakats
7b24fd3601 2000-06-02 19:56 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-06-02 17:53:00 +00:00
Ron Pinkas
4c2db1057e 2000-06-02 02:05 UTC-0800 Ron Pinkas <Ron@Profit-Master.com>
* source/pp/ppcore.c
     ! Added logic to hb_pp_RdStr() to fix problem with Macro Terminator (.) without a macro suffix.
2000-06-02 09:09:18 +00:00