diff options
| author | Christian Jullien <jullien@coltrane.eligis.com> | 2016-09-26 06:42:43 +0200 |
|---|---|---|
| committer | Christian Jullien <jullien@coltrane.eligis.com> | 2016-09-26 06:42:43 +0200 |
| commit | 6db7a2157bd44cdc1a764e8c7a767ea1dee8e006 (patch) | |
| tree | ec164a0fdd2f5ef8a993d888aea82343f679637f /libtcc.c | |
| parent | 30238b1ebdef35ea2840f4180387d488ae2daa9c (diff) | |
| parent | ff158bffe6f7ddc2b727069daa238b396c318e14 (diff) | |
| download | tinycc-6db7a2157bd44cdc1a764e8c7a767ea1dee8e006.tar.gz tinycc-6db7a2157bd44cdc1a764e8c7a767ea1dee8e006.tar.bz2 | |
Merge branch 'mob' of git://repo.or.cz/tinycc into mypatch
Add Visual Studio processor identification
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -135,7 +135,7 @@ BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved) /********************************************************/ /* copy a string and truncate it. */ -PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s) +ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s) { char *q, *q_end; int c; @@ -155,7 +155,7 @@ PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s) } /* strcat and truncate. */ -PUB_FUNC char *pstrcat(char *buf, int buf_size, const char *s) +ST_FUNC char *pstrcat(char *buf, int buf_size, const char *s) { int len; len = strlen(buf); @@ -164,7 +164,7 @@ PUB_FUNC char *pstrcat(char *buf, int buf_size, const char *s) return buf; } -PUB_FUNC char *pstrncpy(char *out, const char *in, size_t num) +ST_FUNC char *pstrncpy(char *out, const char *in, size_t num) { memcpy(out, in, num); out[num] = '\0'; @@ -1544,7 +1544,7 @@ typedef struct stat file_info_t; typedef BY_HANDLE_FILE_INFORMATION file_info_t; #endif -int get_file_info(const char *fname, file_info_t *out_info) +static int get_file_info(const char *fname, file_info_t *out_info) { #ifndef _WIN32 return stat(fname, out_info); @@ -1561,7 +1561,7 @@ int get_file_info(const char *fname, file_info_t *out_info) #endif } -int is_dir(file_info_t *info) +static int is_dir(file_info_t *info) { #ifndef _WIN32 return S_ISDIR(info->st_mode); @@ -1571,7 +1571,7 @@ int is_dir(file_info_t *info) #endif } -int is_same_file(const file_info_t *fi1, const file_info_t *fi2) +static int is_same_file(const file_info_t *fi1, const file_info_t *fi2) { #ifndef _WIN32 return fi1->st_dev == fi2->st_dev && |
