mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	core: convert strtod.c to C++
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									092035d883
								
							
						
					
					
						commit
						e3f6496f59
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -93,7 +93,7 @@ SOURCES += subsurface-mobile-main.cpp \
 | 
			
		|||
	core/selection.cpp \
 | 
			
		||||
	core/sha1.c \
 | 
			
		||||
	core/string-format.cpp \
 | 
			
		||||
	core/strtod.c \
 | 
			
		||||
	core/strtod.cpp \
 | 
			
		||||
	core/tag.cpp \
 | 
			
		||||
	core/taxonomy.c \
 | 
			
		||||
	core/time.cpp \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -169,7 +169,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
 | 
			
		|||
	statistics.h
 | 
			
		||||
	string-format.h
 | 
			
		||||
	string-format.cpp
 | 
			
		||||
	strtod.c
 | 
			
		||||
	strtod.cpp
 | 
			
		||||
	subsurface-float.h
 | 
			
		||||
	subsurface-string.cpp
 | 
			
		||||
	subsurface-string.h
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -109,12 +109,12 @@ no_conversion:
 | 
			
		|||
	return 0.0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
double permissive_strtod(const char *str, const char **ptr)
 | 
			
		||||
extern "C" double permissive_strtod(const char *str, const char **ptr)
 | 
			
		||||
{
 | 
			
		||||
	return strtod_flags(str, ptr, false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
double ascii_strtod(const char *str, const char **ptr)
 | 
			
		||||
extern "C" double ascii_strtod(const char *str, const char **ptr)
 | 
			
		||||
{
 | 
			
		||||
	return strtod_flags(str, ptr, true);
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue