vectaport / ivtools

X11 vector graphic servers
Other
17 stars 13 forks source link

avoid using fdstreams, also dump stack on crash #18

Closed vectaport closed 2 years ago

vectaport commented 2 years ago

This removes a reliance on iostreams that write to files or fd's, because these have historically been volatile, unreliable, and non-standard code. But since the iostream I/O is so embedded into the ivtools package, it will still be used to write to a string, which then can be printed via fprintf, etc..

Also this adds a utility function to dump the stack upon a crash.