[project @ 2000-06-30 18:38:03 by panne]
authorpanne <unknown>
Fri, 30 Jun 2000 18:38:03 +0000 (18:38 +0000)
committerpanne <unknown>
Fri, 30 Jun 2000 18:38:03 +0000 (18:38 +0000)
Remove parentheses around C function/macros names. This is necessary
because cpp does *not* replace e.g.

   (eqForeignObj)(f1,f2)

with

  ((f1)==(f2))

(see PrimOps.h), heaven (or K&R) knows why. OK foreign importing
macros is a hack, but GHC seems to depend on it.

ghc/compiler/absCSyn/PprAbsC.lhs

index 667d1bb..c734871 100644 (file)
@@ -838,7 +838,7 @@ pprCCall call@(CCall op_str is_asm may_gc cconv) args results vol_regs
                if null non_void_results
                  then empty
                  else text "%r = ",
-               lparen, parens fun_name, lparen,
+               lparen, fun_name, lparen,
                  hcat (punctuate comma ccall_fun_args),
                text "));"
        ])