1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-06 04:01:44 +00:00

Use the bloated string formatting functions from newlib

This commit is contained in:
TuxSH 2018-05-05 18:35:00 +02:00
parent 67b76cc8f1
commit 30b9873ab3
6 changed files with 19 additions and 1723 deletions

View file

@ -12,7 +12,7 @@ dir_source := src
dir_build := build dir_build := build
dir_out := out dir_out := out
ARCH := -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork ARCH := -march=armv4t -mtune=arm7tdmi -marm
ASFLAGS := -g $(ARCH) ASFLAGS := -g $(ARCH)

View file

@ -2,9 +2,9 @@
* Kernel print functions. * Kernel print functions.
*/ */
#include <stdio.h>
#include "printk.h" #include "printk.h"
#include "vsprintf.h"
#include "../display/video_fb.h" #include "../display/video_fb.h"
/** /**

File diff suppressed because it is too large Load diff

View file

@ -1,28 +0,0 @@
/*
* Copyright (C) 2011 Andrei Warkentin <andrey.warkentin@gmail.com>
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <stdarg.h>
#include <stdlib.h>
#ifndef VSPRINTF_H
#define VSPRINTF_H
struct va_format {
const char *fmt;
va_list *va;
};
unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base);
int sprintf(char *buf, const char *fmt, ...);
int scnprintf(char *buf, size_t size, const char *fmt, ...);
int snprintf(char *buf, size_t size, const char *fmt, ...);
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
int sscanf(const char *buf, const char *fmt, ...);
#endif /* VSPRINTF_H */

View file

@ -1,10 +1,10 @@
#include "utils.h"
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include "utils.h"
#include "loader.h" #include "loader.h"
#include "sd_utils.h" #include "sd_utils.h"
#include "stage2.h" #include "stage2.h"
#include "lib/printk.h" #include "lib/printk.h"
#include "lib/vsprintf.h"
#include "lib/ini.h" #include "lib/ini.h"
const char *g_bct0 = NULL; const char *g_bct0 = NULL;

View file

@ -1,9 +1,9 @@
#include <stdio.h>
#include "utils.h" #include "utils.h"
#include "package2.h" #include "package2.h"
#include "stratosphere.h" #include "stratosphere.h"
#include "sd_utils.h" #include "sd_utils.h"
#include "lib/printk.h" #include "lib/printk.h"
#include "lib/vsprintf.h"
unsigned char g_stratosphere_ini1[PACKAGE2_SIZE_MAX]; unsigned char g_stratosphere_ini1[PACKAGE2_SIZE_MAX];
static bool g_initialized_stratosphere_ini1 = false; static bool g_initialized_stratosphere_ini1 = false;