diff options
| author | Jean-Claude Beaudoin <jean.claude.beaudoin@gmail.com> | 2016-09-25 22:32:41 -0400 |
|---|---|---|
| committer | Jean-Claude Beaudoin <jean.claude.beaudoin@gmail.com> | 2016-09-25 22:32:41 -0400 |
| commit | ff158bffe6f7ddc2b727069daa238b396c318e14 (patch) | |
| tree | 444eacffe5d11c0ee78e7ea8de349005891cb655 /libtcc.c | |
| parent | e38f49e32acfbf2217e65c51a1520eb90ad5ba71 (diff) | |
| download | tinycc-ff158bffe6f7ddc2b727069daa238b396c318e14.tar.gz tinycc-ff158bffe6f7ddc2b727069daa238b396c318e14.tar.bz2 | |
Rein in unintended external functions.
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'; @@ -1538,7 +1538,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); @@ -1555,7 +1555,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); @@ -1565,7 +1565,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 && |
