@@ -55,7 +55,7 @@ def parse_define_line(self, line):
5555 identifier , value = parts
5656 tmp = identifier .split ('(' , 1 )
5757 if len (tmp ) == 2 :
58- # skip parameterised defines (macros)
58+ # skip parameterized defines (macros)
5959 return {}
6060 value = "" .join (nocomment .remove_comments (value )).strip ()
6161 return {identifier : value }
@@ -68,7 +68,7 @@ def parse_defines(self, content):
6868
6969 def expand_defines (self , line ):
7070 found = True
71- while found : # do as many passed as needed, until nothing was replaced anymore
71+ while found : # do as many passes as needed, until nothing is replaced anymore
7272 found = False
7373 tokens = split_tokens (line )
7474 line = ""
@@ -115,8 +115,8 @@ def expand_rtc_macros(self, line):
115115 if macro_fn is None :
116116 return line
117117
118- macro_args , _ = macro_args .rsplit (')' , 1 ) # trim away right bracket. safe as comments already stripped
119- macro_args = macro_args .split (',' ) # not safe when args contain ',' but we should not have those
118+ macro_args , _ = macro_args .rsplit (')' , 1 ) # trim away the right bracket; safe as comments are already stripped
119+ macro_args = macro_args .split (',' ) # not safe when args contain ','; we should not have those
120120 macro_args = [x .strip () for x in macro_args ]
121121
122122 return macro_fn (* macro_args )
0 commit comments