| 1 |
commit 5526ed05c2476b56af8b7be499e8f78bd50f490740733a9ca7e1f55878fa90a9 |
| 2 |
Author: Thomas Rast <[email protected]> |
| 3 |
Date: Thu Feb 28 10:48:43 2013 +0100 |
| 4 |
|
| 5 |
change back to complete line |
| 6 |
|
| 7 |
diff --git a/a.c b/a.c |
| 8 |
index e4fa1d8..62c1fc2 100644 |
| 9 |
--- a/a.c |
| 10 |
+++ b/a.c |
| 11 |
@@ -4,19 +4,21 @@ |
| 12 |
long f(long x) |
| 13 |
{ |
| 14 |
int s = 0; |
| 15 |
while (x) { |
| 16 |
x >>= 1; |
| 17 |
s++; |
| 18 |
} |
| 19 |
return s; |
| 20 |
} |
| 21 |
|
| 22 |
/* |
| 23 |
* This is only an example! |
| 24 |
*/ |
| 25 |
|
| 26 |
int main () |
| 27 |
{ |
| 28 |
printf("%ld\n", f(15)); |
| 29 |
return 0; |
| 30 |
-} |
| 31 |
\ No newline at end of file |
| 32 |
+} |
| 33 |
+ |
| 34 |
+/* incomplete lines are bad! */ |
| 35 |
|
| 36 |
commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 |
| 37 |
Author: Thomas Rast <[email protected]> |
| 38 |
Date: Thu Feb 28 10:48:10 2013 +0100 |
| 39 |
|
| 40 |
change to an incomplete line at end |
| 41 |
|
| 42 |
diff --git a/a.c b/a.c |
| 43 |
index d325124..e4fa1d8 100644 |
| 44 |
--- a/a.c |
| 45 |
+++ b/a.c |
| 46 |
@@ -4,19 +4,19 @@ |
| 47 |
long f(long x) |
| 48 |
{ |
| 49 |
int s = 0; |
| 50 |
while (x) { |
| 51 |
x >>= 1; |
| 52 |
s++; |
| 53 |
} |
| 54 |
return s; |
| 55 |
} |
| 56 |
|
| 57 |
/* |
| 58 |
* This is only an example! |
| 59 |
*/ |
| 60 |
|
| 61 |
int main () |
| 62 |
{ |
| 63 |
printf("%ld\n", f(15)); |
| 64 |
return 0; |
| 65 |
-} |
| 66 |
+} |
| 67 |
\ No newline at end of file |
| 68 |
|
| 69 |
commit 5a1b3989063d55e71e7685efa3392f133385b4034bddde530dcb5090d8b8b8ca |
| 70 |
Author: Thomas Rast <[email protected]> |
| 71 |
Date: Thu Feb 28 10:45:41 2013 +0100 |
| 72 |
|
| 73 |
touch comment |
| 74 |
|
| 75 |
diff --git a/a.c b/a.c |
| 76 |
index 75c0119..3a78aaf 100644 |
| 77 |
--- a/a.c |
| 78 |
+++ b/a.c |
| 79 |
@@ -3,19 +3,19 @@ |
| 80 |
long f(long x) |
| 81 |
{ |
| 82 |
int s = 0; |
| 83 |
while (x) { |
| 84 |
x >>= 1; |
| 85 |
s++; |
| 86 |
} |
| 87 |
return s; |
| 88 |
} |
| 89 |
|
| 90 |
/* |
| 91 |
- * A comment. |
| 92 |
+ * This is only an example! |
| 93 |
*/ |
| 94 |
|
| 95 |
int main () |
| 96 |
{ |
| 97 |
printf("%ld\n", f(15)); |
| 98 |
return 0; |
| 99 |
} |
| 100 |
|
| 101 |
commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f |
| 102 |
Author: Thomas Rast <[email protected]> |
| 103 |
Date: Thu Feb 28 10:45:16 2013 +0100 |
| 104 |
|
| 105 |
touch both functions |
| 106 |
|
| 107 |
diff --git a/a.c b/a.c |
| 108 |
index 7a296b9..75c0119 100644 |
| 109 |
--- a/a.c |
| 110 |
+++ b/a.c |
| 111 |
@@ -3,19 +3,19 @@ |
| 112 |
-int f(int x) |
| 113 |
+long f(long x) |
| 114 |
{ |
| 115 |
int s = 0; |
| 116 |
while (x) { |
| 117 |
x >>= 1; |
| 118 |
s++; |
| 119 |
} |
| 120 |
return s; |
| 121 |
} |
| 122 |
|
| 123 |
/* |
| 124 |
* A comment. |
| 125 |
*/ |
| 126 |
|
| 127 |
int main () |
| 128 |
{ |
| 129 |
- printf("%d\n", f(15)); |
| 130 |
+ printf("%ld\n", f(15)); |
| 131 |
return 0; |
| 132 |
} |
| 133 |
|
| 134 |
commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed |
| 135 |
Author: Thomas Rast <[email protected]> |
| 136 |
Date: Thu Feb 28 10:44:55 2013 +0100 |
| 137 |
|
| 138 |
change f() |
| 139 |
|
| 140 |
diff --git a/a.c b/a.c |
| 141 |
index 9f550c3..7a296b9 100644 |
| 142 |
--- a/a.c |
| 143 |
+++ b/a.c |
| 144 |
@@ -3,18 +3,19 @@ |
| 145 |
int f(int x) |
| 146 |
{ |
| 147 |
int s = 0; |
| 148 |
while (x) { |
| 149 |
x >>= 1; |
| 150 |
s++; |
| 151 |
} |
| 152 |
+ return s; |
| 153 |
} |
| 154 |
|
| 155 |
/* |
| 156 |
* A comment. |
| 157 |
*/ |
| 158 |
|
| 159 |
int main () |
| 160 |
{ |
| 161 |
printf("%d\n", f(15)); |
| 162 |
return 0; |
| 163 |
} |
| 164 |
|
| 165 |
commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 |
| 166 |
Author: Thomas Rast <[email protected]> |
| 167 |
Date: Thu Feb 28 10:44:48 2013 +0100 |
| 168 |
|
| 169 |
initial |
| 170 |
|
| 171 |
diff --git a/a.c b/a.c |
| 172 |
new file mode 100644 |
| 173 |
index 0000000..9f550c3 |
| 174 |
--- /dev/null |
| 175 |
+++ b/a.c |
| 176 |
@@ -0,0 +3,18 @@ |
| 177 |
+int f(int x) |
| 178 |
+{ |
| 179 |
+ int s = 0; |
| 180 |
+ while (x) { |
| 181 |
+ x >>= 1; |
| 182 |
+ s++; |
| 183 |
+ } |
| 184 |
+} |
| 185 |
+ |
| 186 |
+/* |
| 187 |
+ * A comment. |
| 188 |
+ */ |
| 189 |
+ |
| 190 |
+int main () |
| 191 |
+{ |
| 192 |
+ printf("%d\n", f(15)); |
| 193 |
+ return 0; |
| 194 |
+} |