Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!wjh12!n44a!ima!ism780!jim From: jim@ism780.UUCP Newsgroups: net.lang.c Subject: Re: Identifier significance CHALLENGE Message-ID: <106@ism780.UUCP> Date: Sun, 11-Dec-83 23:37:00 EST Article-I.D.: ism780.106 Posted: Sun Dec 11 23:37:00 1983 Date-Received: Wed, 14-Dec-83 01:18:22 EST Lines: 21 I have posted to net.sources a simple program (shortc.c) which produces a mapping from arbitrary-length identifiers to identifiers which are unambiguous in the first N (default 7) characters. It produces them as #defines; all it takes is a flexnames version of cpp to compile the original source files with a non-flexname compiler, with no modification beyond including the output of shortc into the sources. If such a cpp is not available or creatable (not hard given any cpp source), the shortc output can be turned into a sed script and the sources can be compiled after being modified. Such modification does not fill the sources with identifiers like X12345 or MuWdIdr (for MultiWordIdentifier); rather it converts MultiWordIdentifier MultiWordIdentifier MultiWordThingy into AMultiWordThingy MultiWordyProgrammer BMultiWordyProgrammer Not so tough. -- Jim Balter (decvax!yale-co!ima!jim) Interactive Systems Corp --------