43 Commits

Author SHA1 Message Date
Dan Cross
540e359080 Cleanups and pointer vectors.
A repeated pattern in Magicka is to append to dynamically
sized arrays via malloc()/realloc().  Introduce the notion
of a "pointer vector": that is, a growable vector of
pointers, that can be reused to implement that logic more
safely and efficiently (this implementation uses power-of-two
growing).

Many malloc()/realloc() calls were not checked; these
assert() that the return value from realloc() is not NULL.

Add a method to consume the pointer vector: that is, realloc()
it to the current length and return the underlying pointers.

Make the `fmt` argument to dolog() const.
Include <sys/wait.h> in bluewave.c to squash a warning.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-10 10:25:42 +10:00
Dan Cross
4827dcf8e4 Add a pointer vector abstraction.
There are lots of places where we want a growable
vector of pointers.  Add one.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-10 10:25:37 +10:00
Dan Cross
fa014f3a88 Simplify dynamic memory management.
Add utility routines and use them to simplify the
use of dynamically allocated memory.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-10 10:25:29 +10:00
Dan Cross
b28e003945 Chat system: simplify connect logic.
Simplify the logic around making connections in the
chat system by delegating to utility functions that
return early on failure.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-09 15:49:54 +10:00
Dan Cross
d6826137dd clang-format
Fix a bunch of trivial formatting issues by running
`clang-format`.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-09 15:48:42 +10:00
Andrew Pamment
991b1c4368 Update to v0.12-alpha and add area headers 2018-10-04 10:05:04 +10:00
Andrew Pamment
ecb1c986f0 Start on qwknet support 2018-06-24 10:28:18 +10:00
Andrew Pamment
96ac7c0a3f Updates for macOS 2018-06-19 19:06:25 +10:00
Andrew Pamment
1684f8ab39 Switch broadcast to MQTT 2018-06-18 16:52:27 +10:00
Andrew Pamment
42fdc30972 maginet 2018-05-22 21:02:22 +10:00
Andrew Pamment
798bec221d Message Flagging 2018-05-22 08:55:44 +10:00
Andrew Pamment
5d108fd6c2 v0.11-alpha 2018-05-14 09:17:01 +10:00
Andrew Pamment
396f5c2bb9 Add a system blog 2018-02-27 18:26:32 +10:00
Andrew Pamment
70dcde1f75 New Last 10 Callers 2018-02-25 16:25:53 +10:00
Andrew Pamment
c98ad14aef Fixed wordwrap bug in internal editor 2018-02-20 15:02:39 +10:00
Andrew Pamment
93c7bd2170 Run as user 2018-02-18 19:52:55 +10:00
Andrew Pamment
9390dedc82 Add personal mail scan 2018-02-18 13:51:39 +10:00
Andrew Pamment
15ca5a41dc web file bases 2018-02-15 14:43:37 +10:00
Andrew Pamment
d002d681d7 Change AUTOMESSAGE_WRITE to AUTOMESSAGE and add prompt. 2018-02-14 14:36:26 +10:00
Andrew Pamment
c1ca33f77e update v0.10-alpha 2018-02-08 20:13:50 +10:00
Andrew Pamment
58adb0e167 Redone BBS List 2018-02-08 19:42:23 +10:00
Andrew Pamment
02f4679387 Send feedback menu option 2018-02-07 20:38:25 +10:00
Andrew Pamment
3f7fc15c44 Nodelist browser 2018-02-06 11:41:55 +10:00
Andrew Pamment
29ebb8277a Initial nodelist parsing 2018-02-06 08:05:02 +10:00
Andrew Pamment
3ec7305cbe Allow pointers to be set, read, unread or at msg no 2018-02-03 11:44:36 +10:00
Andrew Pamment
027c047b42 some debugging IAC codes in file transfers 2018-02-01 13:42:57 +10:00
Andrew Pamment
2fcf6305c0 add a * next to areas that have new messages 2018-01-25 09:37:22 +10:00
Andrew Pamment
f1b81c9953 another fix 2018-01-23 21:31:50 +10:00
Andrew Pamment
84a3d271df first attempt at www downlods WIP 2018-01-23 20:57:58 +10:00
Andrew Pamment
69897e7955 Think I may have fixed it! 2018-01-21 19:05:01 +10:00
Andrew Pamment
6ac2e6f125 WWW improvements, fixes and a bug. 2018-01-21 15:02:21 +10:00
Andrew Pamment
e56ba91b5b Updates to script and version bump 2018-01-19 10:37:08 +10:00
Andrew Pamment
ba3b4c0014 Dual Stack Support (two sockets per service) 2018-01-18 21:27:10 +10:00
Andrew Pamment
85fc0d57cd File area choosers now use lightbars 2018-01-17 16:03:15 +10:00
Andrew Pamment
1aeaee5031 EXPERIMENTAL lightbar area/conference selection 2018-01-17 14:54:04 +10:00
Andrew Pamment
dd1d4d4eaa Add signature capability 2018-01-13 19:17:22 +10:00
Andrew Pamment
237d27fe7a Enable file search 2017-10-19 12:54:20 +10:00
Andrew Pamment
5ca5ea73c3 First try at alternate packet numbering for bluewave 2017-10-18 07:36:58 +10:00
Andrew Pamment
1ae8c26054 Improve new message scan 2017-10-13 13:03:06 +10:00
Andrew Pamment
ce65048a98 New experimental full mail scan 2017-10-12 20:24:55 +10:00
Andrew Pamment
a2d80b90fd Add support for US style dates 2017-10-03 12:09:50 +10:00
Andrew Pamment
a74caa16b2 Initial try at new file scan 2017-09-28 19:11:00 +10:00
Andrew Pamment
ffaca86565 Redo Make file setup.. please standby 2017-09-25 13:27:22 +10:00