[sword-devel] Re: Curses port

Paul Gear sword-devel@crosswire.org
Sat, 12 Aug 2000 19:08:13 +1000

> ...
>     Thus, with that finally figured out, I proceeded to try to compile
> program.  I got further this time.  It produced errors because
> 'string::c_str()' returns 'const char*' while the function defs were for
> 'char*'.  GCC (or the version I have) is getting extremely picky about
> arguments matching definitions exactly.  So I overrode the data type with
> '(char *)' and everything compiled.  It also didn't like some method being
> declared static.

Fix the functions that require char * - don't pander to them with casts.
You could really screw up your strings that way if you're not careful.

> ...
>     My coding style is probably weird to most people.  I love 4 space
> hardware tabs and long lines (I typically use a 132 column terminal or
> larger).  I'll try to follow your coding style, if you'll put up with me
> when I get frustrated and don't.

Changing hardware tabs (oxymoron of the day) is for people who don't know
about set shiftwidth, ^T, ^D, <<, and >> in vi.  :-)