diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /boost/tools/build/src/engine/native.h | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/tools/build/src/engine/native.h')
| -rw-r--r-- | boost/tools/build/src/engine/native.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/boost/tools/build/src/engine/native.h b/boost/tools/build/src/engine/native.h new file mode 100644 index 00000000..6d38d01e --- /dev/null +++ b/boost/tools/build/src/engine/native.h @@ -0,0 +1,34 @@ +/* Copyright 2003. David Abrahams + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ + +#ifndef NATIVE_H_VP_2003_12_09 +#define NATIVE_H_VP_2003_12_09 + +#include "function.h" +#include "frames.h" +#include "lists.h" +#include "object.h" + +typedef struct native_rule_t +{ + OBJECT * name; + FUNCTION * procedure; + + /* Version of the interface that the native rule provides. It is possible + * that we want to change the set parameter for existing native rule. In + * that case, version number should be incremented so Boost.Build can check + * for the version it relies on. + * + * Versions are numbered from 1. + */ + int version; +} native_rule_t; +/* MSVC debugger gets confused unless the native_rule_t typedef is provided. */ + +void declare_native_rule( char const * module, char const * rule, + char const * * args, LIST * (*f)( FRAME *, int ), int version ); + +#endif |
