Skip to content
Snippets Groups Projects
Verified Commit ddde9ed5 authored by mirabilos's avatar mirabilos Committed by mirabilos
Browse files

up to 9 examples…

parent 763b0f57
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,12 @@ a.out ...@@ -2,6 +2,12 @@ a.out
c c
c2 c2
c3 c3
c4
c5
c6
c7
c8
c9
i i
inputs.h
inputfile inputfile
inputs.h
...@@ -37,10 +37,12 @@ print ...@@ -37,10 +37,12 @@ print
if [[ -s c2 ]]; then if [[ -s c2 ]]; then
print '#if defined(EX2)' print '#if defined(EX2)'
doone c2 doone c2
if [[ -s c3 ]]; then for t in 3 4 5 6 7 8 9; do
print '#elif defined(EX3)' if [[ -s c$t ]]; then
doone c3 print "#elif defined(EX$t)"
fi doone c$t
fi
done
print '#else' print '#else'
doone c doone c
print '#endif' print '#endif'
......
...@@ -37,10 +37,12 @@ print ...@@ -37,10 +37,12 @@ print
if [[ -s c2 ]]; then if [[ -s c2 ]]; then
print '#if defined(EX2)' print '#if defined(EX2)'
doone c2 doone c2
if [[ -s c3 ]]; then for t in 3 4 5 6 7 8 9; do
print '#elif defined(EX3)' if [[ -s c$t ]]; then
doone c3 print "#elif defined(EX$t)"
fi doone c$t
fi
done
print '#else' print '#else'
doone c doone c
print '#endif' print '#endif'
......
...@@ -32,10 +32,12 @@ print ...@@ -32,10 +32,12 @@ print
if [[ -s c2 ]]; then if [[ -s c2 ]]; then
print '#if defined(EX2)' print '#if defined(EX2)'
doone c2 doone c2
if [[ -s c3 ]]; then for t in 3 4 5 6 7 8 9; do
print '#elif defined(EX3)' if [[ -s c$t ]]; then
doone c3 print "#elif defined(EX$t)"
fi doone c$t
fi
done
print '#else' print '#else'
doone c doone c
print '#endif' print '#endif'
......
...@@ -11,10 +11,12 @@ print ...@@ -11,10 +11,12 @@ print
if [[ -s c2 ]]; then if [[ -s c2 ]]; then
print '#if defined(EX2)' print '#if defined(EX2)'
doone c2 doone c2
if [[ -s c3 ]]; then for t in 3 4 5 6 7 8 9; do
print '#elif defined(EX3)' if [[ -s c$t ]]; then
doone c3 print "#elif defined(EX$t)"
fi doone c$t
fi
done
print '#else' print '#else'
doone c doone c
print '#endif' print '#endif'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment