Skip to content

Commit 4a3027f

Browse files
committed
Switch to C .gitignore
Fix enum & union issues from previous commit Switch to C .gitignore Remove old make targets
1 parent caa752a commit 4a3027f

File tree

4 files changed

+66
-120
lines changed

4 files changed

+66
-120
lines changed

.gitignore

+56-100
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,57 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
5-
6-
# C extensions
1+
# Prerequisites
2+
*.d
3+
4+
# Object files
5+
*.o
6+
*.ko
7+
*.obj
8+
*.elf
9+
10+
# Linker output
11+
*.ilk
12+
*.map
13+
*.exp
14+
15+
# Precompiled Headers
16+
*.gch
17+
*.pch
18+
19+
# Libraries
20+
*.lib
21+
*.a
22+
*.la
23+
*.lo
24+
25+
# Shared objects (inc. Windows DLLs)
26+
*.dll
727
*.so
8-
9-
# Distribution / packaging
10-
.Python
11-
env/
12-
build/
13-
develop-eggs/
14-
dist/
15-
downloads/
16-
eggs/
17-
.eggs/
18-
lib/
19-
lib64/
20-
parts/
21-
sdist/
22-
var/
23-
wheels/
24-
*.egg-info/
25-
.installed.cfg
26-
*.egg
27-
28-
# PyInstaller
29-
# Usually these files are written by a python script from a template
30-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31-
*.manifest
32-
*.spec
33-
34-
# Installer logs
35-
pip-log.txt
36-
pip-delete-this-directory.txt
37-
38-
# Unit test / coverage reports
39-
htmlcov/
40-
.tox/
41-
.coverage
42-
.coverage.*
43-
.cache
44-
nosetests.xml
45-
coverage.xml
46-
*.cover
47-
.hypothesis/
48-
49-
# Translations
50-
*.mo
51-
*.pot
52-
53-
# Django stuff:
54-
*.log
55-
local_settings.py
56-
57-
# Flask stuff:
58-
instance/
59-
.webassets-cache
60-
61-
# Scrapy stuff:
62-
.scrapy
63-
64-
# Sphinx documentation
65-
docs/_build/
66-
67-
# PyBuilder
68-
target/
69-
70-
# Jupyter Notebook
71-
.ipynb_checkpoints
72-
73-
# pyenv
74-
.python-version
75-
76-
# celery beat schedule file
77-
celerybeat-schedule
78-
79-
# SageMath parsed files
80-
*.sage.py
81-
82-
# dotenv
83-
.env
84-
85-
# virtualenv
86-
.venv
87-
venv/
88-
ENV/
89-
90-
# Spyder project settings
91-
.spyderproject
92-
.spyproject
93-
94-
# Rope project settings
95-
.ropeproject
96-
97-
# mkdocs documentation
98-
/site
99-
100-
# mypy
101-
.mypy_cache/
28+
*.so.*
29+
*.dylib
30+
31+
# Executables
32+
*.exe
33+
*.out
34+
*.app
35+
*.i*86
36+
*.x86_64
37+
*.hex
38+
tis
39+
tis.f
40+
41+
# Debug files
42+
*.dSYM/
43+
*.su
44+
*.idb
45+
*.pdb
46+
47+
# Kernel Module Compile Results
48+
*.mod*
49+
*.cmd
50+
.tmp_versions/
51+
modules.order
52+
Module.symvers
53+
Mkfile.old
54+
dkms.conf
55+
56+
# Editor files
57+
*.swp

Makefile

+3-15
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,12 @@ tis_io.o: tis_types.h
1212
tis_node.o: tis_types.h tis_node.h tis_ops.h tis_io.h
1313
tis_ops.o: tis_types.h tis_node.h
1414

15-
tis.f: tis.f.o tis_io.o tis_node.o tis_ops.o
16-
${CC} $^ -o $@
17-
tis.f.o: tis_types.h tis_node.h
18-
tis.f.c: tis.c tis_types.h tis_ops.h
19-
grep "#include <" $< > $@
20-
grep -v "#include <" $< > tis.temp.c
21-
${CPP} tis.temp.c -o tis.temp.i
22-
grep -v "^#" tis.temp.i >> $@
23-
-${RM} tis.temp.c tis.temp.i
15+
all: tis
2416

25-
all: tis tis.f
26-
27-
clean: cleanobj cleanexe cleanf
17+
clean: cleanobj cleanexe
2818
cleanobj:
2919
-${RM} ${OBJECTS}
3020
cleanexe:
3121
-${RM} tis
32-
cleanf:
33-
-${RM} tis.f tis.f.o tis.f.c
3422

35-
.PHONY: all clean cleanobj cleanexe cleanf
23+
.PHONY: all clean cleanobj cleanexe

tis.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ int init_layout(tis_t* tis, char* layoutfile, int layoutmode) {
247247
// set first input to TIS_IO_TYPE_IOSTREAM_NUMERIC
248248
tis->inputs[0] = calloc(1, sizeof(tis_io_node_t));
249249
tis->inputs[0]->type = TIS_IO_TYPE_IOSTREAM_ASCII;
250-
tis->inputs[0]->file = stdin;
250+
tis->inputs[0]->file.file = stdin;
251251
// set last output to TIS_IO_TYPE_IOSTREAM_NUMERIC
252252
tis->outputs[tis->cols - 1] = calloc(1, sizeof(tis_io_node_t));
253253
tis->outputs[tis->cols - 1]->type = TIS_IO_TYPE_IOSTREAM_ASCII;
254-
tis->outputs[tis->cols - 1]->file = stdout;
254+
tis->outputs[tis->cols - 1]->file.file = stdout;
255255
}
256256

257257
return INIT_OK;

tis_io.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ tis_op_result_t input(tis_io_node_t* io, int* value) {
2121
}
2222
*value = clamp(in);
2323
break;
24-
case TIS_IO_TYPE_IGENERATOR_ALGEBRAIC:
25-
case TIS_IO_TYPE_IGENERATOR_CONSTANT:
24+
case TIS_IO_TYPE_IGENERATOR_LIST:
2625
case TIS_IO_TYPE_IGENERATOR_CYCLIC:
2726
case TIS_IO_TYPE_IGENERATOR_RANDOM:
28-
case TIS_IO_TYPE_IGENERATOR_SEQUENCE:
27+
case TIS_IO_TYPE_IGENERATOR_ALGEBRAIC:
28+
case TIS_IO_TYPE_IGENERATOR_GEOMETRIC:
29+
case TIS_IO_TYPE_IGENERATOR_HARMONIC:
30+
case TIS_IO_TYPE_IGENERATOR_OEIS:
2931
default:
3032
error("Not yet implemented\n");
3133
return TIS_OP_RESULT_ERR;

0 commit comments

Comments
 (0)