OFFIS DCMTK  Version 3.6.0
vrscani.h
1 /*
2  *
3  * Copyright (C) 2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmdata
15  *
16  * Author: Uli Schlachter
17  *
18  * Purpose: Internal header for vrscanl.c and vrscan.cc
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:18:41 $
22  * CVS/RCS Revision: $Revision: 1.4 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef VRSCANI_H
30 #define VRSCANI_H
31 
32 /* This needs its own header because both vrscanl.c and vrscan.cc need it. */
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 #include <setjmp.h>
36 
37 struct vrscan_error {
38  jmp_buf setjmp_buffer;
39  const char *error_msg;
40 };
41 
42 #define YY_EXTRA_TYPE struct vrscan_error *
43 #define YY_FATAL_ERROR(msg) do { \
44  yyget_extra(yyscanner)->error_msg = msg; \
45  longjmp(yyget_extra(yyscanner)->setjmp_buffer, 1); \
46 } while (0);
47 
48 /* Don't try to include unistd.h which doesn't exist on windows */
49 #define YY_NO_UNISTD_H
50 
51 #endif /* VRSCANI_H */
52 
53 /*
54 ** CVS/RCS Log:
55 ** $Log: vrscani.h,v $
56 ** Revision 1.4 2010-10-14 13:18:41 joergr
57 ** Updated copyright header. Added reference to COPYRIGHT file.
58 **
59 ** Revision 1.3 2010-10-01 10:21:05 uli
60 ** Fixed most compiler warnings from -Wall -Wextra -pedantic in dcmdata.
61 **
62 ** Revision 1.2 2010-09-03 07:26:19 uli
63 ** Make the VR scanner work on windows again.
64 **
65 ** Revision 1.1 2010-09-02 12:02:06 uli
66 ** Use longjmp() for error handling in the VR scanner.
67 **
68 **
69 */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2