StateDeclAST.py (10984:a86f453a7caa) | StateDeclAST.py (11030:17240f381d6a) |
---|---|
1# Copyright (c) 2011 Advanced Micro Devices, Inc. 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 52 unchanged lines hidden (view full) --- 61 state.generate(t) 62 63 # Add the implicit State_to_string method - FIXME, this is a bit dirty 64 func_id = "%s_to_string" % t.c_ident 65 66 pairs = { "external" : "yes" } 67 func = Func(self.symtab, func_id + "_" + 68 t.ident, func_id, self.location, | 1# Copyright (c) 2011 Advanced Micro Devices, Inc. 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 52 unchanged lines hidden (view full) --- 61 state.generate(t) 62 63 # Add the implicit State_to_string method - FIXME, this is a bit dirty 64 func_id = "%s_to_string" % t.c_ident 65 66 pairs = { "external" : "yes" } 67 func = Func(self.symtab, func_id + "_" + 68 t.ident, func_id, self.location, |
69 self.symtab.find("std::string", Type), [ t ], [], "", | 69 self.symtab.find("std::string", Type), [ t ], [], [], "", |
70 pairs) 71 self.symtab.newSymbol(func) 72 73 # Add the State_to_permission method 74 func_id = "%s_to_permission" % t.c_ident 75 76 pairs = { "external" : "yes" } 77 func = Func(self.symtab, func_id + "_" + 78 t.ident, func_id, self.location, | 70 pairs) 71 self.symtab.newSymbol(func) 72 73 # Add the State_to_permission method 74 func_id = "%s_to_permission" % t.c_ident 75 76 pairs = { "external" : "yes" } 77 func = Func(self.symtab, func_id + "_" + 78 t.ident, func_id, self.location, |
79 self.symtab.find("AccessPermission", Type), [ t ], [], "", | 79 self.symtab.find("AccessPermission", Type), [ t ], [], [], "", |
80 pairs) 81 self.symtab.newSymbol(func) | 80 pairs) 81 self.symtab.newSymbol(func) |