summaryrefslogtreecommitdiff
path: root/vis/text-objects/functions.in
diff options
context:
space:
mode:
Diffstat (limited to 'vis/text-objects/functions.in')
-rw-r--r--vis/text-objects/functions.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/vis/text-objects/functions.in b/vis/text-objects/functions.in
new file mode 100644
index 0000000..5179cb2
--- /dev/null
+++ b/vis/text-objects/functions.in
@@ -0,0 +1,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;
+}
+