mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:12:43 +00:00 
			
		
		
		
	 04b9dc2d30
			
		
	
	
		04b9dc2d30
		
	
	
	
	
		
			
			Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			530 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			530 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <assert.h>
 | |
| #include <locale.h>
 | |
| #include <stdio.h>
 | |
| 
 | |
| extern "C" {
 | |
| 
 | |
| static char default_decimal_point[] = ".";
 | |
| static char default_thousands_sep[] = ",";
 | |
| static char default_grouping[] = "\x03\x03";
 | |
| 
 | |
| static struct lconv default_locale = {
 | |
|     default_decimal_point,
 | |
|     default_thousands_sep,
 | |
|     default_grouping,
 | |
| };
 | |
| 
 | |
| char* setlocale(int category, const char* locale)
 | |
| {
 | |
|     dbgprintf("FIXME(LibC): setlocale(%d, %s)\n", category, locale);
 | |
|     return nullptr;
 | |
| }
 | |
| 
 | |
| struct lconv* localeconv()
 | |
| {
 | |
|     return &default_locale;
 | |
| }
 | |
| }
 |