From 748a9cf5c3d9752ea7fa0d69bbbd59a5d36affb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sun, 24 Jun 2012 12:10:04 +0000 Subject: [PATCH] Added the Boost Jam execcmd.c module that got skipped by accident in revision 79055. [SVN r79057] --- src/engine/execcmd.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/engine/execcmd.c diff --git a/src/engine/execcmd.c b/src/engine/execcmd.c new file mode 100644 index 000000000..1cfc73050 --- /dev/null +++ b/src/engine/execcmd.c @@ -0,0 +1,33 @@ +/* + * Copyright 1993, 1995 Christopher Seiwald. + * Copyright 2007 Noel Belcourt. + * + * Utility functions shared between different exec*.c platform specific + * implementation modules. + * + * This file is part of Jam - see jam.c for Copyright information. + */ + +#include "jam.h" +#include "execcmd.h" + + +/* Internal interrupt counter. */ +static int intr; + + +/* Returns whether an interrupt has been detected so far. */ + +int interrupted( void ) +{ + return intr != 0; +} + + +/* Internal interrupt handler. */ + +void onintr( int disp ) +{ + ++intr; + printf( "...interrupted\n" ); +}