Commit graph

9 commits

Author SHA1 Message Date
Kenny Root
1086e7374d Add bitwise operators
Add in bitwise AND ".&.", OR ".|.", and XOR ".^."

Add arithmetic left shift "<<", arithmetic right shift ">>",
and logical right shift operators ">>>"

This retains the original parsing of something like "9.^.5" to be
interpreted as "square root of 9"  However, "9.^. 5" is interpreted as
"9 XOR 5".

( The number parsing code moving to parse_number() is the only
  significant change in adapting this extension to the new server;
  the original behavior of the extension is retained in this commit
    --wrog )

Change-Id: I99291bed3d07d68ced204ea27bf684dc09a861fc
2025-09-30 23:04:53 -07:00
H. Peter Anvin
495cd63da7 Propagate Num everywhere (3b / Type handling cleanup)
this subphase:  Do all of the int(32_t)->Num retypings.

!(- use C99-like macros for printf)
!(- use [u]int*_t types (autoconf can verify they exist))
- abstract Num and Objid out
- default to 64 bit integers
!(- un-pointerify floating-point numbers (makes no sense on modern hardware))
2025-09-30 23:03:42 -07:00
Roger Crew
fdeb879334 normalize .h wrappers
really need to be sure .h files are not getting multiply included
(I had thought this was already best-practice from the K&R days).

new rules for forming the symbol from the filename:
(1)  capitalize each word of the filename,
(2)  final 'H' is capitalized
  ... *unless* the rest of the filename is an initialism (AST, DB)
  which would make the resulting symbol all-caps (AST_H, DB_H)
  which we do not want (since it might collide with something real)
  so use a small 'h' in those cases (AST_h, DB_h)
(3) make sure this preprocessor symbol is used *NOWHERE* else.

    --wrog
2025-09-29 00:44:47 -07:00
Roger Crew
0cc95c3f6c remove trailing whitespace, fix comment weirdness, Makefile refill 2024-12-30 03:04:09 -08:00
Roger Crew
bd0aa66cf0 cvs log keep PARC entries only
All of the Sourceforge-era log entries are in git
so there's no point to having them repeated in the files.
2024-12-30 03:02:52 -08:00
xplat
45ec5a4295 GNU indent normalization. 2002-09-15 23:21:01 +00:00
nop
c8db442950 Merge UNSAFE_OPTS (ref fixups); fix Log tag placement to fit CVS whims 1998-12-14 13:17:26 +00:00
nop
9cf5366eb0 GNU Indent normalization 1997-03-03 04:18:21 +00:00
nop
a515162931 Initial revision 1997-03-03 03:44:59 +00:00