mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:53:03 +00:00
[REACTOS] Use standard conforming names
- Use _alloca instead of non-standard alloca - Use _TCHAR instead of non-standard TCHAR - Use _off_t instead of deprecated off_t - Use _O_BINARY instead of O_BINARY
This commit is contained in:
parent
1de09c477c
commit
b707be90a1
10 changed files with 41 additions and 40 deletions
|
@ -278,7 +278,7 @@ ident_len(LPCTSTR p)
|
|||
#define PARSE_IDENT(ident, identlen, p) \
|
||||
do { \
|
||||
identlen = ident_len(p); \
|
||||
ident = (LPTSTR)alloca((identlen + 1) * sizeof(TCHAR)); \
|
||||
ident = (LPTSTR)_alloca((identlen + 1) * sizeof(TCHAR)); \
|
||||
memmove(ident, p, identlen * sizeof(TCHAR)); \
|
||||
ident[identlen] = 0; \
|
||||
p += identlen; \
|
||||
|
@ -681,7 +681,7 @@ evaluate:
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
buf = (LPTSTR)alloca(32 * sizeof(TCHAR));
|
||||
buf = (LPTSTR)_alloca(32 * sizeof(TCHAR));
|
||||
_sntprintf(buf, 32, _T("%i"), identval);
|
||||
SetEnvironmentVariable(ident, buf); // TODO FIXME - check return value
|
||||
exprval = identval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue