]>
code.delx.au - gnu-emacs/blob - test/manual/etags/c-src/torture.c
1 /* Date: Thu, 05 Aug 1993 20:28:03 +0200
2 From: "Tom R.Hageman" <tom@basil.icce.rug.nl>
3 Subject: more etags torture;-) [etags 7.3 patch#3]
8 This test file illustrates some more problems with etags (7.3):
11 1. parentheses are confusing,
12 2. preprocessor directives can disrupt other state machines. */
14 /* A small torture test for etags. */
16 /* The classic parenthesis nightmare, based on signal(). */
18 (*tag1 (sig
, handler
)) ()
27 /* The classic, with user-defined return type. */
29 (*tag2 (sig
, handler
)) ()
37 /* The classic, in ANSI C style. */
39 (*tag3 (int sig
, void (*handler
) (int))) (int)
46 /* The classic, with user-defined return type, in ANSI C style. */
48 (*tag4 (int sig
, void (*handler
) (int))) (int)
55 /* A less tortuous example. */
64 /* A less tortuous example, in ANSI C style. */
66 tag6 (void (*handler
) (void *), void *arg
)
72 /* Interfering preprocessing torture */