Add VSCode settings

This commit is contained in:
Justine Tunney 2024-08-25 11:02:31 -07:00
parent bb06230f1e
commit 908b7a82ca
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 37 additions and 4 deletions

36
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,36 @@
{
"C_Cpp.default.compilerPath": ".cosmocc/3.7.1/bin/aarch64-linux-cosmo-c++",
"C_Cpp.default.compilerArgs": [
"-nostdinc",
"-nostdlib",
"-iquote.",
"-isystemlibc/isystem",
"-isystemthird_party/libcxx",
"-includelibc/integral/normalize.inc",
"-D_COSMO_SOURCE",
"-D__aarch64__"
],
"[c]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"[cpp]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"[makefile]": {
"editor.tabSize": 8,
"editor.insertSpaces": false
},
"[make]": {
"editor.tabSize": 8,
"editor.insertSpaces": false
},
"[assembly]": {
"editor.tabSize": 8,
"editor.insertSpaces": true
},
"files.associations": {
"log.h": "c"
}
}

View file

@ -27,7 +27,7 @@
* *
* @return null always * @return null always
*/ */
void *dlopen(const char *, int) { void *dlopen(const char *, int) {
return 0; return 0;
} }

View file

@ -48,8 +48,6 @@ void PrintGarbage(void);
void PrintGarbageNumeric(FILE *); void PrintGarbageNumeric(FILE *);
void PrintWindowsMemory(const char *, size_t); void PrintWindowsMemory(const char *, size_t);
#ifndef __STRICT_ANSI__
#define _LOG_UNLIKELY(x) __builtin_expect(!!(x), 0) #define _LOG_UNLIKELY(x) __builtin_expect(!!(x), 0)
extern unsigned __log_level; /* log level for runtime check */ extern unsigned __log_level; /* log level for runtime check */
@ -245,7 +243,6 @@ void vffatalf(ARGS, va_list) asm("vflogf") ATTRV relegated wontreturn libcesque;
#undef ATTR #undef ATTR
#undef ATTRV #undef ATTRV
#endif /* __STRICT_ANSI__ */
COSMOPOLITAN_C_END_ COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_LIBC_LOG_LOG_H_ */ #endif /* COSMOPOLITAN_LIBC_LOG_LOG_H_ */
#endif /* _COSMO_SOURCE */ #endif /* _COSMO_SOURCE */