summaryrefslogtreecommitdiff
path: root/vis/text-objects/functions.in
blob: 5179cb21f63e46bb397bada5b39453702db5a48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
static double pi = 3.14;

/* addition */
int add(int a, int b) {
	return a+b;
}

static double e = 2.71;

/* multiplication of
 *
 *  a*b
 */
int mul(int a, int b)
{
	return a*b;
}

static double sqrt2 = 1.41;

int
div(int a, int b)
{
	return a/b;
}