]> git.lyx.org Git - features.git/commitdiff
Small clean-up of the sed scripts.
authorAngus Leeming <leeming@lyx.org>
Fri, 8 Nov 2002 11:24:45 +0000 (11:24 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 8 Nov 2002 11:24:45 +0000 (11:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5606 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/forms/fdfixc.sed
src/frontends/xforms/forms/fdfixh.sed

index b876af7d85e2505830217dde237996837411aaba..230493cd22af427d01103b271cdb9a6da743804d 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-07  Angus Leeming  <leeming@lyx.org>
+
+       * forms/fdfixh.sed: generate the d-tors in a clean way.
+       * forms/fdfixc.sed: Go from "fdui->form_xxx" to "fdui->form" in
+       a clean way.
+
 2002-10-31  Herbert Voss  <voss@perce.de>
  
        * FormGraphics.C (build, apply): get the rotate-list from the 
index 6aad1ca0b019347462d1a75dcafb225fae7f27f0..5777928020635fd2764a0a355230760d4a385ecd 100644 (file)
@@ -24,14 +24,9 @@ s/FD_form_\(.*\)/FD_\1/
 #       FL_FORM * form;
 # so we must do so here too.
 #
-# 1. Rewrite "fdui->form_xxx->fdui = ..." as "fdui->form->fdui = ..."
-s/fdui->form_\([^ ]*\)->fdui =/fdui->form->fdui =/
-
-# 2. Rewrite "fdui->form_xxx = ..." as "fdui->form = ..."
-s/fdui->form_\([^ ]*\) =/fdui->form =/
-
-# 3. Rewrite "fdui->form_xxx->..." as "fdui->form->..."
-s/fdui->form_\([^ ]*\)->/fdui->form->/
+# Rewrite "fdui->form_xxx" as "fdui->form"
+# xxx is followed by ' ', '->' or ')', so use these to flag when xxx ends.
+/fdui->form/s/\(fdui->form\)_[^ )-]*/\1/
 
 # Replace "forms.h" by FORMS_H_LOCATION in the #include directives
 s/#include \"forms\.h\"/#include FORMS_H_LOCATION/
index 2c2138509b586a7efc72b6e6f657e64905e69151..1fb3649ef8f411459b1466f0aa824e63e8fdf3e4 100644 (file)
@@ -99,9 +99,8 @@ d
 i\
 
 # 2. Rewrite "} FD_xxx;" as   "struct FD_xxx {" and append a d-tor.
-s/} \(.*\);/struct \1 {/p
-# When the wrappers are here, delete this line and the p-print command above
-/struct/s/struct \(.*\) {/     ~\1();/
+s/} \(.*\);/struct \1 {\
+       ~\1();/
 
 # 3. Paste the contents of the hold space beneath it
 G