Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
5f878531
Commit
5f878531
authored
Jun 08, 2014
by
Jeroen Vreeken
Browse files
Do not build unneeded header files
Remove some old (generated) header files from the archive.
parent
623e3103
Changes
9
Hide whitespace changes
Inline
Side-by-side
controller/block/block_and2.h
deleted
100644 → 0
View file @
623e3103
/* Automaticly generated block 'and2' */
#ifndef _INCLUDE_and2_H_
#define _INCLUDE_and2_H_
struct
controller_block
*
block_and2_create
(
char
*
name
);
#endif
/* _INCLUDE_and2_H_ */
controller/block/block_not.h
deleted
100644 → 0
View file @
623e3103
/* Automaticly generated block 'not' */
#ifndef _INCLUDE_not_H_
#define _INCLUDE_not_H_
struct
controller_block
*
block_not_create
(
char
*
name
);
#endif
/* _INCLUDE_not_H_ */
controller/block/block_or2.h
deleted
100644 → 0
View file @
623e3103
/* Automaticly generated block 'or2' */
#ifndef _INCLUDE_or2_H_
#define _INCLUDE_or2_H_
struct
controller_block
*
block_or2_create
(
char
*
name
);
#endif
/* _INCLUDE_or2_H_ */
controller/block/block_or3.h
deleted
100644 → 0
View file @
623e3103
/* Automaticly generated block 'or3' */
#ifndef _INCLUDE_or3_H_
#define _INCLUDE_or3_H_
struct
controller_block
*
block_or3_create
(
char
*
name
);
#endif
/* _INCLUDE_or3_H_ */
controller/block/block_or4.h
deleted
100644 → 0
View file @
623e3103
/* Automaticly generated block 'or4' */
#ifndef _INCLUDE_or4_H_
#define _INCLUDE_or4_H_
struct
controller_block
*
block_or4_create
(
char
*
name
);
#endif
/* _INCLUDE_or4_H_ */
controller/block/block_register.h
deleted
100644 → 0
View file @
623e3103
/* Automaticly generated block 'register' */
#ifndef _INCLUDE_register_H_
#define _INCLUDE_register_H_
struct
controller_block
*
block_register_create
(
char
*
name
);
#endif
/* _INCLUDE_register_H_ */
controller/block/block_setreset.h
deleted
100644 → 0
View file @
623e3103
/* Automaticly generated block 'setreset' */
#ifndef _INCLUDE_setreset_H_
#define _INCLUDE_setreset_H_
struct
controller_block
*
block_setreset_create
(
char
*
name
);
#endif
/* _INCLUDE_setreset_H_ */
controller/block/il2c/il2c.c
View file @
5f878531
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#define IL2C_ACCU_REAL "_il2c_acc_double"
#define IL2C_ACCU_REAL "_il2c_acc_double"
#define IL2C_ACCU_REAL_TYPE REAL64SYM
#define IL2C_ACCU_REAL_TYPE REAL64SYM
#undef IL2C_GEN_HEADER
char
*
il2c_blockname
=
"il2c"
;
char
*
il2c_blockname
=
"il2c"
;
char
*
il2c_logname
;
char
*
il2c_logname
;
...
@@ -38,7 +40,9 @@ extern FILE *yyin;
...
@@ -38,7 +40,9 @@ extern FILE *yyin;
int
yyget_lineno
(
void
);
int
yyget_lineno
(
void
);
FILE
*
il2c_cout
;
FILE
*
il2c_cout
;
#ifdef IL2C_GEN_HEADER
FILE
*
il2c_hout
;
FILE
*
il2c_hout
;
#endif
void
yyerror
(
char
const
*
s
)
void
yyerror
(
char
const
*
s
)
...
@@ -832,6 +836,7 @@ void il2c_block_body(void)
...
@@ -832,6 +836,7 @@ void il2c_block_body(void)
fprintf
(
il2c_cout
,
"}
\n
"
);
fprintf
(
il2c_cout
,
"}
\n
"
);
}
}
#ifdef IL2C_GEN_HEADER
void
il2c_block_header
(
void
)
void
il2c_block_header
(
void
)
{
{
fprintf
(
il2c_hout
,
"/* Automaticly generated block '%s' */
\n
"
,
il2c_blockname
);
fprintf
(
il2c_hout
,
"/* Automaticly generated block '%s' */
\n
"
,
il2c_blockname
);
...
@@ -846,6 +851,7 @@ void il2c_block_header(void)
...
@@ -846,6 +851,7 @@ void il2c_block_header(void)
fprintf
(
il2c_hout
,
"#endif /* _INCLUDE_%s_H_ */
\n
"
,
il2c_blockname
);
fprintf
(
il2c_hout
,
"#endif /* _INCLUDE_%s_H_ */
\n
"
,
il2c_blockname
);
}
}
#endif
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
...
@@ -873,13 +879,17 @@ int main(int argc, char **argv)
...
@@ -873,13 +879,17 @@ int main(int argc, char **argv)
outname
[
strlen
(
outname
)
-
1
]
=
'h'
;
outname
[
strlen
(
outname
)
-
1
]
=
'h'
;
#ifdef IL2C_GEN_HEADER
il2c_hout
=
fopen
(
outname
,
"w"
);
il2c_hout
=
fopen
(
outname
,
"w"
);
#endif
il2c_logname
=
argv
[
1
];
il2c_logname
=
argv
[
1
];
}
else
{
}
else
{
yyin
=
stdin
;
yyin
=
stdin
;
il2c_cout
=
stdout
;
il2c_cout
=
stdout
;
#ifdef IL2C_GEN_HEADER
il2c_hout
=
stdout
;
il2c_hout
=
stdout
;
#endif
il2c_logname
=
"stdin"
;
il2c_logname
=
"stdin"
;
}
}
...
@@ -887,7 +897,9 @@ int main(int argc, char **argv)
...
@@ -887,7 +897,9 @@ int main(int argc, char **argv)
il2c_sample_footer
();
il2c_sample_footer
();
il2c_block_body
();
il2c_block_body
();
#ifdef IL2C_GEN_HEADER
il2c_block_header
();
il2c_block_header
();
#endif
return
ret
;
return
ret
;
}
}
controller/build.mk
View file @
5f878531
...
@@ -53,7 +53,7 @@ endif
...
@@ -53,7 +53,7 @@ endif
@
$(FLEX)
--header-file
=
$*
.yy.h
-o
$*
.yy.c
$<
@
$(FLEX)
--header-file
=
$*
.yy.h
-o
$*
.yy.c
$<
# il2c: instruction list 2 c 'compiler'
# il2c: instruction list 2 c 'compiler'
%.c
%.h
:
%.il
%.c
:
%.il
@
echo
" IL2C
$<
"
@
echo
" IL2C
$<
"
@
$(IL2C)
$<
@
$(IL2C)
$<
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment