Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit cdee9a1

Browse files
authored
Merge pull request #19 from yuvaldolev/master
Added support for building 4coder_fleury for macOS
2 parents 68ab626 + f00feb3 commit cdee9a1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

4coder_fleury_calc.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,8 @@ GetDataFromSourceCode(Application_Links *app, Buffer_ID buffer, Text_Layout_ID t
11541154
DataChunk *last_data_chunk = data_chunk;
11551155

11561156
b32 is_negative = 0;
1157+
int data_count;
1158+
float *data;
11571159
for(;;)
11581160
{
11591161
token = token_it_read(&it);
@@ -1199,8 +1201,8 @@ GetDataFromSourceCode(Application_Links *app, Buffer_ID buffer, Text_Layout_ID t
11991201
}
12001202
}
12011203

1202-
int data_count = 0;
1203-
float *data = push_array_zero(arena, float, total_value_count);
1204+
data_count = 0;
1205+
data = push_array_zero(arena, float, total_value_count);
12041206
for(DataChunk *chunk = first_data_chunk; chunk; chunk = chunk->next)
12051207
{
12061208
for(int i = 0; i < ArrayCount(chunk->values); i += 1)

build_mac.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
../bin/buildsuper_x64-mac.sh 4coder_fleury.cpp
6+
7+
cp custom_4coder.so ../../custom_4coder.so
8+
cp -r custom_4coder.so.dSYM ../../custom_4coder.so.dSYM

0 commit comments

Comments
 (0)