The .42m generally corresponds 1:1 with the .4gl source file. You need to look in the .42r file. It's a simple structure and you can write some C code to interpret it properly, but for most purposes (assuming you are on a *nix OS) you can just use strings(1) to get the names out of them. E.g.
strings program.42r | grep scratchpad
If you want to be cleverer or the word scratchpad appears in too many function names, a quick and dirty script like this will work (slowly). e.g.
genref -m *.42r | grep scratchpad.42m
Regards,
#! /bin/sh
modules=false
if [ "$1" = "-m" ]
then
modules=true
shift
fi
for f in $*
do
strings $f |
{
read jjtok || break
if [ "$jjtok" != "JJJJ" ]
then
echo "Error: $f is not a Genero file"
break
fi
while true
do
read function || break
read module || break
if $modules
then
if [ "$lastmod" != "$module" ]
then
echo "$f: $module.42m"
fi
lastmod=$module
else
echo "$f: $module.42m $function()"
fi
done
}
done
Julian