[GRASS-dev] Re: [GRASS GIS] #66: v.out.svg: Standardise the `type'
option interpretation
GRASS GIS
trac at osgeo.org
Thu Apr 9 15:47:42 EDT 2009
#66: v.out.svg: Standardise the `type' option interpretation
--------------------------+-------------------------------------------------
Reporter: 1gray | Owner: grass-dev at lists.osgeo.org
Type: enhancement | Status: new
Priority: minor | Milestone: 7.0.0
Component: default | Version: unspecified
Resolution: | Keywords:
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by glynn):
Replying to [comment:3 1gray]:
> > You can implicitly cast {{{char *}}} to {{{const char *}}}, but not
with additional levels of indirection. In theory, a {{{const char *}}}
could be wider than a {{{char *}}}, so you can cast these types, but not
pointers to them.
>
> Is this actually permitted by some standard (either C89 or C99)?
Is what permitted? Implicit casts or pointer size varying depending upon
whether the target is "const"? The answers are "sometimes" and "yes"
respectively, for both C89 and C99.
> > {{{char * const *}}} should work.
>
> Do I understand it correctly that it means variable pointer to constant
pointer to variable character data?
Yes.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/66#comment:4>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list