[NEW] Parse *.apsx, *.ascx files. Resulted in new polyglots cs_aspx, vb_aspx.
[ohcount] / ext / ohcount_native / common.h
1 /*
2  *  common.h
3  *  Ohcount
4  *
5  *  Created by Jason Allen on 6/23/06.
6  *  Copyright 2006 Ohloh. All rights reserved.
7  *
8  */
9 #ifndef __common_h__
10 #define __common_h__
11
12 /*******************************************
13  Limits
14 *******************************************/
15 // Parser's Maximum number of LanguageBreakdowns it can return
16 #define MAX_LANGUAGE_BREAKDOWN_SIZE 8
17 // The longest a language name can be
18 #define MAX_LANGUAGE_NAME 40
19
20 /*******************************************
21  Common Headers
22 *******************************************/
23 #include <stdlib.h>
24 #include <stdbool.h>
25 #include <stdio.h>
26 #include <string.h>
27 #include "language_breakdown.h"
28 #include "ragel_parser.h"
29
30 /*******************************************
31  Logging
32 *******************************************/
33
34 #ifdef NDEBUG
35 #define log(e, arg) ((void)0)
36 #define log0(e) ((void)0)
37 #define log2(e, arg1, arg2) ((void)0)
38 #else
39 #define log(e, arg) (fprintf(stderr, e, arg))
40 #define log0(e) (fprintf(stderr, e))
41 #define log2(e, arg1, arg2) (fprintf(stderr, e, arg1, arg2))
42 #endif
43
44
45 #endif /* common_h */