]> andersk Git - splint.git/blame - src/Headers/scanline.h
noexpand always false.
[splint.git] / src / Headers / scanline.h
CommitLineData
885824d3 1/*
c0de361f 2** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
885824d3 3** See ../LICENSE for license information.
4**
5*/
6/*
7** scanline.h
8*/
9
10# ifndef SCANLINE_H
11# define SCANLINE_H
12
13/*@constant int LASTCHAR; @*/
14# define LASTCHAR 255
15
16/*@constant char CHAREXTENDER; @*/
17# define CHAREXTENDER '\\'
18
19typedef enum {
20 CHC_NULL,
21 IDCHAR,
22 OPCHAR,
23 SLASHCHAR,
24 WHITECHAR,
25 CHC_EXTENSION,
26 SINGLECHAR,
27 PERMCHAR
28} charCode;
29
30typedef struct {
31 charCode code;
32 bool endCommentChar;
33} charClassData;
34
35extern void lscanLine (char *);
36extern ltoken LSLScanEofToken (void);
37extern void LSLReportEolTokens (bool p_setting);
38
39extern void lscanLineInit (void);
40extern void lscanLineReset (void);
41extern void lscanLineCleanup (void);
42
43/*
44** The following function prototypes are for use by lslinit.c, which
45** customizes subsequent actions of scanline.c.
46*/
47
48extern charCode lscanCharClass (char p_c);
49extern bool LSLIsEndComment (char p_c);
50extern void lsetCharClass (char p_c, charCode p_cod);
51extern void lsetEndCommentChar (char p_c, bool p_flag);
52
53/*@constant int MAXLINE;@*/
54# define MAXLINE 1000
55
56# else
57# error "Multiple include"
58# endif
This page took 0.083639 seconds and 5 git commands to generate.