Commit graph

12 commits

Author SHA1 Message Date
Roger Crew
324cf46237 WAIF_CORE ifdef festival 2025-09-30 23:04:53 -07:00
Roger Crew
e256355d9b unicode-waif from codepoint
This commit is the substantive portion of the Waif implementation.
The combination of this commit with its parent
(add back waif-related cvs log comments)
is intended to match either of the differences:

  codepoint/unicode (51761cdc98)
  ..codepoint/unicode-waif (8f892adbf7b6a5973c3268942087584eb01242f1)
  codepoint/unicode-xml (67aa153f76bcdbd9917bdf57fd380d9e7ffb419e)
   ..codepoint/unicode-waif-xml( c3d6fa5e58e358a0a75662a6ddaaecab4d39f306)

(these are both essentially the same) except for those files for which
the only differences are in the CVS log entries.

This version is purposefully broken (in order that the differences
line up as well as possible), notably in execute.c
(OP_INDEXSET,OP_REF,OP_CALL_VERB).
2025-09-30 23:04:53 -07:00
Roger Crew
211c5fb608 abstract memory models for byte quota (BYTE_QUOTA_MODEL)
so that you can now have value_bytes()/object_bytes() pretend that
integers are 32 or 64 bits or whatever else you want.
2025-09-30 23:04:53 -07:00
Roger Crew
0e0d6bf8e1 config.h must be first!!! options.h must be second!!!
Time to impose some discipline on #include header ordering:

(1) We need to be absolutely certain everybody is seeing
    the SAME #define settings from config.h and options.h
    (so many of the my_foo.h depend on config.h settings
    and yet config.h was being listed later.  how did this happen?)

(2) It REALLY helps for documentation and code comprehension
    to have .c files clearly point to the .h files that
    export their interfaces (usually it's the like-named .h
    but sometimes it is not and this can be confusing to
    the newbie maintainer)

So... new rules:

For .h files:
  config.h if referenced, goes FIRST.
  options.h if referenced, goes SECOND.

For .c files the ordering of #includes shall be:

(1) The .h file(s) defining the exported interfaces
    that this .c file is implementing
    (typically this will be just one file, foo.h
     if this is foo.c, but exceptions exist)

(2) config.h, then options.h, in a stanza by themselves
    if referenced and not already included by (1)

For both .c and .h files we then have two more stanzas:

(3) system headers,
    including the "my-foo.h" corrective headers.

(4) own headers, other than the ones that go in (1)

Except for special cases like net_proto.c and net_mplex.c
where the whole purpose of the file is to BE an #include festival,
there should be no further #includes after the initial block.
All includes should appear at the top of the file where we can see them.

... ok, I'm done.
2025-09-29 00:44:47 -07:00
Roger Crew
32dd7127d5 function prototype and missing header fixes 2025-09-13 14:53:30 -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
bjj
cc1f9810f4 Add new MEMO_STRLEN option which uses the refcounting mechanism to
store strlen with strings.  This is basically free, since most string
allocations are rounded up by malloc anyway.  This saves lots of cycles
computing strlen.  (The change is originally from jitmoo, where I wanted
inline range checks for string ops).
2006-09-07 00:55:02 +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
4e8941e8c2 Merge UNSAFE_OPTS (r5) after extensive testing. 1997-07-07 03:24:53 +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