hxc_sleep function corrected. libhxcadaptor functions names corrected.

git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libhxcadaptor/trunk@467 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
Jean-François DEL NERO
2012-07-18 12:51:15 +00:00
parent d2174622c9
commit e599c29a07
3 changed files with 25 additions and 14 deletions
+4 -4
View File
@@ -257,7 +257,7 @@ int hxc_stat( const char *filename, struct stat *buf)
return hxc_statex(filename,buf);
}
long find_first_file(char *folder, char *file, filefoundinfo* fileinfo)
long hxc_find_first_file(char *folder, char *file, filefoundinfo* fileinfo)
{
#if defined (WIN32)
@@ -356,7 +356,7 @@ long find_first_file(char *folder, char *file, filefoundinfo* fileinfo)
return 0;
}
long find_next_file(long handleff, char *folder, char *file, filefoundinfo* fileinfo)
long hxc_find_next_file(long handleff, char *folder, char *file, filefoundinfo* fileinfo)
{
long ret;
#if defined (WIN32)
@@ -422,7 +422,7 @@ long find_next_file(long handleff, char *folder, char *file, filefoundinfo* file
return ret;
}
long find_close(long handle)
long hxc_find_close(long handle)
{
#if defined (WIN32)
FindClose((void*)handle);
@@ -435,7 +435,7 @@ long find_close(long handle)
return 0;
}
char * getcurrentdirectory(char *currentdirectory,int buffersize)
char * hxc_getcurrentdirectory(char *currentdirectory,int buffersize)
{
memset(currentdirectory,0,buffersize);
#if defined (WIN32)
+15 -4
View File
@@ -186,12 +186,23 @@ int hxc_waitevent(HXCFLOPPYEMULATOR* floppycontext,int id,int timeout)
#endif
}
#ifndef WIN32
void hxc_msleep (unsigned int ms) {
int microsecs;
struct timeval tv;
microsecs = ms * 1000;
tv.tv_sec = microsecs / 1000000;
tv.tv_usec = microsecs % 1000000;
select (0, NULL, NULL, NULL, &tv);
}
#endif
void hxc_pause(int ms)
{
#ifdef WIN32
Sleep(ms);
#else
sleep(1);
hxc_msleep(ms);
#endif
}
@@ -250,7 +261,7 @@ int hxc_createthread(HXCFLOPPYEMULATOR* floppycontext,void* hwcontext,THREADFUNC
}*/
#endif
char * strupper(char * str)
char * hxc_strupper(char * str)
{
int i;
@@ -268,7 +279,7 @@ char * strupper(char * str)
return str;
}
char * strlower(char * str)
char * hxc_strlower(char * str)
{
int i;
+6 -6
View File
@@ -27,8 +27,8 @@ int hxc_createthread(HXCFLOPPYEMULATOR* floppycontext,void* hwcontext,THREADFUNC
#ifndef WIN32
//void strlwr(char *string)
#endif
char * strupper(char * str);
char * strlower(char * str);
char * hxc_strupper(char * str);
char * hxc_strlower(char * str);
/////////////// File functions ////////////////
@@ -42,11 +42,11 @@ int hxc_fclose(FILE * f);
#endif
int hxc_stat( const char *filename, struct stat *buf);
long find_first_file(char *folder,char *file,filefoundinfo* fileinfo);
long find_next_file(long handleff,char *folder,char *file,filefoundinfo* fileinfo);
long find_close(long handle);
long hxc_find_first_file(char *folder,char *file,filefoundinfo* fileinfo);
long hxc_find_next_file(long handleff,char *folder,char *file,filefoundinfo* fileinfo);
long hxc_find_close(long handle);
int hxc_mkdir(char * folder);
char * getcurrentdirectory(char *currentdirectory,int buffersize);
char * hxc_getcurrentdirectory(char *currentdirectory,int buffersize);