From 60a8cc4ca1fa549c4b258a788e449aa12a58667d Mon Sep 17 00:00:00 2001 From: sewardj Date: Fri, 4 Feb 2000 13:41:00 +0000 Subject: [PATCH] [project @ 2000-02-04 13:41:00 by sewardj] startGHCClass(): set the .dsels (superclass dsels) field. --- ghc/interpreter/interface.c | 14 ++++++++++---- ghc/interpreter/static.c | 8 ++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ghc/interpreter/interface.c b/ghc/interpreter/interface.c index ceefd4f..00348c4 100644 --- a/ghc/interpreter/interface.c +++ b/ghc/interpreter/interface.c @@ -7,8 +7,8 @@ * Hugs version 1.4, December 1997 * * $RCSfile: interface.c,v $ - * $Revision: 1.26 $ - * $Date: 2000/02/03 15:56:13 $ + * $Revision: 1.27 $ + * $Date: 2000/02/04 13:41:00 $ * ------------------------------------------------------------------------*/ #include "prelude.h" @@ -1694,6 +1694,8 @@ List mems0; { /* [((VarId, Type))] */ List mems; /* [((VarId, Type))] */ List tvsInT; /* [VarId] and then [((VarId,Kind))] */ List tvs; /* [((VarId,Kind))] */ + List ns; /* [Name] */ + Int mno; ZPair kinded_tv = hd(kinded_tvs); Text ct = textOf(tc_name); @@ -1785,10 +1787,14 @@ List mems0; { /* [((VarId, Type))] */ /* (ADR) ToDo: * cclass(nw).dsels = ?; - * cclass(nw).dbuild = ?; - * cclass(nm).dcon = ?; * cclass(nm).defaults = ?; */ + + ns = NIL; + for (mno=0; mno