On Wed, 25 Aug 2010, anonymous wrote:
> You include files include include files. IMO one external include
> file (that is placed into /usr/include) should be enough. And
> internal include files can be placed into src/, one .h file for each
> c file. Then you can remove #ifdef guards. Read "Notes on
> Programming in C"[1], nice tips there. Then user would only need to
> #include <nscript.h>
>
> Looks like you are using your 'dynarray' both in library code and as
> object type for your language. But user should not know about
> structure of these objects. Maybe move dynarray.h into src/ and
> replace 'union' with 'void *'? That way your library will be binary
> compatible with previous versions even if you add more types or
> change/remove existing. I don't want to say that you should care
> about binary compatibility, but that means internal things are hidden
> better.
I'll try this tomorrow. It's getting late now... Time for some YouTube.
;-)
Received on Thu Aug 26 2010 - 02:11:29 CEST
This archive was generated by hypermail 2.2.0 : Thu Aug 26 2010 - 01:24:01 CEST