| Index: apps/installer-nano2g/flashfiles/iloader.conf | 
| — | — | @@ -1,45 +0,0 @@ | 
| 2 |  | -# nothing         center          right           center+right    left            center+left     left+right     center+left+right
 | 
| 3 |  | -.word(notheme)  .word(notheme)  .word(notheme)  .word(quit)     .word(notheme)  .word(diagmode) .word(notheme) .word(notheme)
 | 
| 4 |  | -.word(diskmode) .word(diskmode) .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme) .word(notheme)  # +play
 | 
| 5 |  | -.word(notheme)  .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme) .word(notheme)  # +menu
 | 
| 6 |  | -.word(notheme)  .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme)  .word(notheme) .word(notheme)  # +play+menu
 | 
| 7 |  | -
 | 
| 8 |  | -# error handler
 | 
| 9 |  | -.word(0xffffffff)
 | 
| 10 |  | -
 | 
| 11 |  | -notheme:
 | 
| 12 |  | -  fillrect(0, 0, 176, 132, 0xffff)
 | 
| 13 |  | -  text(16, 16, 0x0000, 0xffff, "Could not load iLoader\0")
 | 
| 14 |  | -  text(16, 24, 0x0000, 0xffff, "theme. It was probably\0")
 | 
| 15 |  | -  text(16, 32, 0x0000, 0xffff, "deleted. Please choose\0")
 | 
| 16 |  | -  text(16, 40, 0x0000, 0xffff, "an option below:\0")
 | 
| 17 |  | -  blit()
 | 
| 18 |  | -  backlight(1, 55, 10)
 | 
| 19 |  | -  menu(nothememenu, 0, 0xffffffff, 0xfffffffe, 0xffffffff, 0xfffffffe, 0)
 | 
| 20 |  | -
 | 
| 21 |  | -nothememenu:
 | 
| 22 |  | -  .menuentry(" Uninstall iLoader \0", 16, 56, 0x0000, 0xffff, 0xffff, 0x1f00, uninstall)
 | 
| 23 |  | -  .menuentry("  Enter disk mode  \0", 16, 64, 0x0000, 0xffff, 0xffff, 0x1f00, diskmode)
 | 
| 24 |  | -  .menuentry("   Quit  iLoader   \0", 16, 72, 0x0000, 0xffff, 0xffff, 0x1f00, quit)
 | 
| 25 |  | -  .menuentry("     Power off     \0", 16, 80, 0x0000, 0xffff, 0xffff, 0x1f00, off)
 | 
| 26 |  | -  .word(0)
 | 
| 27 |  | -
 | 
| 28 |  | -diskmode:
 | 
| 29 |  | -  readflash(0x08000000, "diskmode")
 | 
| 30 |  | -  backlight(1, 10, 10)
 | 
| 31 |  | -  exec(0x08000000)
 | 
| 32 |  | -
 | 
| 33 |  | -quit:
 | 
| 34 |  | -  terminate()
 | 
| 35 |  | -
 | 
| 36 |  | -diagmode:
 | 
| 37 |  | -  readflash(0x08000000, "diagmode")
 | 
| 38 |  | -  backlight(1, 177, 32)
 | 
| 39 |  | -  exec(0x08000000)
 | 
| 40 |  | -
 | 
| 41 |  | -uninstall:
 | 
| 42 |  | -  readflash(0x08800000, "uninst  ")
 | 
| 43 |  | -  execembiosapp(0x08800000, 1)
 | 
| 44 |  | -
 | 
| 45 |  | -off:
 | 
| 46 |  | -  poweroff()
 | 
| Index: apps/installer-nano2g/flashfiles | 
| Property changes on: apps/installer-nano2g/flashfiles | 
| ___________________________________________________________________ | 
| Deleted: svn:ignore | 
| ## -1,8 +0,0 ## | 
| 47 |  | -embios-ipodnano2g.bin | 
| 48 |  | -embios-ipodnano2g.ucl | 
| 49 |  | -embiosldr-ipodnano2g.dfu | 
| 50 |  | -iloader.cfg | 
| 51 |  | -iloader.cfg.ucl | 
| 52 |  | -iloader.conf | 
| 53 |  | -iloader.embiosapp.ucl | 
| 54 |  | -uninstaller-nano2g.embiosapp.ucl | 
| Index: apps/installer-nano2g/libucl/ucl_init.c | 
| — | — | @@ -28,9 +28,8 @@ | 
| 29 | 29 |  | 
| 30 | 30 | #include "ucl_conf.h" | 
| 31 | 31 | #include "ucl_util.h" | 
| 32 |  | -#include <stdio.h>
 | 
|  | 32 | +#include "embiosapp.h" | 
| 33 | 33 |  | 
| 34 |  | -
 | 
| 35 | 34 | #if 0 | 
| 36 | 35 | #  define IS_SIGNED(type)       (((type) (1ul << (8 * sizeof(type) - 1))) < 0) | 
| 37 | 36 | #  define IS_UNSIGNED(type)     (((type) (1ul << (8 * sizeof(type) - 1))) > 0) | 
| Index: apps/installer-nano2g/libucl/n2_99.ch | 
| — | — | @@ -36,11 +36,8 @@ | 
| 37 | 37 | #define UCL_DEBUG | 
| 38 | 38 | #endif | 
| 39 | 39 |  | 
| 40 |  | -#include <stdio.h>
 | 
| 41 |  | -
 | 
| 42 | 40 | #if 0 && !defined(UCL_DEBUG) | 
| 43 | 41 | #undef NDEBUG | 
| 44 |  | -#include <assert.h>
 | 
| 45 | 42 | #endif | 
| 46 | 43 |  | 
| 47 | 44 |  | 
| Index: apps/installer-nano2g/libucl/ucl_conf.h | 
| — | — | @@ -45,9 +45,7 @@ | 
| 46 | 46 | // memory checkers | 
| 47 | 47 | ************************************************************************/ | 
| 48 | 48 |  | 
| 49 |  | -#if defined(__BOUNDS_CHECKING_ON)
 | 
| 50 |  | -#  include <unchecked.h>
 | 
| 51 |  | -#else
 | 
|  | 49 | +#if !defined(__BOUNDS_CHECKING_ON) | 
| 52 | 50 | #  define BOUNDS_CHECKING_OFF_DURING(stmt)      stmt | 
| 53 | 51 | #  define BOUNDS_CHECKING_OFF_IN_EXPR(expr)     (expr) | 
| 54 | 52 | #endif | 
| — | — | @@ -58,27 +56,10 @@ | 
| 59 | 57 | ************************************************************************/ | 
| 60 | 58 |  | 
| 61 | 59 | #if !defined(UCL_HAVE_CONFIG_H) | 
| 62 |  | -#  include <stddef.h>           /* ptrdiff_t, size_t */
 | 
| 63 |  | -#  include <string.h>           /* memcpy, memmove, memcmp, memset */
 | 
| 64 |  | -#  if !defined(NO_STDLIB_H)
 | 
| 65 |  | -#    include <stdlib.h>
 | 
| 66 |  | -#  endif
 | 
| 67 | 60 | #  define HAVE_MEMCMP | 
| 68 | 61 | #  define HAVE_MEMCPY | 
| 69 | 62 | #  define HAVE_MEMMOVE | 
| 70 | 63 | #  define HAVE_MEMSET | 
| 71 |  | -#else
 | 
| 72 |  | -#  include <sys/types.h>
 | 
| 73 |  | -#  if defined(STDC_HEADERS)
 | 
| 74 |  | -#    include <string.h>
 | 
| 75 |  | -#    include <stdlib.h>
 | 
| 76 |  | -#  endif
 | 
| 77 |  | -#  if defined(HAVE_STDDEF_H)
 | 
| 78 |  | -#    include <stddef.h>
 | 
| 79 |  | -#  endif
 | 
| 80 |  | -#  if defined(HAVE_MEMORY_H)
 | 
| 81 |  | -#    include <memory.h>
 | 
| 82 |  | -#  endif
 | 
| 83 | 64 | #endif | 
| 84 | 65 |  | 
| 85 | 66 | #if defined(__UCL_DOS16) || defined(__UCL_WIN16) | 
| — | — | @@ -91,12 +72,6 @@ | 
| 92 | 73 | #if !defined(UCL_DEBUG) | 
| 93 | 74 | #  define NDEBUG | 
| 94 | 75 | #endif | 
| 95 |  | -#if 1 || defined(UCL_DEBUG) || !defined(NDEBUG)
 | 
| 96 |  | -#  if !defined(NO_STDIO_H)
 | 
| 97 |  | -#    include <stdio.h>
 | 
| 98 |  | -#  endif
 | 
| 99 |  | -#endif
 | 
| 100 |  | -#include <assert.h>
 | 
| 101 | 76 |  | 
| 102 | 77 |  | 
| 103 | 78 | #if !defined(UCL_UNUSED) | 
| Index: apps/installer-nano2g/Makefile | 
| — | — | @@ -163,6 +163,10 @@ | 
| 164 | 164 | @echo [COMCFG] $@ | 
| 165 | 165 | @$(COMPILECONFIG) $< $@ | 
| 166 | 166 |  | 
|  | 167 | +flashfiles/iloader.conf: | 
|  | 168 | +	@echo [CP]     $@ | 
|  | 169 | +	@cp $(ILOADERDIR)/themes/default/source/iloader.conf flashfiles/iloader.conf | 
|  | 170 | + | 
| 167 | 171 | flashfiles/iloader.cfg.ucl: flashfiles/iloader.cfg | 
| 168 | 172 | @echo [UCL]    $< | 
| 169 | 173 | @$(UCLPACK) $< $@ | 
| — | — | @@ -204,5 +208,6 @@ | 
| 205 | 209 |  | 
| 206 | 210 | clean: | 
| 207 | 211 | @rm -rf build | 
|  | 212 | +	@rm -rf flashfiles | 
| 208 | 213 |  | 
| 209 | 214 | .PHONY: all clean uninstaller-nano2g iloader embios embiosldr-ipodnano2g libucl flashfiles $(NAME) | 
| Index: embios/trunk/export/syscallapi.h | 
| — | — | @@ -25,8 +25,10 @@ | 
| 26 | 26 | #define __SYSCALLAPI_H__ | 
| 27 | 27 |  | 
| 28 | 28 |  | 
|  | 29 | +#include "../libc/include/assert.h" | 
|  | 30 | + | 
| 29 | 31 | #include "../global.h" | 
| 30 |  | -#include "../panic.h"  
 | 
|  | 32 | +#include "../panic.h" | 
| 31 | 33 | #include "../console.h" | 
| 32 | 34 | #include "../disk.h" | 
| 33 | 35 | #include "../dir.h" |