ctags.h (1591) | ctags.h (56663) |
---|---|
1/* $FreeBSD: head/usr.bin/ctags/ctags.h 56663 2000-01-27 05:46:58Z mjacob $ */ |
|
1/* 2 * Copyright (c) 1987, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 31 unchanged lines hidden (view full) --- 40#define EOS '\0' 41 42#define ENDLINE 50 /* max length of pattern */ 43#define MAXTOKEN 250 /* max size of single token */ 44 45#define SETLINE {++lineno;lineftell = ftell(inf);} 46#define GETC(op,exp) ((c = getc(inf)) op (int)exp) 47 | 2/* 3 * Copyright (c) 1987, 1993, 1994 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 31 unchanged lines hidden (view full) --- 41#define EOS '\0' 42 43#define ENDLINE 50 /* max length of pattern */ 44#define MAXTOKEN 250 /* max size of single token */ 45 46#define SETLINE {++lineno;lineftell = ftell(inf);} 47#define GETC(op,exp) ((c = getc(inf)) op (int)exp) 48 |
48#define iswhite(arg) (_wht[(unsigned)arg]) /* T if char is white */ 49#define begtoken(arg) (_btk[(unsigned)arg]) /* T if char can start token */ 50#define intoken(arg) (_itk[(unsigned)arg]) /* T if char can be in token */ 51#define endtoken(arg) (_etk[(unsigned)arg]) /* T if char ends tokens */ 52#define isgood(arg) (_gd[(unsigned)arg]) /* T if char can be after ')' */ | 49#define _egrd(idx, array) \ 50 (((int)idx < 0)? NO : array [ (int) idx ]) |
53 | 51 |
52#define iswhite(arg) _egrd(arg, _wht) /* T if char is white */ 53#define begtoken(arg) _egrd(arg, _btk) /* T if char can start token */ 54#define intoken(arg) _egrd(arg, _itk) /* T if char can be in token */ 55#define endtoken(arg) _egrd(arg, _etk) /* T if char ends tokens */ 56#define isgood(arg) _egrd(arg, _gd) /* T if char can be after ')' */ 57 |
|
54typedef struct nd_st { /* sorting structure */ 55 struct nd_st *left, 56 *right; /* left and right sons */ 57 char *entry, /* function or type name */ 58 *file, /* file name */ 59 *pat; /* search pattern */ 60 int lno; /* for -x option */ 61 bool been_warned; /* set if noticed dup */ --- 29 unchanged lines hidden --- | 58typedef struct nd_st { /* sorting structure */ 59 struct nd_st *left, 60 *right; /* left and right sons */ 61 char *entry, /* function or type name */ 62 *file, /* file name */ 63 *pat; /* search pattern */ 64 int lno; /* for -x option */ 65 bool been_warned; /* set if noticed dup */ --- 29 unchanged lines hidden --- |