diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-11 18:49:43 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-11 18:49:43 +0000 |
commit | b250498faaf6fbd04315d2b632649596e2498c42 (patch) | |
tree | 25f6de9511b199debdbf56b7ff77e5c37b5288ef /epoc/epocish.c | |
parent | 036b4402dc24284de44ae733b52896d6fd4fbb77 (diff) | |
download | perl-b250498faaf6fbd04315d2b632649596e2498c42.tar.gz |
integrate cfgperl changes#6261..6266 into mainline
p4raw-link: @6266 on //depot/cfgperl: a009ce76c9b4ddbde44a58eab3fe27d331cf27fe
p4raw-link: @6261 on //depot/cfgperl: 27d76ecff97d0a9449f569d789504cc8b69a6d01
p4raw-id: //depot/perl@6363
p4raw-integrated: from //depot/cfgperl@6362 'copy in' README.epoc
epoc/createpkg.pl epoc/epocish.c (@5586..) epoc/epocish.h
t/comp/require.t (@5639..) cygwin/Makefile.SHs (@6096..)
ext/POSIX/POSIX.pm (@6140..) hints/bsdos.sh (@6156..)
epoc/config.sh (@6168..) ext/POSIX/POSIX.xs (@6198..)
p4raw-integrated: from //depot/cfgperl@6265 'copy in'
ext/POSIX/POSIX.pod (@5586..)
p4raw-integrated: from //depot/cfgperl@6263 'copy in' doop.c (@6256..)
p4raw-integrated: from //depot/cfgperl@6261 'merge in' pod/perldiag.pod
(@6206..) toke.c (@6250..)
Diffstat (limited to 'epoc/epocish.c')
-rw-r--r-- | epoc/epocish.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/epoc/epocish.c b/epoc/epocish.c index 134eaef0e0..4963a2e5b5 100644 --- a/epoc/epocish.c +++ b/epoc/epocish.c @@ -6,7 +6,7 @@ * */ -/* This is indeed C++ Code !! */ +/* This is C++ Code !! */ #include <e32std.h> @@ -31,4 +31,25 @@ epoc_spawn( char *cmd, char *cmdline) { return 0; } + + /* Workaround for defect atof(), see java defect list for epoc */ + double epoc_atof( const char* str) { + TReal64 aRes; + + TLex lex( _L( str)); + TInt err = lex.Val( aRes, TChar( '.')); + return aRes; + } + + void epoc_gcvt( double x, int digits, unsigned char *buf) { + TRealFormat trel; + + trel.iPlaces = digits; + trel.iPoint = TChar( '.'); + + TPtr result( buf, 80); + + result.Num( x, trel); + result.Append( TChar( 0)); + } } |