History

pstrcpy looks to be needed by Windows win32/win64 builds. Reverted as PUB_FUNC to allow tcc.exe build again.

Christian Jullien committed 10 years ago

Commit e037fd31 parent 6db7a212 files · +2 −2Browse files

Unified · Split

2 files
  1. libtcc.c +1 −1
  2. tcc.h +1 −1
libtcc.c+1−1
@@ -135,7 +135,7 @@ BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved) · 134 unmodified lines
135 135
136/********************************************************/136/********************************************************/
137/* copy a string and truncate it. */137/* copy a string and truncate it. */
138ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s)138PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s)
139{139{
140 char *q, *q_end;140 char *q, *q_end;
141 int c;141 int c;
tcc.h+1−1
@@ -1167,7 +1167,7 @@ ST_DATA struct TCCState *tcc_state; · 1166 unmodified lines
1167#define AFF_PREPROCESS 0x0004 /* preprocess file */1167#define AFF_PREPROCESS 0x0004 /* preprocess file */
1168 1168
1169/* public functions currently used by the tcc main function */1169/* public functions currently used by the tcc main function */
1170ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s);1170PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s);
1171ST_FUNC char *pstrcat(char *buf, int buf_size, const char *s);1171ST_FUNC char *pstrcat(char *buf, int buf_size, const char *s);
1172ST_FUNC char *pstrncpy(char *out, const char *in, size_t num);1172ST_FUNC char *pstrncpy(char *out, const char *in, size_t num);
1173PUB_FUNC char *tcc_basename(const char *name);1173PUB_FUNC char *tcc_basename(const char *name);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t