Thank You for your continued support and contributions!
U apps/plugins/credits.cU manual/rockbox_interface/tagcache.texUpdated to revision 12768.
#include "plugin.h"/* GROSOR puede tener los valores 1,2,4,8,16 */#define GROSOR 8#define X_ARENA (LCD_WIDTH/GROSOR)#define Y_ARENA (LCD_HEIGHT/GROSOR)#define LEFT 0#define RIGHT 1#define UP 2#define DOWN 3#define DEFAULT_VEL 3#define FRUTAS_POR_PANTALLA 100#define ROJO LCD_RGBPACK(255,0,0)#define BLANCO LCD_RGBPACK(255,255,255)#define NEGRO LCD_RGBPACK(0,0,0)#define X_INI 5#define Y_INI 5#define MAX_LENGTH 100#define INIT_LENGTH 3/* here is a global api struct pointer. while not strictly necessary, it's nice not to have to pass the api pointer in all function calls in the plugin */static struct plugin_api* rb;/* MIS DECLARACIONES DE TIPOS */struct coord { int x; (...)
my_plugin.c:55: warning: function declaration isn't a prototypemy_plugin.c: In function 'plugin_start':my_plugin.c:216: warning: implicit declaration of function 'TEST_PLUGIN_API'
(...) bool crecer;};/* FUNCIONES AUXILIARES */int** CrearMundo() { <-- LINE 55 int** m = malloc(sizeof(int*)*X_ARENA); int i;(...)
(...)enum plugin_status plugin_start(struct plugin_api* api, void* parameter){ TEST_PLUGIN_API(api); <-- LINE 216 (void)parameter;(...)
/home/rockbox/build/apps/plugins/my_plugin.o: In function `CrearMundo':my_plugin.c:(.text+0x64): undefined reference to `malloc'/home/rockbox/build/apps/plugins/my_plugin.o: In function `crearVibora':my_plugin.c:(.text+0xf0): undefined reference to `malloc'/home/rockbox/build/apps/plugins/my_plugin.o: In function `matarVibora':my_plugin.c:(.text+0x874): undefined reference to `free'collect2: ld returned 1 exit statusmake[2]: *** [/home/rockbox/build/apps/plugins/my_plugin.elf] Error 1make[1]: *** [rocks] Error 2make: *** [all] Error 2
Normal build selectedUsing source code root directory: /home/rockboxUsing arm-elf-gcc 4.0.3 (400)Created Makefile
Page created in 0.112 seconds with 17 queries.