mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: make xml_parsing_units local to parse-xml.c
xml_parsing_units stores the units of the currently parsed XML file. It is not used outside of parse-xml.c. Therefore, make it of static linkage and remove the declaration from dive.h. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									253510c555
								
							
						
					
					
						commit
						7f49e43d76
					
				
					 2 changed files with 1 additions and 2 deletions
				
			
		|  | @ -427,7 +427,6 @@ extern void unregister_trip(dive_trip_t *trip); | ||||||
| extern void free_trip(dive_trip_t *trip); | extern void free_trip(dive_trip_t *trip); | ||||||
| 
 | 
 | ||||||
| extern const struct units SI_units, IMPERIAL_units; | extern const struct units SI_units, IMPERIAL_units; | ||||||
| extern struct units xml_parsing_units; |  | ||||||
| 
 | 
 | ||||||
| extern const struct units *get_units(void); | extern const struct units *get_units(void); | ||||||
| extern int run_survey, verbose, quit, force_root; | extern int run_survey, verbose, quit, force_root; | ||||||
|  |  | ||||||
|  | @ -35,7 +35,7 @@ int last_xml_version = -1; | ||||||
| 
 | 
 | ||||||
| static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params); | static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params); | ||||||
| 
 | 
 | ||||||
| struct units xml_parsing_units; | static struct units xml_parsing_units; | ||||||
| const struct units SI_units = SI_UNITS; | const struct units SI_units = SI_UNITS; | ||||||
| const struct units IMPERIAL_units = IMPERIAL_UNITS; | const struct units IMPERIAL_units = IMPERIAL_UNITS; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue