.
This commit is contained in:
parent
603b5a4cb6
commit
93b05f3060
3 changed files with 3 additions and 11 deletions
1
colla.c
1
colla.c
|
|
@ -1116,7 +1116,6 @@ bool glob__match_here(instream_t *g, instream_t *t);
|
||||||
|
|
||||||
bool glob__match_star(instream_t *g, instream_t *t) {
|
bool glob__match_star(instream_t *g, instream_t *t) {
|
||||||
char c = istr_get(g);
|
char c = istr_get(g);
|
||||||
char n = istr_peek(g);
|
|
||||||
do {
|
do {
|
||||||
if (istr_get(t) == c) {
|
if (istr_get(t) == c) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
12
colla.h
12
colla.h
|
|
@ -16,7 +16,7 @@
|
||||||
#else
|
#else
|
||||||
#include <uchar.h>
|
#include <uchar.h>
|
||||||
#ifndef thread_local
|
#ifndef thread_local
|
||||||
#define thread_local _Thread_local
|
#define thread_local __declspec(thread)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -157,13 +157,6 @@ void colla_cleanup(void);
|
||||||
#define GB(n) (((u64)n) << 30)
|
#define GB(n) (((u64)n) << 30)
|
||||||
#define TB(n) (((u64)n) << 40)
|
#define TB(n) (((u64)n) << 40)
|
||||||
|
|
||||||
#if COLLA_WIN
|
|
||||||
#define force_inline __forceinline
|
|
||||||
#else
|
|
||||||
// TODO
|
|
||||||
#define force_inline inline
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if COLLA_DEBUG
|
#if COLLA_DEBUG
|
||||||
#define colla__assert(file, line, cond, ...) do { if (!(cond)) fatal(file ":" line " ASSERT FAILED: (" COLLA__STRINGIFY(cond) ") " __VA_ARGS__); } while (0)
|
#define colla__assert(file, line, cond, ...) do { if (!(cond)) fatal(file ":" line " ASSERT FAILED: (" COLLA__STRINGIFY(cond) ") " __VA_ARGS__); } while (0)
|
||||||
#define colla_assert(...) colla__assert(__FILE__, COLLA__STRINGIFY(__LINE__), __VA_ARGS__)
|
#define colla_assert(...) colla__assert(__FILE__, COLLA__STRINGIFY(__LINE__), __VA_ARGS__)
|
||||||
|
|
@ -195,6 +188,8 @@ typedef int16_t i16;
|
||||||
typedef int32_t i32;
|
typedef int32_t i32;
|
||||||
typedef int64_t i64;
|
typedef int64_t i64;
|
||||||
|
|
||||||
|
typedef u32 b32;
|
||||||
|
|
||||||
typedef size_t usize;
|
typedef size_t usize;
|
||||||
typedef ptrdiff_t isize;
|
typedef ptrdiff_t isize;
|
||||||
|
|
||||||
|
|
@ -1460,4 +1455,3 @@ str_t pretty_print_get_stringv(arena_t *arena, const char *fmt, va_list args);
|
||||||
usize pretty_print_get_length(strview_t view);
|
usize pretty_print_get_length(strview_t view);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1433,4 +1433,3 @@ void sk_destroy_event(oshandle_t handle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue