Subversion Repositories Kolibri OS

Rev

Rev 7543 | Rev 7626 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7543 Rev 7545
Line 221... Line 221...
221
int MakePE();
221
int MakePE();
222
int MakeObj();
222
int MakeObj();
223
void CheckUndefClassProc();
223
void CheckUndefClassProc();
Line 224... Line 224...
224
 
224
 
225
/*
-
 
226
 
-
 
227
PAVEL YAKOV
-
 
228
 
-
 
229
char* strupr(char* s)
-
 
230
{
-
 
231
  char* p = s;
-
 
232
  while (*p = toupper(*p)) p++;
-
 
233
  return s;
-
 
234
}
-
 
235
char* strlwr(char* s)
-
 
236
{
-
 
237
  char* p = s;
-
 
238
  while (*p = tolower(*p)) p++;
-
 
239
  return s;
-
 
240
}
-
 
241
int strnicmp(const char* s1, const char* s2, int len)
-
 
242
{
-
 
243
  unsigned char c1,c2;
-
 
244
 
-
 
245
  if(!len)
-
 
246
	return 0;
-
 
247
 
-
 
248
  do{
-
 
249
    c1 = *s1++;
-
 
250
    c2 = *s2++;
-
 
251
    if (!c1||!c2)
-
 
252
      break;
-
 
253
    if (c1 == c2)
-
 
254
      continue;
-
 
255
    c1 = tolower(c1);
-
 
256
    c2 = tolower(c2);
-
 
257
    if (c1!=c2)
-
 
258
      break;
-
 
259
  } while (--len);
-
 
260
  return (int)c1 - (int)c2;
-
 
261
}
-
 
262
*/
-
 
263
 
-
 
264
/*
225
/*
265
void PrintTegList(structteg *tteg)
226
void PrintTegList(structteg *tteg)
266
{
227
{
267
	if(tteg){
228
	if(tteg){
268
		PrintTegList(tteg->left);
229
		PrintTegList(tteg->left);
Line 1173... Line 1134...
1173
void * MALLOC (unsigned long size)
1134
void * MALLOC (unsigned long size)
1174
{
1135
{
1175
void *mem;
1136
void *mem;
1176
	mem=malloc(size);
1137
	mem=malloc(size);
1177
	if(mem==NULL)OutMemory();
1138
	if(mem==NULL)OutMemory();
-
 
1139
#ifdef _UNIX_
-
 
1140
	else memset(mem,0,size);
-
 
1141
#endif
Line 1178... Line 1142...
1178
 
1142
 
Line 1179... Line 1143...
1179
//	if(((unsigned long)mem+size)>maxusedmem)maxusedmem=(unsigned long)mem+size;
1143
//	if(((unsigned long)mem+size)>maxusedmem)maxusedmem=(unsigned long)mem+size;
1180
 
1144