aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-22 18:26:38 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-22 18:26:38 +0100
commit443bcd2592429fc709e13676c36d3f928beaad7a (patch)
tree6b4f276976ad22258983203bf8dffeafba50f1c7
parenta public constructore for linked list nodes a level of flexibility to the data structures (diff)
downloadalgorithms-and-data-structures-443bcd2592429fc709e13676c36d3f928beaad7a.tar.gz
algorithms-and-data-structures-443bcd2592429fc709e13676c36d3f928beaad7a.tar.bz2
algorithms-and-data-structures-443bcd2592429fc709e13676c36d3f928beaad7a.tar.xz
no hardcoding of gpp command
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile2
-rw-r--r--src/datastructures/linkedlists/CircularDoublyLinkedList.java2
-rw-r--r--src/datastructures/linkedlists/CircularSinglyLinkedList.java2
-rw-r--r--src/datastructures/linkedlists/DoublyLinkedList.java2
-rw-r--r--src/datastructures/linkedlists/HeadlessDoublyLinkedList.java2
-rw-r--r--src/datastructures/linkedlists/HeadlessSinglyLinkedList.java2
-rw-r--r--src/datastructures/linkedlists/SinglyLinkedList.java2
-rw-r--r--src/datastructures/linkedlists/TaillessDoublyLinkedList.java2
-rw-r--r--src/datastructures/linkedlists/TaillessSinglyLinkedList.java2
9 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index c8a47c9..353e64b 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ obj/%.class: obj/%.java
obj/%.java: src/%.java $(foreach F, $(PP), src/$(F))
mkdir -p "$(shell dirname "$@")"
- $(GPP) -s £ < "$<" > "$@"
+ env GPP="$(GPP)" $(GPP) -s £ < "$<" > "$@"
$(OBJ_LINKED_LISTS): src/datastructures/linkedlists/template
diff --git a/src/datastructures/linkedlists/CircularDoublyLinkedList.java b/src/datastructures/linkedlists/CircularDoublyLinkedList.java
index 5e3ba89..5ba0cef 100644
--- a/src/datastructures/linkedlists/CircularDoublyLinkedList.java
+++ b/src/datastructures/linkedlists/CircularDoublyLinkedList.java
@@ -38,5 +38,5 @@ package datastructures.linkedlists;
*/
public class CircularDoublyLinkedList<T>
£>export with_head=0 with_tail=0 with_prev=1
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
diff --git a/src/datastructures/linkedlists/CircularSinglyLinkedList.java b/src/datastructures/linkedlists/CircularSinglyLinkedList.java
index 0639083..49ddd83 100644
--- a/src/datastructures/linkedlists/CircularSinglyLinkedList.java
+++ b/src/datastructures/linkedlists/CircularSinglyLinkedList.java
@@ -38,5 +38,5 @@ package datastructures.linkedlists;
*/
public class CircularSinglyLinkedList<T>
£>export with_head=0 with_tail=0 with_prev=0
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
diff --git a/src/datastructures/linkedlists/DoublyLinkedList.java b/src/datastructures/linkedlists/DoublyLinkedList.java
index c84172c..3500e82 100644
--- a/src/datastructures/linkedlists/DoublyLinkedList.java
+++ b/src/datastructures/linkedlists/DoublyLinkedList.java
@@ -36,5 +36,5 @@ package datastructures.linkedlists;
*/
public class DoublyLinkedList<T>
£>export with_head=1 with_tail=1 with_prev=1
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
diff --git a/src/datastructures/linkedlists/HeadlessDoublyLinkedList.java b/src/datastructures/linkedlists/HeadlessDoublyLinkedList.java
index 23a59f1..e7ef98b 100644
--- a/src/datastructures/linkedlists/HeadlessDoublyLinkedList.java
+++ b/src/datastructures/linkedlists/HeadlessDoublyLinkedList.java
@@ -36,5 +36,5 @@ package datastructures.linkedlists;
*/
public class HeadlessDoublyLinkedList<T>
£>export with_head=0 with_tail=1 with_prev=1
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
diff --git a/src/datastructures/linkedlists/HeadlessSinglyLinkedList.java b/src/datastructures/linkedlists/HeadlessSinglyLinkedList.java
index 4bbff31..9ab46d1 100644
--- a/src/datastructures/linkedlists/HeadlessSinglyLinkedList.java
+++ b/src/datastructures/linkedlists/HeadlessSinglyLinkedList.java
@@ -45,5 +45,5 @@ package datastructures.linkedlists;
*/
public class HeadlessSinglyLinkedList<T>
£>export with_head=0 with_tail=1 with_prev=0
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
diff --git a/src/datastructures/linkedlists/SinglyLinkedList.java b/src/datastructures/linkedlists/SinglyLinkedList.java
index 9e39809..c14bc49 100644
--- a/src/datastructures/linkedlists/SinglyLinkedList.java
+++ b/src/datastructures/linkedlists/SinglyLinkedList.java
@@ -36,5 +36,5 @@ package datastructures.linkedlists;
*/
public class SinglyLinkedList<T>
£>export with_head=1 with_tail=1 with_prev=0
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
diff --git a/src/datastructures/linkedlists/TaillessDoublyLinkedList.java b/src/datastructures/linkedlists/TaillessDoublyLinkedList.java
index fa3c3e6..9ea9686 100644
--- a/src/datastructures/linkedlists/TaillessDoublyLinkedList.java
+++ b/src/datastructures/linkedlists/TaillessDoublyLinkedList.java
@@ -36,5 +36,5 @@ package datastructures.linkedlists;
*/
public class TaillessDoublyLinkedList<T>
£>export with_head=1 with_tail=0 with_prev=1
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
diff --git a/src/datastructures/linkedlists/TaillessSinglyLinkedList.java b/src/datastructures/linkedlists/TaillessSinglyLinkedList.java
index 2c66eb3..9dd3db8 100644
--- a/src/datastructures/linkedlists/TaillessSinglyLinkedList.java
+++ b/src/datastructures/linkedlists/TaillessSinglyLinkedList.java
@@ -35,5 +35,5 @@ package datastructures.linkedlists;
*/
public class TaillessSinglyLinkedList<T>
£>export with_head=1 with_tail=0 with_prev=0
-£>gpp -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'
+£>$GPP -s £ < src/datastructures/linkedlists/template | sed -e '/^[/ ]\*/d'