diff options
Diffstat (limited to 'apps/plugins/lua/rockaux.c')
-rw-r--r-- | apps/plugins/lua/rockaux.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c new file mode 100644 index 0000000000..2213420ce2 --- /dev/null +++ b/apps/plugins/lua/rockaux.c | |||
@@ -0,0 +1,61 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 Dan Everton (safetydan) | ||
11 | * String function implementations taken from dietlibc 0.31 (GPLv2 License) | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version 2 | ||
16 | * of the License, or (at your option) any later version. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | |||
23 | #include "plugin.h" | ||
24 | |||
25 | #ifndef SIMULATOR | ||
26 | int errno = 0; | ||
27 | #endif | ||
28 | |||
29 | char *strerror(int errnum) | ||
30 | { | ||
31 | (void) errnum; | ||
32 | |||
33 | DEBUGF("strerror()\n"); | ||
34 | |||
35 | return NULL; | ||
36 | } | ||
37 | |||
38 | long floor(long x) | ||
39 | { | ||
40 | (void) x; | ||
41 | |||
42 | DEBUGF("floor()\n"); | ||
43 | |||
44 | return 0; | ||
45 | } | ||
46 | |||
47 | long pow(long x, long y) | ||
48 | { | ||
49 | (void) x; | ||
50 | (void) y; | ||
51 | |||
52 | DEBUGF("pow()\n"); | ||
53 | |||
54 | return 0; | ||
55 | } | ||
56 | |||
57 | int strcoll(const char * str1, const char * str2) | ||
58 | { | ||
59 | return rb->strcmp(str1, str2); | ||
60 | } | ||
61 | |||