Author: matt
Date: 2010-11-14 07:03:57 -0800 (Sun, 14 Nov 2010)
New Revision: 7827
Log:
Rename variable in Fluid to make more sense

Modified:
   branches/branch-1.3/fluid/Fl_Type.cxx
   branches/branch-1.3/fluid/Fl_Type.h
   branches/branch-1.3/fluid/code.cxx
   branches/branch-1.3/fluid/fluid.cxx

Modified: branches/branch-1.3/fluid/Fl_Type.cxx
===================================================================
--- branches/branch-1.3/fluid/Fl_Type.cxx       2010-11-14 11:02:18 UTC (rev 
7826)
+++ branches/branch-1.3/fluid/Fl_Type.cxx       2010-11-14 15:03:57 UTC (rev 
7827)
@@ -473,8 +473,8 @@
   comment_ = 0;
   rtti = 0;
   level = 0;
-  code_line = header_line = -1;
-  code_line_end = header_line_end = -1;
+  code_position = header_position = -1;
+  code_position_end = header_position_end = -1;
 }
 
 static void fixvisible(Fl_Type *p) {

Modified: branches/branch-1.3/fluid/Fl_Type.h
===================================================================
--- branches/branch-1.3/fluid/Fl_Type.h 2010-11-14 11:02:18 UTC (rev 7826)
+++ branches/branch-1.3/fluid/Fl_Type.h 2010-11-14 15:03:57 UTC (rev 7827)
@@ -75,8 +75,8 @@
   Fl_Type *factory;
   const char *callback_name();
 
-  int code_line, header_line;
-  int code_line_end, header_line_end;
+  int code_position, header_position;
+  int code_position_end, header_position_end;
 
 protected:
   int user_defined(const char* cbname) const;

Modified: branches/branch-1.3/fluid/code.cxx
===================================================================
--- branches/branch-1.3/fluid/code.cxx  2010-11-14 11:02:18 UTC (rev 7826)
+++ branches/branch-1.3/fluid/code.cxx  2010-11-14 15:03:57 UTC (rev 7827)
@@ -290,9 +290,9 @@
 // of the parent code:
 static Fl_Type* write_code(Fl_Type* p) {
   if (write_sourceview) {
-    p->code_line = (int)ftell(code_file);
-    if (p->header_line_end==-1)
-      p->header_line = (int)ftell(header_file);
+    p->code_position = (int)ftell(code_file);
+    if (p->header_position_end==-1)
+      p->header_position = (int)ftell(header_file);
   }
   // write all code that come before the children code
   // (but don't write the last comment until the very end)
@@ -333,9 +333,9 @@
     p->write_code2();
   }
   if (write_sourceview) {
-    p->code_line_end = (int)ftell(code_file);
-    if (p->header_line_end==-1)
-      p->header_line_end = (int)ftell(header_file);
+    p->code_position_end = (int)ftell(code_file);
+    if (p->header_position_end==-1)
+      p->header_position_end = (int)ftell(header_file);
   }
   return q;
 }
@@ -369,14 +369,14 @@
   Fl_Type* first_type = Fl_Type::first;
   if (first_type && first_type->is_comment()) {
     if (write_sourceview) {
-      first_type->code_line = (int)ftell(code_file);
-      first_type->header_line = (int)ftell(header_file);
+      first_type->code_position = (int)ftell(code_file);
+      first_type->header_position = (int)ftell(header_file);
     }
     // it is ok to write non-recusive code here, because comments have no 
children or code2 blocks
     first_type->write_code1();
     if (write_sourceview) {
-      first_type->code_line_end = (int)ftell(code_file);
-      first_type->header_line_end = (int)ftell(header_file);
+      first_type->code_position_end = (int)ftell(code_file);
+      first_type->header_position_end = (int)ftell(header_file);
     }
     first_type = first_type->next;
   }
@@ -423,18 +423,18 @@
   }
   for (Fl_Type* p = first_type; p;) {
     // write all static data for this & all children first
-    if (write_sourceview) p->header_line = (int)ftell(header_file);
+    if (write_sourceview) p->header_position = (int)ftell(header_file);
     p->write_static();
     if (write_sourceview) {
-      p->header_line_end = (int)ftell(header_file);
-      if (p->header_line==p->header_line_end) p->header_line_end = -1;
+      p->header_position_end = (int)ftell(header_file);
+      if (p->header_position==p->header_position_end) p->header_position_end = 
-1;
     }
     for (Fl_Type* q = p->next; q && q->level > p->level; q = q->next) {
-      if (write_sourceview) q->header_line = (int)ftell(header_file);
+      if (write_sourceview) q->header_position = (int)ftell(header_file);
       q->write_static();
       if (write_sourceview) {
-        q->header_line_end = (int)ftell(header_file);
-        if (q->header_line==q->header_line_end) q->header_line_end = -1;
+        q->header_position_end = (int)ftell(header_file);
+        if (q->header_position==q->header_position_end) q->header_position_end 
= -1;
       }
     }
     // then write the nested code:
@@ -450,13 +450,13 @@
   Fl_Type* last_type = Fl_Type::last;
   if (last_type && last_type->is_comment()) {
     if (write_sourceview) {
-      last_type->code_line = (int)ftell(code_file);
-      last_type->header_line = (int)ftell(header_file);
+      last_type->code_position = (int)ftell(code_file);
+      last_type->header_position = (int)ftell(header_file);
     }
     last_type->write_code1();
     if (write_sourceview) {
-      last_type->code_line_end = (int)ftell(code_file);
-      last_type->header_line_end = (int)ftell(header_file);
+      last_type->code_position_end = (int)ftell(code_file);
+      last_type->header_position_end = (int)ftell(header_file);
     }
   }
 

Modified: branches/branch-1.3/fluid/fluid.cxx
===================================================================
--- branches/branch-1.3/fluid/fluid.cxx 2010-11-14 11:02:18 UTC (rev 7826)
+++ branches/branch-1.3/fluid/fluid.cxx 2010-11-14 15:03:57 UTC (rev 7827)
@@ -2151,8 +2151,8 @@
   if (sourceview_panel && sourceview_panel->visible() && Fl_Type::current) {
     int pos0, pos1;
     if (sv_source->visible_r()) {
-      pos0 = Fl_Type::current->code_line;
-      pos1 = Fl_Type::current->code_line_end;
+      pos0 = Fl_Type::current->code_position;
+      pos1 = Fl_Type::current->code_position_end;
       if (pos0>=0) {
         if (pos1<pos0)
           pos1 = pos0;
@@ -2162,8 +2162,8 @@
       }
     }
     if (sv_header->visible_r()) {
-      pos0 = Fl_Type::current->header_line;
-      pos1 = Fl_Type::current->header_line_end;
+      pos0 = Fl_Type::current->header_position;
+      pos1 = Fl_Type::current->header_position_end;
       if (pos0>=0) {
         if (pos1<pos0)
           pos1 = pos0;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to