https://github.com/Unipisa/CMM
Raw File
Tip revision: bf76b38a16a1c7c2b9b54c40b3d6e1471fe79c7b authored by Giuseppe Attardi on 02 November 1995, 15:11 UTC
1.5 -
Tip revision: bf76b38
CmmUpgrade
#/bin/sh
# This script is used to upgrade to version 1 of CMM code written with earlier
# versions of CMM.
#
sed -e s/"traverse[ ]*([^)]*)"/"traverse()"/g \
    -e s/"[a-zA-Z0-9_:]*[ ]*->[ ]*scavenge"/"Cmm::heap->scavenge"/g \
    -e s/"SetHeapZone"/"SetHeap"/g \
    -e s/"HeapZone"/"CmmHeap"/g \
    -e s/"BartlettHeap"/"theDefaultHeap"/g \
    -e s/"zone()"/"heap()"/g \
    -e s/ActOnPointer/scavenge/g \
    -e s/CmmVerbosity/"Cmm::verbose"/g \
    $1 > TmpSedOutput
mv TmpSedOutput $1
back to top