Change noinline to dontinline (#312)

We defined `noinline` as an abbreviation for the longer version
`__attribute__((__noinline__))` which caused name clashes since
third party codebases often write it as `__attribute__((noinline))`.
This commit is contained in:
Gautham 2021-11-13 04:42:18 +05:30 committed by GitHub
parent ca611efc43
commit 6f658f058b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 122 additions and 122 deletions

View file

@ -34,7 +34,7 @@ static uint32_t KnuthMultiplicativeHash32(const void *buf, size_t size) {
return h;
}
static textwindows noinline uint32_t GetUserNameHash(void) {
static textwindows dontinline uint32_t GetUserNameHash(void) {
char16_t buf[257];
uint32_t size = ARRAYLEN(buf);
GetUserName(&buf, &size);

View file

@ -28,7 +28,7 @@
#include "libc/nt/thread.h"
#include "libc/str/str.h"
static textwindows noinline int sys_sched_setaffinity_nt(int pid,
static textwindows dontinline int sys_sched_setaffinity_nt(int pid,
uint64_t bitsetsize,
const void *bitset) {
int rc;

View file

@ -28,7 +28,7 @@
#include "libc/str/str.h"
#include "libc/sysv/errfuns.h"
static textwindows noinline int sys_ttyname_nt(int fd, char *buf, size_t size) {
static textwindows dontinline int sys_ttyname_nt(int fd, char *buf, size_t size) {
uint32_t mode;
if (GetConsoleMode(g_fds.p[fd].handle, &mode)) {
if (mode & kNtEnableVirtualTerminalInput) {