Reorganize includes

libc includes go first, then libraries like libnds and dswifi, then
NFLib includes.
This commit is contained in:
Antonio Niño Díaz 2023-05-03 01:44:46 +01:00
parent fe33d66d91
commit 54d5435650
15 changed files with 57 additions and 163 deletions

View File

@ -6,20 +6,15 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_tiledbg.h"
#include "nf_basic.h"
#include "nf_sprite256.h"
#include "nf_tiledbg.h"

View File

@ -6,23 +6,14 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
// Includes propios
#include "nf_basic.h"
#include "nf_3d.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_3d.h"
#include "nf_basic.h"
// Funcion NF_Set3D();
void NF_Set3D(u8 screen, u8 mode) {

View File

@ -6,25 +6,16 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_tiledbg.h"
#include "nf_affinebg.h"
#include "nf_basic.h"
#include "nf_tiledbg.h"
// Estructura para almacenar los parametros de los fondos Affine
NF_TYPE_AFFINE_BG NF_AFFINE_BG[2][4];

View File

@ -11,19 +11,14 @@
#define iprintf printf
#endif
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include <nds.h>
#include "nf_basic.h"
// Define la variable global NF_ROOTFOLDER
char NF_ROOTFOLDER[64];

View File

@ -6,22 +6,15 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include "nf_bitmapbg.h"
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_basic.h"
#include "nf_bitmapbg.h"
// Define los Buffers para almacenar datos de 16 bits
NF_TYPE_BG16B_INFO NF_BG16B[NF_SLOTS_BG16B]; // Fondos RAW de 16 bits

View File

@ -6,17 +6,12 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include <nds.h>
#include "nf_basic.h"
#include "nf_collision.h"

View File

@ -6,24 +6,15 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include "nf_media.h"
#include "nf_bitmapbg.h"
#include <nds.h>
#include "nf_basic.h"
#include "nf_bitmapbg.h"
#include "nf_media.h"
// Funcion NF_LoadBMP();
void NF_LoadBMP(const char* file, u8 slot) {

View File

@ -6,24 +6,17 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_tiledbg.h"
#include "nf_basic.h"
#include "nf_bitmapbg.h"
#include "nf_mixedbg.h"
#include "nf_tiledbg.h"

View File

@ -6,19 +6,12 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include <nds.h>
#include "nf_basic.h"
#include "nf_sound.h"

View File

@ -6,22 +6,15 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_basic.h"
#include "nf_sprite256.h"

View File

@ -6,28 +6,15 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_3d.h"
#include "nf_sprite3d.h"
#include "nf_basic.h"
#include "nf_sprite256.h"
//////////////////////////////////
// Defines y variables globales //
//////////////////////////////////
#include "nf_sprite3d.h"
// Estructura de control de los sprites 3d
NF_TYPE_3DSPRITE_INFO NF_3DSPRITE[NF_3DSPRITES];

View File

@ -6,24 +6,16 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_tiledbg.h"
#include "nf_basic.h"
#include "nf_text.h"
#include "nf_tiledbg.h"
// Define los buffers para almacenar las capas de texto
NF_TYPE_TEXT_INFO NF_TEXT[2][4];

View File

@ -6,22 +6,17 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_tiledbg.h"
#include "nf_text.h"
#include "nf_basic.h"
#include "nf_text16.h"
#include "nf_text.h"
#include "nf_tiledbg.h"

View File

@ -6,21 +6,14 @@
// http://www.nightfoxandco.com/
// Version 20140413
// Includes devKitPro
#include <nds.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Includes propios
#include "nf_basic.h"
#include <nds.h>
#include "nf_2d.h"
#include "nf_basic.h"
#include "nf_tiledbg.h"

View File

@ -6,19 +6,16 @@
// http://www.nightfoxandco.com/
// Version 20110502
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <nds.h>
#include <dswifi9.h>
// Includes C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
// Includes propios
#include "nf_wifi.h"