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

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

Moved templates directory and templates to top-level.

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