gingerBill
d3eca21e40
Fix style in parse.odin
2020-08-26 22:48:32 +01:00
gingerBill
999d1a022d
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-08-26 22:41:06 +01:00
gingerBill
1f2f3cb315
Fix #712
2020-08-26 22:40:03 +01:00
Platin21
3946f357e8
Update ring.odin
...
Someone missed the T type here ;)
2020-08-22 13:12:18 +02:00
gingerBill
b9b2b90f0c
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-08-18 21:12:02 +01:00
gingerBill
a6a7395be7
Update unicode/letter.odin
2020-08-18 21:11:51 +01:00
Mikkel Hjortshoej
16b50a2f57
Fix #711
2020-08-18 21:57:47 +02:00
gingerBill
e7f54d25d6
Add mem.Allocator_Query_Info and mem.query_info
2020-08-16 23:05:33 +01:00
gingerBill
033b46def8
Add mem.Allocator_Mode.Query_Features, mem.Allocator_Mode_Set, mem.query_features`
2020-08-16 22:07:40 +01:00
gingerBill
1f571f48e5
Add mem.Tracking_Allocator
2020-08-16 21:29:14 +01:00
gingerBill
ec178825ec
Add more sort.compare_* procedures
2020-08-16 12:40:28 +01:00
gingerBill
6158a49618
Make sync.atomic_* operations use when statements instead of switch; Make #panic diverging
2020-08-16 12:34:12 +01:00
gingerBill
674aeffee4
Fix typo
2020-08-12 19:15:47 +01:00
gingerBill
546759bdef
Fix multi_logger_proc to check for lowest_level
2020-08-12 19:01:25 +01:00
gingerBill
9fd35776fd
Fix typos in math.odin
2020-08-04 14:40:11 +01:00
gingerBill
3385fcecb0
Fix typo
2020-08-04 14:31:14 +01:00
gingerBill
804b96a985
Remove unused entities
2020-08-02 15:11:21 +01:00
gingerBill
9cc20954a3
Add sys/windows/synchronization.odin
2020-08-02 15:07:52 +01:00
gingerBill
91ff3e5bca
Add sync/channel_*.odin files
2020-08-02 15:05:04 +01:00
gingerBill
6d032e6f1a
Update package sync
2020-08-02 15:01:17 +01:00
gingerBill
16abfd56e8
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-08-02 14:59:51 +01:00
gingerBill
d1d5f61230
Add intrinsics.alloca
2020-08-02 14:59:39 +01:00
gingerBill
cbfe3571ab
Merge pull request #693 from powerc9000/patch-2
...
Fix pthread_t on Macos.
2020-07-22 22:28:38 +01:00
gingerBill
b04bc21ec6
Merge pull request #704 from oskarnp/log_thread_id
...
Add .Thread_Id option to log package
2020-07-22 22:27:53 +01:00
Oskar Nordquist
36cac87387
Add .Thread_Id option to log package
2020-07-22 17:42:01 +02:00
Oskar Nordquist
a7e38dc063
Implement os.current_thread_id() for Darwin (assumes OSX 10.6 / iOS 3.2 and later)
2020-07-22 17:38:13 +02:00
gingerBill
3a1492fc99
Add sync.Wait_Group
2020-07-15 00:25:37 +01:00
gingerBill
7ae54ae3b4
Add -no-dynamic-literals to disallow dynamic array and map literals
2020-07-14 23:01:34 +01:00
gingerBill
b2beb9512f
Add thread.join_multiple
2020-07-14 21:08:04 +01:00
gingerBill
96ad6d2084
Improve sync.Channel behaviour
2020-07-14 18:43:50 +01:00
gingerBill
6565a49e34
Remove fmt from sync/channel.odin
2020-07-14 16:39:47 +01:00
gingerBill
ce85b73eca
Add sync.Once
2020-07-14 16:38:54 +01:00
gingerBill
fc65aee307
Update sync.Channel
2020-07-14 16:37:29 +01:00
jharler
f9a6777e3a
Added "sep" parameter to logging procs
2020-07-13 08:22:41 -04:00
Clay Murray
83eabe2140
Fix pthread_t on Macos.
...
From some testing with directly using C code, pthread_t on macos is 8 bytes.
This is my test code:
```
#include <assert.h>
#include <stdio.h>
#include <pthread.h>
void* PosixThreadMainRoutine(void* data)
{
// Do some work here.
for (int i = 0; i < 2000000000; i++) {
}
return NULL;
}
pthread_t LaunchThread()
{
// Create the thread using POSIX routines.
pthread_attr_t attr;
pthread_t posixThreadID;
int returnVal;
returnVal = pthread_attr_init(&attr);
assert(!returnVal);
returnVal = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
assert(!returnVal);
int threadError = pthread_create(&posixThreadID, &attr, &PosixThreadMainRoutine, NULL);
returnVal = pthread_attr_destroy(&attr);
assert(!returnVal);
if (threadError != 0)
{
// Report an error.
}
return posixThreadID;
}
int main() {
pthread_t t = LaunchThread();
void ** ret;
printf("%d, %d\n", sizeof(t), sizeof(pthread_t));
int val = pthread_join(t, ret);
printf("%d", val);
return 0;
}
```
running this on macos reports `8, 8`.
Then I made the proposed changes and errors I was having with threads completely went away.
2020-07-11 18:22:56 -06:00
gingerBill
c4067372dd
Fix double declaration
2020-07-10 22:28:48 +01:00
gingerBill
b4e976364a
Add path_unix.odin
2020-07-10 08:42:59 +01:00
gingerBill
642afa4f88
Fix new package path
2020-07-10 08:42:22 +01:00
gingerBill
f65fa0e4a6
Merge pull request #339 from dotbmp/master
...
"core:path" Path library and "core:strings" `split` Utilities
2020-07-10 08:25:24 +01:00
gingerBill
65b9dbe13f
Clean-up OS constants; Clean-up procs_wasm32.odin
2020-07-09 17:21:40 +01:00
gingerBill
94ba182691
Add sync.Benaphore
2020-07-08 23:16:54 +01:00
gingerBill
5b7c83d871
Add strings.pop_byte strings.pop_rune
2020-07-08 23:15:48 +01:00
gingerBill
4059542afb
Merge pull request #673 from kevinw/patch-2
...
add `#config` to odin parser
2020-07-08 23:08:31 +01:00
Mikkel Hjortshoej
d749f5c704
Fix typo
2020-07-02 16:13:49 +02:00
Mikkel Hjortshoej
83f553cd89
Revert to old format and fix : when no file opt specified
2020-07-02 16:11:41 +02:00
Mikkel Hjortshoej
730f9ee0b3
Fix misplaced line number (was wrongly formatted and before procedure)
2020-07-02 15:31:40 +02:00
gingerBill
51e50d3e31
Add intrinsics.type_proc_parameter_type; Add intrinsics.type_proc_return_type
2020-07-01 22:35:38 +01:00
gingerBill
92363da58e
Add -show-system-calls; Update runtime for windows_386; Fix some minor bugs
2020-06-30 10:09:58 +01:00
gingerBill
0ea64182f1
Begin work on windows 386
2020-06-29 17:35:33 +01:00
gingerBill
8478b887a5
Add mem.check_zero and mem.check_zero_ptr
2020-06-29 16:17:40 +01:00