medley
medley copied to clipboard
Cleanup DECLS
ls */*D*CL*
picks up most of the TEDITDCL-style files; some are compiled and some are not. Are there duplicate definitions in the 'main' files?
I'd suggest that for all packages that have a packageDECLS
file, each source should (DECLARE EVAL@COMPILE DONTCOPY (FILES
packageDECLS))
and the source shouldn't have its own copy of declares, macros, records (except I suppose INITRECORDS need to be in the main file)
Alternatively, the compile-time declarations/macros/records etc. should be kept in their natural place, but embedded in EXPORT commands. The root file (TEDIT, SEDIT) would just include a list of the module files for gatherexports that would systematically produce the file that each of the module files would load under a EVAL@COMPILE DONTCOPY.
I.e., leave the stuff in its natural place, but arrange to systematically share it.