Changeset 1344 for trunk


Ignore:
Timestamp:
2013-08-20T04:55:04+02:00 (21 months ago)
Author:
moo
Message:

decompiler: more sample templating trick

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/devel/run

    r1337 r1344  
    245245        case "$1" in
    246246        *.cpp.php)
    247             cpp -C -P -traditional-cpp -DPHP_VERSION=$phpVersion $1 \
     247            < "$1" \
     248            sed -r -e 's#__#____#g' \
     249            | cpp -C -P -traditional-cpp -DPHP_VERSION=$phpVersion \
    248250            | sed -r -e 's#^ +##g' -e 's#\t +#\t#g' -e 's#____#__#g' > sample.php || exit $?
    249251            shift
  • trunk/mod_disassembler/sample.cpp.php

    r1343 r1344  
    532532include 'include.php';
    533533include_once 'include_once.php';
    534 echo ____FILE____;
    535 echo ____LINE____;
     534echo __FILE__;
     535echo __LINE__;
    536536#if PHP_VERSION >= 530
    537537echo 'PHP 5.3+ code testing';
Note: See TracChangeset for help on using the changeset viewer.