Subversion Repositories Kolibri OS

Rev

Rev 8990 | Rev 9030 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8990 Rev 9028
Line 1452... Line 1452...
1452
		# Build doxycomment specific for the variable
1452
		# Build doxycomment specific for the variable
1453
		doxycomment = ''
1453
		doxycomment = ''
1454
		doxycomment += self.comment
1454
		doxycomment += self.comment
1455
		if '@brief' not in doxycomment:
1455
		if '@brief' not in doxycomment:
1456
			doxycomment = '@brief ' + doxycomment
1456
			doxycomment = '@brief ' + doxycomment
-
 
1457
		# If there was no arguments, maybe that's just a label
-
 
1458
		# then parse parameters from its comment
-
 
1459
		if len(self.args) == 0 and '@param' in self.comment:
-
 
1460
			i = 0
-
 
1461
			while '@param' in self.comment[i:]:
-
 
1462
				i = self.comment.index('@param', i)
-
 
1463
				# Skip '@param'
-
 
1464
				i += len('@param')
-
 
1465
				# Skip spaces after '@param'
-
 
1466
				while self.comment[i].isspace():
-
 
1467
					i += 1
-
 
1468
				# Get the parameter name
-
 
1469
				name = ''
-
 
1470
				while is_id(self.comment[i]):
-
 
1471
					name += self.comment[i]
-
 
1472
					i += 1
-
 
1473
				# Save the parameter
-
 
1474
				self.args.append((name, 'arg_t'))
1457
		# Build the arg list for declaration
1475
		# Build the arg list for declaration
1458
		arg_list = '('
1476
		arg_list = '('
1459
		if len(self.args) > 0:
1477
		if len(self.args) > 0:
1460
			argc = 0
1478
			argc = 0
1461
			for arg in self.args:
1479
			for arg in self.args: