Commit Graph

76 Commits

Author SHA1 Message Date
Alexander S.Kresin
e34fddc458 Harbour.y 1999-06-16 10:24:31 +00:00
Ron Pinkas
449e685a1f 19990615-23:20 PST Ron Pinkas <Ron@Profit-Master.com>
* compiler.h
    added member iUsed to struct VAR
  * hberrors.h
    added define of codeblock parameter not used warning
  * harbour.y
    removed PDECLARED_VAR struct definition
    removed code to maintain FunVars list
    added code to GetVarPos() to reflect use of declared variable
    added logic to FixReturns() and CodeBlockEnd() to generate warnings on non used decalred vaiables
    removed previous version of nonused declared variables warnings from FunDedf() and {Main}
1999-06-16 07:40:40 +00:00
Eddie Runia
520607e094 see changelog 1999-06-15 20:09:18 +00:00
David G. Holm
660be190e7 See ChangeLog entry 19990615-12:30 EDT David G. Holm <dholm@jsd-llc.com> 1999-06-15 17:36:20 +00:00
Alexander S.Kresin
c59fb2106b Preprocessor integrated with compiler 1999-06-15 08:30:28 +00:00
Ryszard Glab
f9ef0a8ec6 See ChangeLog 19990615-08:30 1999-06-15 07:36:15 +00:00
Ryszard Glab
6bef4798f3 See ChangeLog 1990615-07:00 1999-06-15 06:14:45 +00:00
Eddie Runia
fc2201a766 see changelog 1999-06-14 10:57:36 +00:00
Ron Pinkas
90afad3419 19990612 10:57 PST Ron Pinkas
* source/compiler/harbour.y
        Added check on non used variables to be done at the end of source file so last         function will be tested too.
1999-06-12 19:25:51 +00:00
Patrick Mast
618121c5be release Build 26 1999-06-12 10:36:48 +00:00
Ron Pinkas
c51b0028ad Fri Jun 11 1999 19:35 PST Ron Pinkas
* source/compiler/harbour.y
        Moved code to check non used declared variable from GenReturn() to FunDef()
        Since Clipper function may have multiple RETURN statements
1999-06-12 06:13:28 +00:00
Gonzalo A. Diethelm
f231fe5dca ChangeLogTag:Fri Jun 11 19:14:22 1999 Gonzalo A. Diethelm <Gonzalo.Diethelm@jda.cl> 1999-06-12 00:22:06 +00:00
David G. Holm
bc9cbd58c8 See ChangeLog entry 19990610-22:35 EDT David G. Holm <dholm@jsd-llc.com> 1999-06-11 03:43:22 +00:00
David G. Holm
4f310a1ac4 See ChangeLog entry 19990610-18:05 EDT David G. Holm <dholm@jsd-llc.com> 1999-06-10 23:11:45 +00:00
Ron Pinkas
85b04f0bc3 19990607-03:05 PST Ron Pinkas
* include/hberrors.h
    added WARN_VAR_NOT_USED
  * source/compiler/harbour.y
    added warning message "Variable \'%s\' declared but not used in function: %s"
    added linked list FunVars to record the usage of declared variables
    added logic to maintain FunVars
    added logic to check usage as per FunVars in GenReturn()
1999-06-07 11:15:02 +00:00
Ron Pinkas
ef155a77f6 19990606-16:42 PST Ron Pinkas
* include/hberrors.h
    added define WARN_AMBIGUOUS_VAR 1
    added declaration for new function GenWarning()
  * source/compiler/harbour.y
    added _szWarnings[] to include parse warning messages
    added function GenWarning()
    added /w compiler switch to enable warnings
    added warning message for ambiguous vars
1999-06-07 00:54:05 +00:00
Eddie Runia
034408e794 see changelog 1999-06-06 14:27:33 +00:00
Eddie Runia
00bff7c9b8 See changelog 1999-06-06 13:00:02 +00:00
Patrick Mast
9ba2e83606 19990604-14:14 CET Patrick Mast
* source/rtl/set.c
    Removed #include <sys\stat.h>
  * source/rtl/files.c
    Removed #include <sys\stat.h>
  * source/compiler/harbour.y
    Put in the build Nr.
1999-06-05 13:56:18 +00:00
Eddie Runia
db88bbf305 see changelog 1999-06-05 10:51:34 +00:00
Eddie Runia
ae751e58e9 see changelog 1999-06-04 16:28:05 +00:00
Ryszard Glab
baf69575ea See ChangeLog 19990604-02:22 rglab@imid.med.pl 1999-06-04 01:28:58 +00:00
David G. Holm
c006802c61 See ChangeLog entry 19990603-14:00 EDT David G. Holm <dholm@jsd-llc.com> 1999-06-03 19:06:55 +00:00
Eddie Runia
33f62c99ae see changelog 1999-06-03 14:34:16 +00:00
Eddie Runia
0e7f54fac9 see changelog 1999-06-03 10:44:41 +00:00
David G. Holm
23afd6ee0a See ChangeLog entry 19990602-23:30 EDT David G. Holm <dholm@jsd-llc.com> 1999-06-03 04:32:26 +00:00
David G. Holm
8cf924a706 See ChangeLog entry 19990601-12:00 EDT David G. Holm <dholm@jsd-llc.com> 1999-06-01 17:07:15 +00:00
Ron Pinkas
ca31045bcf June 1st. 1999 00:30 Ron Pinkas
Harbour.y -> modified pcode generation to move the push of the counter variable to         the NEXT rather than the FOR
        so loop code may manipulate the counter vaiable.

        TEST/WORKING/TestFor.prg -> added this file
1999-06-01 08:40:05 +00:00
Ron Pinkas
1ea510929f May 31, 1999 Ron Pinkas
Harbour.l added support for "[String]" inside ARRAY INDEX expressions
        Added "Sysntax error :" message for the macro operator (&)
        when followed by a string delimiter.
1999-06-01 03:09:08 +00:00
Eddie Runia
9e8e6d82d5 see changelog 1999-05-31 22:12:30 +00:00
Ron Pinkas
d5113a52ed May 31, 1999 Ron Pinkas
Harbour.l modified {Array} and added {FunArray} and {ExpArray}.
        To fix support of <INDEX> state to be recusive as well as support:
        Function()[nIndex].

        /TESTS/WORKING/ArrIndex.prg added this file.

        /TESTS/BROKEN/FuncArr.prg added this file to show:

       // This is NOT working?
       QOut( aFunc()[1]

       // But this IS working!
       a := aFunc()
       QOut( a[1] )
1999-05-31 19:57:48 +00:00
Ryszard Glab
c0e5bd6e10 See ChangeLog 19990527-00:40 1999-05-26 23:59:30 +00:00
Eddie Runia
d972547fbe See changelog 1999-05-22 13:19:37 +00:00
David G. Holm
f34cf412e7 See ChangeLog entry 19990520-19:35 EST David G. Holm <dholm@jsd-llc.com> 1999-05-21 00:41:27 +00:00
Gonzalo A. Diethelm
935a8d3b4b ChangeLogTag:Thu May 20 16:03:24 1999 Gonzalo A. Diethelm <Gonzalo.Diethelm@jda.cl> 1999-05-20 21:14:39 +00:00
Ron Pinkas
c306542777 May 20, 1999 Ron Pinkas
Harbour.l
   Corrected problem with Array[ OtherArray[n] ]
   Changed {Array} to <INITIAL>{Array} to eliminate recusrion in state INDEX.
1999-05-20 08:48:12 +00:00
Ron Pinkas
4ed2ebdd98 May 19, 1999 Ron Pinkas
corrected problem with "[]" String Delimiters conflict with array names of reserved words (next, while, etc.)

Please note to check i_INDEX_STATE before a "BEGIN 0;" as in the followings:

if( iINDEX_STATE ) BEGIN INDEX; else BEGIN 0;
1999-05-20 07:27:30 +00:00
David G. Holm
c4d3c89a85 See ChangeLog entry 19990519-21:40 EST David G. Holm <dholm@jsd-llc.com> 1999-05-20 02:44:48 +00:00
Ryszard Glab
d3d9e6062a see ChangeLog 19990520-01:40 1999-05-20 00:47:57 +00:00
Eddie Runia
d484e5e22e See change log 1999-05-19 11:55:04 +00:00
David G. Holm
ed21ac4d0f See ChangeLog entry 19990518-23:15 David G. Holm <dholm@jsd-llc.com> 1999-05-19 04:19:53 +00:00
Ryszard Glab
4807d53a0e See ChangeLog 19990519-02:45 1999-05-19 01:45:52 +00:00
David G. Holm
30d485d211 See ChangeLog entry 19990518-18:00 David G. Holm <dholm@jsd-llc.com> 1999-05-18 23:07:30 +00:00
Eddie Runia
c221fbb9f7 HRB production added + runner.
Removed old file in tests/broken.
1999-05-18 22:50:12 +00:00
Ron Pinkas
00774e4ae6 May 18 1999 Ron Pinkas added support for [] String Delimiters.
Please note {String} definition needed to be removed. Seem to only be used in <DEFINE> will probably be resolved by the Pre Processor any way.

Also found and corrected tranctuation of string literals.
In the last 3 weeks someone changed the following to have yytext + 1 and yyleng - 2.
I reverted it back to yytext and yyleng - 1 respectivly.

<STRING1>[^']*'   { BEGIN 0; yylval.string = strdup( yytext );
                    yylval.string[ yyleng - 1 ] = 0; return LITERAL; }
<STRING2>[^\"]*\" { BEGIN 0; yylval.string = strdup( yytext );
                    yylval.string[ yyleng - 1 ] = 0; return LITERAL; }
<STRING3>[^\]]*\] { BEGIN 0; yylval.string = strdup( yytext );
                    yylval.string[ yyleng - 1 ] = 0; return LITERAL; }

Removed from bld32exe.bat refrences to -mh and -F (invalid options).
Also removed refrences to HBTOOLS.LIB (non existed).
1999-05-18 08:57:39 +00:00
Ryszard Glab
d760c43c3a See ChangeLog 19990518-03:05 1999-05-18 02:08:10 +00:00
Ryszard Glab
1c40a309b6 See ChangeLog: 19990518-01:45 <rglab@imid.med.pl> 1999-05-18 00:55:30 +00:00
Ryszard Glab
f31866fc90 See ChangeLog: 19990516-07:04 1999-05-16 06:31:14 +00:00
Eddie Runia
adf88adf4b Return error removed 1999-05-15 15:22:28 +00:00
Eddie Runia
89ccd59b97 Let this work 1999-05-15 00:14:45 +00:00