[commit: packages/bytestring] ghc-head: Declare "digits" static (6cdd5dd)

git at git.haskell.org git at git.haskell.org
Thu Aug 29 10:19:16 CEST 2013


Repository : ssh://git@git.haskell.org/bytestring

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/bytestring.git;a=commit;h=6cdd5dd2085b5cb1ed491ad262b4fc6f9a2f9925

>---------------------------------------------------------------

commit 6cdd5dd2085b5cb1ed491ad262b4fc6f9a2f9925
Author: Leon P Smith <leon at melding-monads.com>
Date:   Fri Mar 8 05:59:12 2013 -0500

    Declare "digits" static
    
    This removes "digits" from the symbol table of the resulting object file,
    which seems like a likely candidate for causing link errors with GHC.


>---------------------------------------------------------------

6cdd5dd2085b5cb1ed491ad262b4fc6f9a2f9925
 cbits/itoa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cbits/itoa.c b/cbits/itoa.c
index cd94f94..637d477 100644
--- a/cbits/itoa.c
+++ b/cbits/itoa.c
@@ -9,7 +9,7 @@
 // Decimal Encoding
 ///////////////////
 
-const char* digits = "0123456789abcdef";
+static const char* digits = "0123456789abcdef";
 
 // signed integers
 char* _hs_bytestring_int_dec (int x, char* buf)





More information about the ghc-commits mailing list