medley icon indicating copy to clipboard operation
medley copied to clipboard

Cleanup DECLS

Open masinter opened this issue 3 years ago • 1 comments

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)

masinter avatar May 01 '21 03:05 masinter

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.

rmkaplan avatar Sep 25 '21 01:09 rmkaplan