00001
00002
00003
00004
00005
00006 #if !defined(__ESTPATCH_H__)
00007 #define __ESTPATCH_H__
00008
00009 #include <e32math.h>
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef strcpy
00019 #define strcpy(d,s) Mem::Copy(d, s, User::StringLength((TUint8*)s) )
00020 #endif
00021
00022
00023
00024
00025
00026 #ifndef memset
00027 #define memset(dst, what, size) Mem::Fill(dst, size, what)
00028 #endif
00029
00030
00031
00032
00033
00034 char* strchr(const char* src, int c);
00035
00036
00037
00038
00039
00040
00041 #ifndef strncpy
00042 #define strncpy(dst, src, n) Mem::Copy(dst, src, n)
00043 #endif
00044
00045
00046
00047
00048
00049 #ifndef memcpy
00050 #define memcpy(dst, src, n) Mem::Copy(dst, src, n)
00051 #endif
00052
00053
00054
00055
00056
00057 #ifndef strlen
00058 #define strlen(p) (User::StringLength((TUint8*)p) )
00059 #endif
00060
00061
00062
00063
00064
00065 #ifndef strcmp
00066 #define strcmp(s1, s2) Mem::Compare((TUint8*) s1, User::StringLength((TUint8*)s1), (TUint8*) s2, User::StringLength((TUint8*)s2) )
00067 #endif
00068
00069
00070
00071
00072
00073 #ifndef rand
00074 #define rand() 1
00075 #endif
00076
00078
00079
00080
00081
00082 #ifndef FILE
00083 #define FILE void //TODO
00084 #endif
00085
00086
00087
00088
00089
00090 #ifndef fopen
00091 #define fopen(a, b) ((void*)0) //TODO
00092 #endif
00093
00094
00095
00096
00097 #ifndef fclose
00098 #define fclose(f) (1) //TODO
00099 #endif
00100
00101
00102
00103
00104 #ifndef fwrite
00105 #define fwrite(a, b, c, d) (0) //TODO
00106 #endif
00107
00108
00109
00110
00111 #ifndef fread
00112 #define fread(a, b, c, d) (0) //TODO
00113 #endif
00114
00115
00116
00117
00118 #ifndef fprintf
00119 #define fprintf (void) //TODO
00120 #endif
00121
00122
00123
00124
00125 #ifndef fputc
00126 #define fputc(a, b) (0) //TODO
00127 #endif
00128
00129
00130
00131
00132 #ifndef fgetc
00133 #define fgetc(a) (0) //TODO
00134 #endif
00135
00136
00137
00138
00139 #ifndef fseek
00140 #define fseek(a, b, c) (0) //TODO
00141 #endif
00142
00143
00144
00145
00146 #ifndef ftell
00147 #define ftell(a) (0) //TODO
00148 #endif
00149
00150
00151
00152
00153 #ifndef perror
00154 #define perror(a) RDebug::Print( _L(a) )
00155 #endif
00156
00157
00158
00159
00160 #ifndef rewind
00161 #define rewind(a)
00162 #endif
00163
00164
00165
00166
00167
00168 #ifndef tmpfile
00169 #define tmpfile() ((void*)0)
00170 #endif
00171
00172
00173
00174
00175
00176
00177 #ifndef EOF
00178 #define EOF (-1)
00179 #endif
00180
00181
00182
00183
00184 #ifndef printf
00185 #define printf
00186 #endif
00187
00188
00189
00190
00191
00192 #ifndef fscanf
00193 #define fscanf
00194 #endif
00195
00196
00197
00198
00199
00200 #ifndef feof
00201 #define feof(a) (0)
00202 #endif
00203
00204
00205
00206
00207
00208 #ifndef sprintf
00209 #define sprintf (void)
00210 #endif
00211
00212
00213
00214
00215 #ifndef fgets
00216 #define fgets(a, b, c) (0)
00217 #endif
00218
00219
00220
00221
00222
00223 #ifndef sscanf
00224 #define sscanf(a,b,c,d) (1)
00225 #endif
00226
00227
00228
00229
00230
00231
00232 #ifndef atoi
00233 #define atoi(a) (0)
00234 #endif
00235
00236
00237
00238
00239 #define opendir(a) (0)
00240 #define closedir(a)
00241 #define readdir(a) (0)
00242
00243 #define DIR void
00244
00245 struct direct
00246 {
00247 unsigned short d_ino;
00248 int d_reclen;
00249 int d_namlen;
00250 char d_name[100];
00251 };
00252
00253
00254
00255
00256
00257 #define stat(a, b)
00258
00259
00260 #endif // __ESTPATCH_H__