Changeset 07fdf203 in mainline for contrib/arch/hadlbppp.py


Ignore:
Timestamp:
2009-09-11T15:46:20Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8e2ae1
Parents:
ac2c2ea7
Message:

Extend HelenOS architecture description by introducing Architecture Description Language, interface protocols and frame protocols
Document kernel syscall API
Start documenting uspace architecture and behavior

File:
1 moved

Legend:

Unmodified
Added
Removed
  • contrib/arch/hadlbppp.py

    rac2c2ea7 r07fdf203  
    2828#
    2929"""
    30 HelenOS Behavior Protocols preprocessor
     30HelenOS Architecture Description Language and Behavior Protocols preprocessor
    3131"""
    3232
     
    141141        inf.close()
    142142
    143 def recursion(root, outf, level):
     143def recursion(root, output, level):
    144144        "Recursive directory walk"
    145145       
     
    161161       
    162162        path = os.path.abspath(sys.argv[1])
    163         if (os.path.isdir(path)):
    164                 print "<OUTPUT> is an existing directory"
     163        if (not os.path.isdir(path)):
     164                print "<OUTPUT> is not a directory"
    165165                return
    166166       
    167         outf = file(path, "w")
    168         recursion(".", outf, 0)
    169         outf.close()
     167        recursion(".", path, 0)
    170168       
    171169if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.