pprModuleName, moduleNameUserString
)
import Outputable
+import CStrings ( pprStringInCStyle )
import Util ( thenCmp )
\end{code}
-- This is the name to go in the user-displayed string,
-- recorded in the cost centre declaration
costCentreUserName (NoCostCentre) = "NO_CC"
-costCentreUserName (AllCafsCC {}) = "CAFs_in_..."
+costCentreUserName (AllCafsCC {}) = "CAF"
costCentreUserName cc@(NormalCC {cc_name = name, cc_is_caf = is_caf})
= case is_caf of { CafCC -> "CAF:"; _ -> "" } ++ decode (_UNPK_ name)
\end{code}
hcat [
ptext SLIT("CC_DECLARE"),char '(',
cc_ident, comma,
- doubleQuotes (text (costCentreUserName cc)), comma,
- doubleQuotes (text (moduleNameUserString mod_name)), comma,
+ pprStringInCStyle (costCentreUserName cc), comma,
+ pprStringInCStyle (moduleNameUserString mod_name), comma,
ptext is_subsumed, comma,
empty, -- Now always externally visible
text ");"]