I can find source code in output.c for all the format specifications except
for the workings of %e, %f and %g (and also %E and %G).
Where is the source code for these functions?
If it is not included, does anyone know why not?
Tom Widmer [VC++ MVP] - 24 Nov 2005 14:23 GMT
> I can find source code in output.c for all the format specifications
> except for the workings of %e, %f and %g (and also %E and %G).
> Where is the source code for these functions?
In VC7.1, I can see them on line 744 onwards. What version are you
looking at?
Tom
Tom Widmer [VC++ MVP] - 24 Nov 2005 17:41 GMT
>> I can find source code in output.c for all the format specifications
>> except for the workings of %e, %f and %g (and also %E and %G).
>> Where is the source code for these functions?
>
> In VC7.1, I can see them on line 744 onwards. What version are you
> looking at?
Ahh, I can't find any code for the entries in the _cfltcvt_tab table,
which is what you are wanting I suppose.
Tom
Doug Harrison [MVP] - 24 Nov 2005 16:44 GMT
>I can find source code in output.c for all the format specifications except
>for the workings of %e, %f and %g (and also %E and %G).
>Where is the source code for these functions?
>If it is not included, does anyone know why not?
AFAIK, MS has never provided source code for FP conversion routines or most
other FP stuff. I'm not sure why that is. Could be licensing issues, could
be that it's considered too valuable, etc.

Signature
Doug Harrison
Visual C++ MVP
Ronald Laeremans [MSFT] - 28 Nov 2005 18:56 GMT
>>I can find source code in output.c for all the format specifications except
>>for the workings of %e, %f and %g (and also %E and %G).
[quoted text clipped - 4 lines]
> other FP stuff. I'm not sure why that is. Could be licensing issues, could
> be that it's considered too valuable, etc.
This is indeed due to licensing issues.
Ronald Laeremans
Visual C++ team
Jonathan Wilson - 29 Nov 2005 02:51 GMT
> This is indeed due to licensing issues.
I assume then that licencing issues are why other pieces of code (e.g.
exception handling code) are also missing...
Carl Daniel [VC++ MVP] - 29 Nov 2005 03:42 GMT
>> This is indeed due to licensing issues.
> I assume then that licencing issues are why other pieces of code (e.g.
> exception handling code) are also missing...
Yep.
-cd
Pavel A. - 25 Nov 2005 00:02 GMT
>I can find source code in output.c for all the format specifications except for the workings of %e, %f and %g (and also %E and
>%G).
> Where is the source code for these functions?
In any Linux distribution?
--PA