Sir,
- The struct bu_vls defines the char * before the string length. While
writing the import function for the annotation primitive, one has to
initialize(calloc) the char array to a corresponding size but the size is
defined later. I checked out the case for other primitives for other
structs as well. In every case the length is defined before the array,
hence the exact space is alloted(malloc or calloc). How to deal with this ?
Can the organisation of the vls_struct be changed?
- Currently there exists no directory for the annotations in
librt/primitives, hence no .patch . How should I submit the functions in
annotation.c for review?
Regards,
Shubham Rathore(:gabbar1947)
On Tue, May 30, 2017 at 6:34 PM, Daniel Roßberg <danielmrossb...@gmail.com>
wrote:
> Shubham,
>
> > I would like to know more about the functions that should be included in
> > this file.
> >
> > From where exactly are these routines called from? Is it the rt^3 ?
>
> These functions will be mostly called via the functions table
> src/librt/primitives/table.c. You have to add them there.
>
> What do you mean with rt^3? The repository branch? It's for
> testing/prototyping only. You should stick to
> svn.code.sf.net/p/brlcad/code/brlcad/trunk.
>
> > I was working on the import functions and then I came across the
> functions
> > ntohl(), bu_cv_ntohd() etc. I know these are related to the byte
> conversion
> > (endianess), but I'd like to exactly know about their functioning.
>
> These functions change the byte representation of numbers (~l for long
> integers, ~d for doubles) from network format (big endian ieee) to the
> machine (processor) specific host format. The network format serves
> as a well defined hardware independent binary format for numbers.
>
>
> Regards,
> Daniel
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel