Subversion Repositories Kolibri OS

Rev

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

Rev 5598 Rev 5631
Line 289... Line 289...
289
		ESDWORD[dir_buf] = free(buf);
289
		ESDWORD[dir_buf] = free(buf);
290
	}
290
	}
291
	return error;
291
	return error;
292
}
292
}
Line 293... Line -...
293
 
-
 
294
:dword notify(dword notify_param)
-
 
295
{
-
 
296
	return RunProgram("@notify", notify_param);
-
 
297
}
-
 
298
 
293
 
299
:dword abspath(dword relative_path) //GetAbsolutePathFromRelative()
294
:dword abspath(dword relative_path) //GetAbsolutePathFromRelative()
300
{
295
{
301
	char absolute_path[4096];
296
	char absolute_path[4096];
302
	if (ESBYTE[relative_path]=='/')
297
	if (ESBYTE[relative_path]=='/')
Line 322... Line 317...
322
  else strncpy(#size_nm, "b ",2);
317
  else strncpy(#size_nm, "b ",2);
323
  while (bytes>1023) bytes/=1024;
318
  while (bytes>1023) bytes/=1024;
324
  sprintf(#ConvertSize_size_prefix,"%d %s",bytes,#size_nm);
319
  sprintf(#ConvertSize_size_prefix,"%d %s",bytes,#size_nm);
325
  return #ConvertSize_size_prefix;
320
  return #ConvertSize_size_prefix;
326
}
321
}
-
 
322
:dword notify(dword notify_param)
-
 
323
{
-
 
324
	return RunProgram("@notify", notify_param);
327
 
325
}
328
:dword ConvertSizeToKb(unsigned int bytes)
326
:dword ConvertSizeToKb(unsigned int bytes)
329
{
327
{
330
	unsigned char size[25]=0;
328
	unsigned char size[25]=0;
331
	unsigned int kb;
329
	unsigned int kb;
332
	dword kb_line;
330
	dword kb_line;