mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: macro - make argument names shorter
It seems that the use the macro name as the variable prefix is too large. Use just two underscores as prefix for the macro arguments to make macro definitions more readable. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									2389f04541
								
							
						
					
					
						commit
						5f0479762b
					
				
					 2 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -419,7 +419,7 @@ static int evaluate_macro1(snd_use_case_mgr_t *uc_mgr,
 | 
			
		|||
		err = snd_config_get_ascii(n, &var);
 | 
			
		||||
		if (err < 0)
 | 
			
		||||
			return err;
 | 
			
		||||
		snprintf(name, sizeof(name), "%s_%s", mid, id);
 | 
			
		||||
		snprintf(name, sizeof(name), "__%s", id);
 | 
			
		||||
		err = uc_mgr_set_variable(uc_mgr, name, var);
 | 
			
		||||
		free(var);
 | 
			
		||||
		if (err < 0)
 | 
			
		||||
| 
						 | 
				
			
			@ -444,7 +444,7 @@ static int evaluate_macro1(snd_use_case_mgr_t *uc_mgr,
 | 
			
		|||
		err = snd_config_get_id(n, &id);
 | 
			
		||||
		if (err < 0)
 | 
			
		||||
			return err;
 | 
			
		||||
		snprintf(name, sizeof(name), "%s_%s", mid, id);
 | 
			
		||||
		snprintf(name, sizeof(name), "__%s", id);
 | 
			
		||||
		err = uc_mgr_delete_variable(uc_mgr, name);
 | 
			
		||||
		if (err < 0)
 | 
			
		||||
			return err;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue