InPortDeclAST.py (10963:51f40b101a56) | InPortDeclAST.py (10981:b300dcda5896) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 75 unchanged lines hidden (view full) --- 84 param_types.append(machine.TBEType) 85 86 # Add the trigger method - FIXME, this is a bit dirty 87 pairs = { "external" : "yes" } 88 func = Func(self.symtab, "trigger", self.location, void_type, 89 param_types, [], "", pairs) 90 symtab.newSymbol(func) 91 | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 75 unchanged lines hidden (view full) --- 84 param_types.append(machine.TBEType) 85 86 # Add the trigger method - FIXME, this is a bit dirty 87 pairs = { "external" : "yes" } 88 func = Func(self.symtab, "trigger", self.location, void_type, 89 param_types, [], "", pairs) 90 symtab.newSymbol(func) 91 |
92 # Add the stallPort method - this hacks reschedules the controller 93 # for stalled messages that don't trigger events 94 func = Func(self.symtab, "stallPort", self.location, void_type, [], 95 [], "", pairs) 96 symtab.newSymbol(func) 97 |
|
92 param_types = [] 93 # Check for Event2 94 type = symtab.find("Event", Type) 95 if type is None: 96 self.error("in_port decls require 'Event' enumeration") 97 98 param_types.append(type) 99 --- 18 unchanged lines hidden --- | 98 param_types = [] 99 # Check for Event2 100 type = symtab.find("Event", Type) 101 if type is None: 102 self.error("in_port decls require 'Event' enumeration") 103 104 param_types.append(type) 105 --- 18 unchanged lines hidden --- |