mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	refactor: add pure attribute to pure functions
This will allow compilers that support the pure attribute to make further optimizations to functions.
This commit is contained in:
		| @@ -1551,6 +1551,7 @@ int get_digraph(bool cmdline) | ||||
| /// @return If no match, return "char2". If "meta_char" is true and "char1" | ||||
| //          is a space, return "char2" | 0x80. | ||||
| static int getexactdigraph(int char1, int char2, bool meta_char) | ||||
|   FUNC_ATTR_PURE | ||||
| { | ||||
|   int retval = 0; | ||||
|  | ||||
| @@ -1601,6 +1602,7 @@ static int getexactdigraph(int char1, int char2, bool meta_char) | ||||
| /// | ||||
| /// @return The digraph. | ||||
| int digraph_get(int char1, int char2, bool meta_char) | ||||
|   FUNC_ATTR_PURE | ||||
| { | ||||
|   int retval; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dundar Göc
					Dundar Göc