Changeset 822 for proto/Compiler


Ignore:
Timestamp:
Dec 14, 2010, 1:17:02 PM (9 years ago)
Author:
ksherdy
Message:

Logic for StreamScan? Python prototype function calls. 'StreamScan?(BitStream?, StreamFuncName?)'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r813 r822  
    238238      c = mkCall(rtn, [callnode.args[0], callnode.args[1], self.carryvar, ast.Num(self.current_carry)])
    239239      self.current_carry += 1
     240      return c
     241    elif is_BuiltIn_Call(callnode, 'StreamScan', 2):
     242      rtn = "StreamScan"           
     243      c = mkCall(rtn, [ast.Name('(ScanBlock *) &' + callnode.args[0].id, ast.Load()),
     244                                           ast.Name('sizeof(BitBlock)/sizeof(ScanBlock)', ast.Load()),
     245                                           ast.Name(callnode.args[1].id, ast.Load())])
    240246      return c
    241247    else: return callnode
Note: See TracChangeset for help on using the changeset viewer.