Commit Graph

84 Commits

Author SHA256 Message Date
8c127d1c43 Doesn't build. 2025-04-24 01:29:30 -04:00
aec0331924 Fix bad optional reference.
The client calls still take pointers, for now.

We'll get there...  There's a lot to convert.
2025-04-24 00:29:25 -04:00
265ac2aa9a Another set of local ownership down. 2025-04-24 00:12:13 -04:00
6af638059b A bit closer to RAII on the doctree.
It should be an external vector of ownership...  The recursion
through the stack for deletion has the potential to be a
serious problem.
2025-04-23 20:24:50 -04:00
f702ca398d Doctree owns its root node correctly now. 2025-04-20 01:42:39 -04:00
0dc0938c7f This should be a unique_ptr.
The lower functions already created them so, and I marked them
`release`.  Time to unify.
2025-04-19 02:41:03 -04:00
b5b137c2df Temporary local string "oldlocale". 2025-04-19 02:39:13 -04:00
23d178d472 Another local simple string. 2025-04-19 02:27:43 -04:00
414c1d287e More temporary string cleanup. 2025-04-19 02:25:08 -04:00
aaead901ae Another popup string 2025-04-19 02:18:15 -04:00
688f2fddf2 Another short lifetime string managed. 2025-04-19 02:10:22 -04:00
efb891d82e Ownership for a short lifetime string. 2025-04-19 02:08:30 -04:00
918a283748 Ownership of Platform in part of the code. 2025-04-19 01:02:59 -04:00
4ba2146cd1 Plumb another pointer further... 2025-04-18 18:36:52 -04:00
b1ac6cde6d Expand a bit of ownership... 2025-04-18 18:31:23 -04:00
dfa19f03cd Browser window owns a few more things. 2025-04-18 17:07:07 -04:00
b1854e8db8 Put some ownership on a vector. 2025-04-18 16:09:46 -04:00
12812814d4 Merge branch 'fix-ui-crash-bug' into master
* fix-ui-crash-bug:
  Ownership of page Widget plumbed to top.
  Plumb Widget ownership up higher.
  Push Widget ownership up one more level.
  Do the whitespace format.
  Some further expansion of ownership for `Widget`.
  Widen the unique pointer a bit more.
  I plumbed out ownership a bit and it hasn't crashed yet.
  Started plumbing out the ownership from layout.
  Revert "This adds some resource-ownership tracking."
2025-04-18 14:23:39 -04:00
5f222e30b8 More ownership work. 2025-04-18 14:23:19 -04:00
176628fa02 Ownership of page Widget plumbed to top.
Now it's created by `make_unique`.
2025-04-18 14:22:36 -04:00
99515ff353 Plumb Widget ownership up higher. 2025-04-18 14:22:36 -04:00
b6c7511997 Push Widget ownership up one more level. 2025-04-18 14:22:36 -04:00
dceaffe4f7 Do the whitespace format.
(This may make some diff tracking easier?)
2025-04-18 14:22:36 -04:00
317d1bfa56 Some further expansion of ownership for Widget. 2025-04-18 14:22:35 -04:00
f63c1209a9 Widen the unique pointer a bit more. 2025-04-18 14:22:35 -04:00
f4e70bfa75 I plumbed out ownership a bit and it hasn't crashed yet. 2025-04-18 14:22:35 -04:00
fc9a191582 Started plumbing out the ownership from layout.
It seems to not crash, yet.
2025-04-18 14:22:35 -04:00
80f980a2e1 Revert "This adds some resource-ownership tracking."
This reverts commit fad3dbc39a.
2025-04-18 14:22:35 -04:00
d001d2609b Bug tracking string is now kinda C++ 2025-04-15 20:12:08 -04:00
5c79999603 Moved BrowserWindow to new/delete. 2025-04-15 20:10:33 -04:00
5a9bd87b0a Add nil dtor for window, and make it ready for C++ 2025-04-15 11:39:05 -04:00
71fdec3129 URL code uses more C++ string bits. 2025-04-14 23:59:21 -04:00
51047f212e Another quick win on ownership. 2025-04-14 05:03:35 -04:00
b4f3c72f22 Form receiver gets unique ptr. 2025-04-14 04:16:46 -04:00
d4a69c0b11 Plumbing ownership further; some things became C++ 2025-04-14 03:48:28 -04:00
76bae93e1c Plumb the ownership up a bit.
The HTML function returning a DilloUrl now returns
ownership.  More releases scattered, but we can clean those
up in time.
2025-04-13 15:40:46 -04:00
61c879c218 URI header now returns pointers with ownership.
I've put `.release()` at most of the callsites, but this
gives me something to search for when taking the next
steps.
2025-04-13 15:05:21 -04:00
c18a12d223 Plumb out ownership a bit. 2025-04-13 00:42:25 -04:00
7e03da3251 Use RAII internally in the allocation function.
Next to return unique_ptr itself!
2025-04-13 00:36:26 -04:00
4005fa7e14 Move more internal URL stuff to RAII. 2025-04-13 00:31:27 -04:00
a189fff1ad Declare obsolete certain things in the design docs 2025-04-12 23:02:10 -04:00
27ae7d91c1 Begin converting URL struct into modern C++ class 2025-04-12 22:20:34 -04:00
26b903f02f Test drive using std::string to replace dstr.
Looks like it worked within the URL code.

Now we can really start to slice-and-dice.
2025-04-12 04:25:55 -04:00
441a04609b DilloURL has a dtor.
It is the same as the original free function.  But this
will let me put some ownership on various members and slowly
start to C++ify this core type.
2025-04-12 04:08:14 -04:00
07485c7959 Manage an FLTK cancel button via smart ptr.
It's still `release()`'d, but I can make a cleaner
wrapper which explicitly type-enforces the ownership
transfer.

That will come later.
2025-04-12 04:07:13 -04:00
d1d4653477 Manage a string in HTTP TLS core. 2025-04-12 03:07:10 -04:00
446b12f5f7 Manage a window. 2025-04-12 03:05:40 -04:00
e595830fab Rename user-facing bits of Dillo to Flenser.
I dunno if I got them all.

This is also now version 0.0.0
2025-04-12 00:43:11 -04:00
564567d389 Charset now an optional string. 2025-04-11 19:49:07 -04:00
3407c98eec Make autogen part of the build process 2025-04-11 19:46:57 -04:00