Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
6e3fa960
Commit
6e3fa960
authored
Jan 19, 2018
by
Maxime Perrotin
Browse files
Start templates for C skeleton generation
parent
b2075778
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/taste-parser_version.ads
View file @
6e3fa960
package
TASTE
.
Parser_Version
is
Parser_Release
:
constant
String
:=
"
fd043de
; Commit Date:
Mon
Jan 1
5
1
7
:5
2
:3
0
2018 "
;
"
b207577
; Commit Date:
Tue
Jan 1
6
1
5
:5
5
:3
8
2018 "
;
Ocarina_Version
:
constant
String
:=
"Ocarina 2017.x (Working Copy from r0b92ed3)"
;
end
TASTE
.
Parser_Version
;
\ No newline at end of file
templates/skeletons/c/body.tmplt
0 → 100644
View file @
6e3fa960
/* Body file for function @_Name_@
* Generated by TASTE on @_Now_@
* You can edit this file, it will not be overwritten
*/
#include "@_LOWER:Name_@.h"
@@IF@@ @_Has_Context_@
/* Include Context Parameters (constants defined in the Interface View) */
#include "Context-@_REPLACE((_)/(-)):LOWER:Name_@.h"
@@END_IF@@
void @_LOWER:Name_@_startup()
{
// Write your initialisation code, but DO NOT CALL REQUIRED INTERFACES
// puts ("[@_Name_@] Startup");
}
@@TABLE@@
void @_Provided_Interfaces_@
{
/* Write your code here */
}
@@END_TABLE@@
@@TABLE@@
void @_Timers_@
{
/* This function is called when the timer expires */
}
@@END_TABLE@@
templates/skeletons/c/header.tmplt
0 → 100644
View file @
6e3fa960
/* Header file for function @_Name_@
* Generated by TASTE on @_Now_@
* DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN DURING THE BUILD
*/
#ifndef __USER_CODE_H_@_UPPER:Name_@
#define __USER_CODE_H_@_UPPER:Name_@
#include "C_ASN1_Types.h"
#ifdef __cplusplus
extern "C" {
#endif
void @_LOWER:Name_@_startup();
@@TABLE@@
void @_Provided_Interfaces_@;
@@END_TABLE@@
@@TABLE@@
void @_Required_Interfaces_@;
@@END_TABLE@@
@@TABLE@@
@_Timers_@
@@END_TABLE@@
#ifdef __cplusplus
extern "C" {
#endif
#endif /* __USER_CODE_H_@_UPPER:Name_@
templates/skeletons/c/interface-body-in-parameter.tmplt
0 → 100644
View file @
6e3fa960
const asn1Scc@_Type_@ *@_LOWER:Name_@
templates/skeletons/c/interface-body-out-parameter.tmplt
0 → 100644
View file @
6e3fa960
asn1Scc@_Type_@ *OUT_
templates/skeletons/c/interface-header-in-parameter.tmplt
0 → 100644
View file @
6e3fa960
const asn1Scc@_Type_@ *
templates/skeletons/c/interface-header-out-param.tmplt
0 → 100644
View file @
6e3fa960
asn1Scc@_Type_@ *
templates/skeletons/c/interface-signature.tmplt
0 → 100644
View file @
6e3fa960
@_LOWER:Interface_Name_@(@@TABLE['TERSE]@@
@_Parameters_@,
@@END_TABLE)
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