41b65e7
commit 8ee6d05aef5e988d6f7e6add0aa97ebbc05ae94d
41b65e7
Author: František Dvořák <valtri@civ.zcu.cz>
41b65e7
Date:   Wed Jul 2 18:05:46 2014 +0200
41b65e7
41b65e7
    Generate always the same header file by ordering fields. This is the second part of the fix for issue #26.
41b65e7
41b65e7
diff --git a/org.glite.lb.client/interface/Event.h.T b/org.glite.lb.client/interface/Event.h.T
41b65e7
index 1aa05b3..a917d3d 100644
41b65e7
--- a/org.glite.lb.client/interface/Event.h.T
41b65e7
+++ b/org.glite.lb.client/interface/Event.h.T
41b65e7
@@ -120,8 +120,8 @@ public:
41b65e7
 	};
41b65e7
 
41b65e7
 @@@{
41b65e7
-	for my $f (getAllFields $event) {
41b65e7
-		for my $t (getFieldOccurence $event $f) {
41b65e7
+	for my $f (sort {$a cmp $b} getAllFields $event) {
41b65e7
+		for my $t (sort (getFieldOccurence $event $f)) {
41b65e7
 			my $ff;
41b65e7
 			my $ut;
41b65e7
 			my $utf;
41b65e7
diff --git a/org.glite.lb.client/interface/JobStatus.h.T b/org.glite.lb.client/interface/JobStatus.h.T
41b65e7
index 20cbcf3..d800327 100644
41b65e7
--- a/org.glite.lb.client/interface/JobStatus.h.T
41b65e7
+++ b/org.glite.lb.client/interface/JobStatus.h.T
41b65e7
@@ -103,7 +103,7 @@ public:
41b65e7
 
41b65e7
 @@@{
41b65e7
 	selectType $status '_common_';
41b65e7
-	for my $n (getAllFields $status) {
41b65e7
+	for my $n (sort {$a cmp $b} getAllFields $status) {
41b65e7
 		selectField $status $n;
41b65e7
 		my $f = getField $status;
41b65e7
 		if ($f->{codes}) {