File: ross

package info (click to toggle)
cpphs 0.7-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 18
  • sloc: haskell: 939; makefile: 79; sh: 36; ansic: 11
file content (19 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 1. C comments should be deleted by the preprocessor */

/* 2. repeated expansion */
#define FOO 4
#define BAR FOO

f = BAR

/* 3. continuation lines in macros shouldn't give newlines */
#define LONG_MACRO \
{ putStr "Hello "; \
  putStrLn "World" }

g = do LONG_MACRO

/* 4. projection macros */
#define MACRO(x) x

h = MACRO(FOO)