source: proto/pabloj/trunk/input/templates/cpplang/pablo_definitions.template @ 2933

Last change on this file since 2933 was 2933, checked in by ksherdy, 6 years ago

Updated template.

File size: 1.9 KB
Line 
1// ###@warningComment ###
2//
3// This template includes the minimal set of runtime support libraries required
4// to support compilation of PabloJ generated C++ code (bitblock.hpp, carryQ.hpp,
5// pabloSupport.hpp, error_tracker.hpp)
6//
7// (c) 2012, 2013 Robert D. Cameron, Ken Herdy
8// All rights reserved.
9// Licensed to International Characters, Inc. under Academic Free License 3.0
10//
11//////////////////////////////////////////////////////////////////////////////////////////
12// @ global - Stream structure and stream function declarations.
13//
14//////////////////////////////////////////////////////////////////////////////////////////
15//
16#ifndef PABLO_DEFINITIONS_HPP
17#define PABLO_DEFINITIONS_HPP
18
19#define LocalCarryDeclare(name, count)\
20CarryArray<count, 0> name;\
21
22// runtime libraries
23#include <simd-lib/bitblock.hpp>
24#include <simd-lib/carryQ.hpp>
25#include <simd-lib/pabloSupport.hpp>
26
27// migrate error tracker, line/column tracker to compiler runtime
28#include <ErrorTracker.h>
29ErrorTracker error_tracker;
30
31#define assert_0_error(errkind, errstrm) error_tracker.NoteError(errkind, errstrm);
32BitBlock EOF_mask = simd<1>::constant<1>();
33
34// XMLWF application headers and definitions
35/*
36#include <stdio.h>
37#include <stdlib.h>
38#include <errno.h>
39#include <sys/types.h>
40#include <sys/stat.h>
41
42#include <simd-lib/s2p.hpp>
43#include <simd-lib/buffer.hpp>
44#include <simd-lib/bitblock_iterator.hpp>
45#include <simd-lib/perflib/perfsec.h>
46
47#include <xmldecl.h>
48#include <namechars.h>
49#include <LineColTracker.hpp>
50#include <XMLTestSuiteError.h>
51
52// Define the mappings for pablo.assert_0(strm, errkind) statements which
53// compile to the the form assert_0_error(errkind, strm)
54#include <ErrorTracker.h>
55
56ErrorTracker error_tracker;
57#define assert_0_error(errkind, errstrm) error_tracker.NoteError(errkind, errstrm);
58*/
59
60// namespace pablo
61// {
62###@global ###
63// } // pablo namespace
64
65#endif // PABLO_DEFINITIONS_HPP
Note: See TracBrowser for help on using the repository browser.