Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast type lookup #6241

Open
wants to merge 6 commits into
base: 1.4
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor(nc): Better naming consistency in backend_open62541_typedefi…
…nitions.py
  • Loading branch information
jpfr committed Jan 20, 2024
commit ad2e26fb85535fdae0484585a2be0b179fa6ea32
4 changes: 2 additions & 2 deletions tools/nodeset_compiler/backend_open62541_typedefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def write_definitions(self):
self.ff = open(self.outfile + "_generated_handling.h", 'w')
self.fc = open(self.outfile + "_generated.c", 'w')

self.filtered_types = self.iter_types(self.parser.types)
self.filtered_types = self.filter_types(self.parser.types)

self.print_header()
self.print_handling()
Expand All @@ -355,7 +355,7 @@ def printf(self, string):
def printc(self, string):
print(string, end='\n', file=self.fc)

def iter_types(self, v):
def filter_types(self, v):
# Make a copy. We cannot delete from the map that is iterated over at
# the same time.
l = copy.deepcopy(v)
Expand Down