2016-04-16 03:46:41 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifndef _FILENAMEH_
|
|
|
|
#define _FILENAMEH_
|
|
|
|
|
|
|
|
char *_filename_a(const char *f);
|
|
|
|
wchar_t *_filename_w(const wchar_t *f);
|
|
|
|
char *_fileext_a(const char *f);
|
|
|
|
wchar_t *_fileext_w(const wchar_t *f);
|
2016-07-05 08:28:44 +00:00
|
|
|
char *_filename_noext_a(char *dest, const char *f);
|
|
|
|
wchar_t *_filename_noext_w(wchar_t *dest, const wchar_t *f);
|
|
|
|
char *_filepath_a(const char *fname, char *fpath);
|
|
|
|
wchar_t *_filepath_w(const wchar_t *fname, wchar_t *fpath);
|
2016-04-16 03:46:41 +00:00
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define _filename _filename_w
|
|
|
|
#define _fileext _fileext_w
|
|
|
|
#define _filepath _filepath_w
|
2016-07-05 08:28:44 +00:00
|
|
|
#define _filename_noext _filename_noext_w
|
2016-04-16 03:46:41 +00:00
|
|
|
#else // ANSI
|
|
|
|
#define _filename _filename_a
|
|
|
|
#define _fileext _fileext_a
|
|
|
|
#define _filepath _filepath_a
|
2016-07-05 08:28:44 +00:00
|
|
|
#define _filename_noext _filename_noext_a
|
2016-04-16 03:46:41 +00:00
|
|
|
#endif
|
|
|
|
|
2016-07-05 08:28:44 +00:00
|
|
|
#endif /* _FILENAMEH_ */
|