On Thu, 7 Aug 2014 11:30:36 +0100
Adam Thompson wrote:

> Perhaps, though as ms aren't updating C support any more I'm not sure
> about the idea of targeting vs. At the end of the day mingw or sigwin
> are probably better targets for Windows porting in my opinion.

A lot of software is doing that already.  Some IDEs for Windows like
Code::Blocks are targeting mingw by default, since GCC is on-part if
not better than compilers provided by Microsoft.

> As for the move to C++, I think if we allow ourselves to use the
> extensions provided by C99 and other common non-standard extensions
> (e.g. asprintf), we can get many of the benefits of such a move
> without the massive rewrite.

asprintf() is definitly nice to have if you looking for string
manipulation with dynamic allocation.

snprintf() returns the number of characters that would have been output
if the size were unlimited, so that truncation can be detected.  This
way buffer overflows can be detected and prevented compared to strcat()
and strcpy().
 
> That's a good point, I'll have a look into this as I've got an
> up-to-date mac system at home.
> Perhaps I may even be able to put together a homebrew package as well,
> but first I need to work out if smjs will compile and is packaged for
> this to happen.

Mac OS X shouldn't be a problem.  What differs is location of includes
and libraries for linking.  Their libc isn't so modern, but I wouldn't
worry about it. Beside that default compiler is Clang.

-- 
Paul Onyschuk
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to