This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] Enable Hollerith constant and character array in format tag.
On Saturday 09 April 2005 22:40, Steve Kargl wrote:
> In that case, we need gfc_hollerith_to_mpfr and gfc_hollerith_to_mpz.
> Both MPFR and GMP have functions to convert a string to an mpfr type
> or mpz type. Is the Hollerith (eg., your 4hdead) restricted to hex
> digits? If so, then its trivial. If the hollerith can contain any
> ascii character, then we need to convert the hollerith to the equivalent
> string in binary.
You need the latter, a Hollerith can be any string.
Gr.
Steven