Commit Graph

85 Commits

Author SHA1 Message Date
Patrick Mast
0574e1ab81 Updated build Nr's 1999-06-19 08:56:20 +00:00
David G. Holm
82c78a88f3 See ChangeLog entry 19990618-21:50 EDT David G. Holm <dholm@jsd-llc.com> 1999-06-19 02:58:41 +00:00
Viktor Szakats
1ad06f0e48 *** empty log message *** 1999-06-18 16:27:26 +00:00
Ron Pinkas
ee56fca483 Ron Pinkas corrected spelling of suspicious 1999-06-18 13:13:48 +00:00
Ron Pinkas
7b47c59b9c 19990618-04:35 PST Ron Pinkas <Ron@Profit-Master.com>
* hberrors.h
    +added define WARN_ASSIGN_TYPE and WARN_ASSIGN_SUSPECTED

  * compiler.h
    +added struct STACK_VAL_TYPE *PSTAC_VAL_TYPE

  * harbour.l
    +added support for tokens AS NUMERIC, AS CHARACTER, AS LOGICAL, AS DATE, AS ARRAY, AS OBJECT
    *modified iLine to initialize to 0 rather than 1

  * harbour.y
    +added support for extended variable declaration with strong typing
    +added logic to support warnings on incompatible and suspecious variable assignments
1999-06-18 12:53:11 +00:00
Ryszard Glab
290366a8c3 See Changelog 19990618-07:50 1999-06-18 07:13:23 +00:00
Ron Pinkas
55c69a0a18 19990615-23:20 PST Ron Pinkas <Ron@Profit-Master.com>
* compiler.h
    added member cType to struct VAR
  * harbour.y
    added { iVarScope = VS_MEMVAR; } to PRIVATE, PUBLIC, and PARAMETERS statements to avoid errounous error:
    "declaration follows executable statement"
    added: AliasExp '=' Expression Crlf { /* TODO */ GenPCode1( _POP ); }
    to statement definition to avoid parse error on M->Var = "Value" statments.
    the _POP will balance the stack but the assignment is not implemented yet.
    changed --iLine to iLine in yyerror() to correct errornous line numbers in parase error messages.
    added check for null pointer on few references to pVars->szName

  * hbpp.c, hbpmain.c, hbpint.c
    prefixed messages in all printf() with \n and postfixed with \n until modification to GenWarning() and GenError()
1999-06-18 04:50:48 +00:00
Gonzalo A. Diethelm
5582b1c2c6 ChangeLogTag:Thu Jun 17 11:34:35 1999 Gonzalo A. Diethelm <Gonzalo.Diethelm@jda.cl> 1999-06-17 16:42:52 +00:00
Eddie Runia
7d85392e66 see changelog 1999-06-17 11:25:12 +00:00
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