151 Commits

Author SHA256 Message Date
c822c80bd8 Use my local rpath, for now...
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
There's a lot of crashes I now have to debug.  Checkpointing
here to setup for some bisects...
2025-10-01 04:06:46 -04:00
df115abfbd Startup options simplified. 2025-10-01 03:52:01 -04:00
92b9b057dd Fix a crash with string trimming. 2025-10-01 03:39:43 -04:00
40a342d4e3 No external form deletion. 2025-09-27 18:37:26 -04:00
af3a57620d The http socket descriptors should be C++ deleted. 2025-09-27 18:34:38 -04:00
8356c017e1 Isolate a few more string leakage cases. 2025-09-27 18:18:36 -04:00
c8cfc0f038 IWYU 2025-09-27 18:18:17 -04:00
1bf12c858f String alloc shouldn't convert to std::string.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
As I work through making code use more C++ RAII and such, most
of the work is handling strings, especially temporaries.  As member
variables which manage string memory get turned into `std::string`,
some use cases might wind up leaking memory.  (One was found in
this change.)

By using a non-convertible-to-string result, such accidents should
be avoided.
2025-09-08 13:24:56 -04:00
97baa28f57 Dillo web objects get owned.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
2025-09-08 01:08:49 -04:00
e76b6e78a2 Style Sheet member ownership 2025-09-08 00:47:36 -04:00
77859c704e Track another URL by smart pointer. 2025-09-07 17:52:27 -04:00
412adaa492 Rename getline function to unsafe, to make it greppable.
Now i can trim them one-by-one.
2025-08-23 02:20:05 -04:00
f283391b46 Get some of the last remaining C files into C++
They still need to be fixed up, but they now build with C++.
2025-08-23 02:09:47 -04:00
f6841f59e0 Merge branch 'widget-rewrite-1' into master
* widget-rewrite-1:
  Now it's done.
  Partially done.
  Local RAII
  Requested anchor RAIIed.
  Image owns its alt text.
  Some const correctness in the Java pseudo core.
  Local ownership for font name.
  Fix building with no libjpeg.
2025-08-21 23:38:12 -04:00
92d679e098 Local RAII 2025-08-21 18:11:10 -04:00
e71808d579 Fix building with no libjpeg. 2025-08-21 16:41:30 -04:00
24ec94e5b4 More local ownership
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
2025-08-21 15:46:10 -04:00
d1f5756670 Use standard bool types.
I'm using `stdbool.h` for the few remaining C files.  That will
have to change, soon.
2025-08-21 13:59:12 -04:00
cc657de8fb Fix crash on void(0) javascripts.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
2025-08-20 13:14:01 -04:00
f6eb2ebf87 Ready to start C++ifying a virtual base...
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
2025-08-18 03:13:39 -04:00
871a6e72e1 Another RAII member. 2025-08-18 03:10:56 -04:00
b1e1f8e98e HAnother member RAII'ed. 2025-08-18 02:53:32 -04:00
2d6deff51b Some ownership of the Cache types. 2025-08-18 01:25:20 -04:00
2ce2468007 Start modernizing the cache a bit. 2025-08-17 21:44:49 -04:00
a51b81a970 About text is now C++-ified. 2025-08-17 20:17:59 -04:00
41be8d8c4f Another local string.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
2025-08-12 04:00:21 -04:00
2dd41b440e A lot of string returns made RAII 2025-08-12 03:48:47 -04:00
065edc3fd0 Retire some dStr usage. 2025-08-12 03:25:07 -04:00
d12cf52b73 HTML Object nearly RAII complete. 2025-08-12 03:25:07 -04:00
a02ed91d3b A few assorted cleanups. 2025-08-12 03:25:07 -04:00
b4600db393 A lot of typesafety in the older C UI code.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
More to come.
2025-08-12 02:09:40 -04:00
aa6fdaddb3 Dead code.
0xdeadc0de?
2025-08-11 03:49:40 -04:00
f5a870a207 More local string cleanups. 2025-08-11 03:42:59 -04:00
17b7c8a8dc Another dString retired. 2025-08-11 03:24:48 -04:00
9c4d7b6849 Some string cleanups.
Also, I think I fixed an accidental memory leak I introduced.
2025-08-11 03:02:26 -04:00
2394e7d9f7 Local string. 2025-08-11 02:46:49 -04:00
accecfca20 Another local string. 2025-08-11 02:42:06 -04:00
143f1f7d2d Some string cleanup 2025-08-10 23:14:32 -04:00
47d9c7eaa0 Another SimpleVector down. 2025-08-10 22:49:36 -04:00
6b3eb54b09 Another simple vector down. 2025-08-10 22:37:23 -04:00
3e16e85878 Minor style nit. 2025-08-10 22:27:41 -04:00
82512db44a Start to permeate more ownership. 2025-08-10 17:27:52 -04:00
e65b5e8b86 Smashed another SimpleVector. 2025-08-09 18:08:51 -04:00
0d99c78908 HtmlInput ownership. 2025-08-09 18:03:43 -04:00
f4281aea39 Another simple ownership case.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
2025-08-09 17:55:58 -04:00
0bf153b049 Retire some instanceOf usage.
More can be retired.  Eventually, I think I can eliminate
the poor-man's RTTI in `Identity::Class`.
2025-08-09 05:44:53 -04:00
6ec7e50758 instanceOf now uses RTTI and checks its answer.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
Next I'll just remove it, but this commit lets me
have something in history such that I can fall back to
check for bugs that might get introduced.
2025-08-09 05:27:43 -04:00
eaee41750d Plumb some ownership around. 2025-08-06 03:38:48 -04:00
f3dcd987dc Remove an error in url generation. 2025-08-06 02:07:34 -04:00
d767d052f4 Another local string. 2025-08-06 02:05:58 -04:00