4 * Revision 1.1 2001/04/04 05:43:37 wang
5 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
7 * Revision 1.3 1999/11/26 09:50:50 bnv
10 * Revision 1.2 1999/03/10 16:55:55 bnv
11 * Corrected, the use of 'ta' and 'tb'
13 * Revision 1.1 1998/07/02 17:16:35 bnv
21 /* ---------------- Ladd ------------------- */
23 Ladd( const PLstr to
, const PLstr A
, const PLstr B
)
28 if (LTYPE(*A
) == LSTRING_TY
) {
30 if (ta
==LSTRING_TY
) Lerror(ERR_BAD_ARITHMETIC
,0);
31 r
= lLastScannedNumber
;
37 if (LTYPE(*B
) == LSTRING_TY
) {
39 if (tb
==LSTRING_TY
) Lerror(ERR_BAD_ARITHMETIC
,0);
40 r
+= lLastScannedNumber
;
46 if ( (ta
== LINTEGER_TY
) && (tb
== LINTEGER_TY
) ) {
48 LTYPE(*to
) = LINTEGER_TY
;
49 LLEN(*to
) = sizeof(long);
52 LTYPE(*to
) = LREAL_TY
;
53 LLEN(*to
) = sizeof(double);