--- zed-1.0.5.orig/Makefile +++ zed-1.0.5/Makefile @@ -23,11 +23,12 @@ #IXLIBS=-lm #CFLAGS=-pipe -Wall -O2 -msupersparc -COMPILER=gcc +#COMPILER=gcc # someone needs this: -#COMPILER=g++ +COMPILER=g++ -LINKER=gcc +#LINKER=gcc +LINKER=g++ ############################################### --- zed-1.0.5.orig/edvis.cc +++ zed-1.0.5/edvis.cc @@ -52,6 +52,8 @@ /***************************************************************************/ +#define istokchar(c) (isalnum(c) || (c) == '_') + int editor::coloracpp(unsigned short int *buf,char *str, int vidx,int len,int ss) { @@ -135,7 +137,7 @@ while(*i!='\0') { - if (memcmp(p,i+1,(int)(*i-'0'))==0) + if (memcmp(p,i+1,(int)(*i-'0'))==0 && !istokchar(p[*i-'0'])) { ava=(int)(*i-'0'); save1=ava; stato=12; break; } i+=(int)(*i-'0')+1; } --- zed-1.0.5.orig/lowl.cc +++ zed-1.0.5/lowl.cc @@ -1459,7 +1459,7 @@ *dato positivo setta sp=dato... */ - switch((int)dato) + switch((long)dato) { case 0 : ignore=0; return(0); case 1 : ignore=1; return(0); @@ -1468,7 +1468,7 @@ case 4 : sp=0; ssp=0; lstr=0; return(0); } - if (((unsigned int)dato)>10 && (*dato)>0) + if (((unsigned long)dato)>10 && (*dato)>0) { sp=config.cmds+(*dato-1); lstr=0; ssp=0; return(0); --- zed-1.0.5.orig/zed.h +++ zed-1.0.5/zed.h @@ -123,8 +123,8 @@ int lung; char dati[0]; // puntatore ai dati - friend editor; // solo pero' all'interno di ZED.H - friend list; + friend class editor; // solo pero' all'interno di ZED.H + friend class list; }; protected: --- zed-1.0.5.orig/zedico.xpm +++ zed-1.0.5/zedico.xpm @@ -1,48 +1,207 @@ /* XPM */ static char * zedicoxpm[] = { -"38 38 7 1", -" c #FFFFFFFFFFFF", -". c #CF3CCB2BCF3C", -"X c #79E77DF779E7", -"o c #861700000000", -"O c #FFFF00000000", -"+ c #00000000FFFF", -"@ c #AEBAAEBAAEBA", -" .", -" .X", -" ..................................XX", -" ..................................XX", -" ..................................XX", -" ..................................XX", -" ..................................XX", -" ..................................XX", -" .......ooooooooooooooooo..ooo.....XX", -" ......ooOOOOOOOOOOOOOOOooooooXX...XX", -" .....oOOOOOOOOOOOOOOOOOOOOooXXX...XX", -" .....oooooooooooooooooooooXXXXX...XX", -" ....oooXXXXXXXXXXXXXXooooXXXX.....XX", -" ......XXX.........oooooXXXX.......XX", -" .................oooooXXXX........XX", -" ...............oooooXXXX..........XX", -" .............oooooXXXX............XX", -" ...........oooooXXXX..............XX", -" ........oooOOOoooooooooooooooo....XX", -" .....ooooOOooooooOOOOOOOOOOOoXXX..XX", -" ....ooOOooXXXXXXXoXooooOOOOoXXXX..XX", -" .....oooXXXXXX....XXXXXooooXXXX...XX", -" .......XXXX.............XXXXXX....XX", -" ..................................XX", -" ..................................XX", -" ..................................XX", -" .............+.....++++...........XX", -" ...........+++@...+.@@@+..........XX", -" .............+@...+@...+@.........XX", -" .............+@...+@...+@.........XX", -" ...........+++++...++++.@.........XX", -" ............@@@@@+..@@@@..........XX", -" ..................@...............XX", -" ..................................XX", -" ..................................XX", -" ..................................XX", -" .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -".XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}; +"32 32 172 2", +" c None", +". c #FFFFFF", +"+ c #FAF9FA", +"@ c #CAC8CA", +"# c #FAFAFA", +"$ c #F0EFF0", +"% c #C7C5C7", +"& c #828582", +"* c #CFCBCF", +"= c #949694", +"- c #797D79", +"; c #C7B5B8", +"> c #BC9699", +", c #BE9B9E", +"' c #CDC5C9", +") c #9E4445", +"! c #A30000", +"~ c #B90000", +"{ c #8D0C0D", +"] c #B07678", +"^ c #860000", +"/ c #A79899", +"( c #B2B1B2", +"_ c #CBBFC2", +": c #AF3F40", +"< c #CC0000", +"[ c #EA0000", +"} c #FF0000", +"| c #CF0000", +"1 c #AF0000", +"2 c #803534", +"3 c #7A7774", +"4 c #8B8D8B", +"5 c #C7B6B9", +"6 c #8E0000", +"7 c #A60000", +"8 c #942726", +"9 c #7C5C59", +"0 c #7A7471", +"a c #942728", +"b c #890A0A", +"c c #813331", +"d c #7A706C", +"e c #7E7370", +"f c #7F7471", +"g c #7E726F", +"h c #7B6966", +"i c #822726", +"j c #850606", +"k c #822221", +"l c #7A7572", +"m c #7C7F7C", +"n c #7E817E", +"o c #BEBCBE", +"p c #C8C5C8", +"q c #BDBBBD", +"r c #B7878A", +"s c #841514", +"t c #7A7874", +"u c #818481", +"v c #BD989B", +"w c #B48083", +"x c #841615", +"y c #812E2D", +"z c #7B6C69", +"A c #7C807C", +"B c #999A99", +"C c #B0AEB0", +"D c #C1A4A7", +"E c #A96062", +"F c #911E1F", +"G c #850A0A", +"H c #7F4240", +"I c #7C5E5B", +"J c #9D9D9D", +"K c #ABAAAB", +"L c #CCC4C8", +"M c #9D4041", +"N c #952829", +"O c #7F4846", +"P c #959695", +"Q c #B4B2B4", +"R c #C9C6C9", +"S c #AB686A", +"T c #922021", +"U c #961E1F", +"V c #EC0000", +"W c #B60000", +"X c #841110", +"Y c #841413", +"Z c #8A1A1A", +"` c #95292A", +" . c #8B0000", +".. c #990000", +"+. c #D10000", +"@. c #E51211", +"#. c #EC0303", +"$. c #EA0E0D", +"%. c #FE0000", +"&. c #F40000", +"*. c #9F0F0E", +"=. c #7A726E", +"-. c #9D4142", +";. c #9C0000", +">. c #D90000", +",. c #A61716", +"'. c #7A7470", +"). c #878A87", +"!. c #974A4A", +"~. c #7C625F", +"{. c #D40202", +"]. c #7B6663", +"^. c #7F827F", +"/. c #AAA9AA", +"(. c #CBC0C4", +"_. c #975151", +":. c #7C615E", +"<. c #7B7F7B", +"[. c #A2A2A2", +"}. c #BAB8BA", +"|. c #A46061", +"1. c #803B39", +"2. c #ABABAB", +"3. c #C2BFC2", +"4. c #AFAEAF", +"5. c #B1B0B1", +"6. c #CCC8CC", +"7. c #C7C3D1", +"8. c #C5C1D1", +"9. c #C8C4D1", +"0. c #B9B6D4", +"a. c #CECACF", +"b. c #CCC8D0", +"c. c #9996DC", +"d. c #605EE9", +"e. c #6867E1", +"f. c #CCC9CC", +"g. c #C6C3D1", +"h. c #7A77E3", +"i. c #3232EE", +"j. c #2E2EEA", +"k. c #9996DB", +"l. c #C9C5D0", +"m. c #5755EB", +"n. c #3736F2", +"o. c #5C5CD4", +"p. c #C5C2C5", +"q. c #AEABD7", +"r. c #3D3CEB", +"s. c #BFBDBF", +"t. c #BCBABC", +"u. c #1E1EF5", +"v. c #8380E1", +"w. c #3737E5", +"x. c #1D1DF4", +"y. c #B7B6B7", +"z. c #3635F2", +"A. c #2222F7", +"B. c #1818F4", +"C. c #3433F0", +"D. c #B7B3D5", +"E. c #7775E0", +"F. c #3231EE", +"G. c #9693D8", +"H. c #B3B0CE", +"I. c #9D9DB8", +"J. c #B0AFB4", +"K. c #3C3BF1", +"L. c #C7C3CF", +"M. c #ACAAC7", +"N. c #B5B4B6", +"O. c #CBC7CB", +". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + @ ", +". # $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ % & ", +". $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * = - ", +". $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * = - ", +". $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * = - ", +". $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * = - ", +". $ * * * * * ; > > > > > > > > > > > > > , * ; > > ' * * * = - ", +". $ * * * * ; ) ! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ { ] ) ^ ^ / ( * * = - ", +". $ * * * _ : < [ } } } } } } } } } } } } | < 1 ^ 2 3 4 * * = - ", +". $ * * * 5 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 9 0 - 4 * * = - ", +". $ * * * a b c d e f f f f f f g h h i ^ j k l m n o p * * = - ", +". $ * * * * q 4 4 q * * * * * * r ^ ^ ^ s t - u ( * * * * * = - ", +". $ * * * * * * * * * * * * v w ^ ^ x y z A B C * * * * * * = - ", +". $ * * * * * * * * * * D E F ^ G H I - J K * * * * * * * * = - ", +". $ * * * * * * * * L M N ^ ^ O 9 - P Q R * * * * * * * * * = - ", +". $ * * * * * * S T U V V W ^ X Y Y Z T T T T T T T ` * * * = - ", +". $ * * * , ...6 +.@.Y Y Y Y Y #.$.V V V %.} } &.*.=.- B * = - ", +". $ * * * -.;.>.,.i '.- - ).= = !.~.i i i {.>.>.,.].- ^./.* = - ", +". $ * * * (.E _.:.- <.[.[.}.* * p [.[.[.[.|.1.1.:.- <.2.* * = - ", +". $ * * * * * 3.4.4.5.* * * * * * * * * * 6.4.4.4.4.5.* * * = - ", +". $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * = - ", +". $ * * * * * * * * * * 7.8.* * * 9.0.0.0.a.* * * * * * * * = - ", +". $ * * * * * * * * b.c.d.e.f.* g.h.i.j.j.k.* * * * * * * * = - ", +". $ * * * * * * * * l.m.n.o.p.* q.r.s.t.t.u.p.* * * * * * * = - ", +". $ * * * * * * * * * * v.o.p.* q.w.o * * x.y.* * * * * * * = - ", +". $ * * * * * * * * 7.z.A.B.C.D.g.E.F.z.z.G.y.* * * * * * * = - ", +". $ * * * * * * * * a.H.I.I.I.J.K.L.M.I.I.N.f.* * * * * * * = - ", +". $ * * * * * * * * * * * * * * O.q * * * * * * * * * * * * = - ", +". $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * = - ", +". $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * = - ", +"+ % = = = = = = = = = = = = = = = = = = = = = = = = = = = = & - ", +"@ & - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "}; --- zed-1.0.5.orig/debian/changelog +++ zed-1.0.5/debian/changelog @@ -0,0 +1,122 @@ +zed (1.0.5-11build1) breezy; urgency=low + + * Rebuild for new C++ ABI + + -- Matthias Klose Tue, 28 Jun 2005 09:14:46 +0000 + +zed (1.0.5-11) unstable; urgency=low + + * QA upload. + * Applied fix to the C/C++ token parser. (Thanks to Tom Marshall) + (Closes: #241342) + * Fixed FTBFS on amd64/gcc-4.0. (Thanks to Andreas Jochens) + (Closes: #297285) + + -- Philipp Kern Tue, 15 Mar 2005 15:43:23 +0000 + +zed (1.0.5-10) unstable; urgency=low + + * Upgraded to Standards-Version 3.6.1. + -icon file resized and moved to /usr/share/zed + + -- Matti Pöllä Mon, 19 Jan 2004 23:11:37 +0300 + +zed (1.0.5-9) unstable; urgency=low + + * Uploading with maintainer set to QA group + * Rebuild with g++-3.3 (closes: #221363) + + -- Andrew Pollock Tue, 27 Jan 2004 19:38:57 +1100 + +zed (1.0.5-8) unstable; urgency=low + + * New Maintainer. Closes: #80925 + * Corrected spelling errors. Closes: #125578 + * Added man pages. Closes: #43237 + + -- Muhammad Hussain Yusuf Mon, 11 Feb 2002 20:00:28 +0000 + +zed (1.0.5-6) unstable; urgency=low + + * Edward screws up another package + * Recompile to remove the dependancy on xfree86 4.1.0 + + -- Edward Betts Sat, 21 Jul 2001 23:39:15 +0100 + +zed (1.0.5-5) unstable; urgency=low + + * Makefile: zed.h: changed `friend' to `friend class'. (Closes: Bug#104816) + * Makefile: changed COMPILER and LINKER from `gcc' to `g++'. + + -- Edward Betts Sat, 14 Jul 2001 13:32:50 +0100 + +zed (1.0.5-4) unstable; urgency=low + + * Converted to debhelper. Closes: #94165. + * Install cfg/zedrc.xterm as an example, not as a conffile, since it + isn't used by default. + * Install zedico.xpm into /usr/X11R6/include/X11/pixmaps rather than + /usr/share/pixmaps. + * debian/README.debian: Obsolete; removed. + * Conforms to Standards version 3.5.2: + * debian/copyright: GPL is in /usr/share/common-licenses. + + -- Matej Vela Mon, 16 Apr 2001 22:57:23 +0200 + +zed (1.0.5-3) unstable; urgency=low + + * Set maintainer to Debian QA Group + * Raised standards-version to 3.5.2 + * Changed the lay-out of the description field, so dselect will + correctly wordwarp it (closes #92021) + * Corrected the menu file + +zed (1.0.5-2) unstable; urgency=low + + * Replace the use of xv with see. Depend on mime-support (Closes: #60384) + + -- Christoph Lameter Sun, 30 Jul 2000 13:51:56 -0700 + +zed (1.0.5-1) unstable; urgency=low + + * New upstream release Fixed various issues (Closes: #54433) + * Rebuild (Closes: #67944) + + -- Christoph Lameter Sun, 30 Jul 2000 12:51:45 -0700 + +zed (1.0.3-1) unstable; urgency=low + + * New upstream release + * New standards + * Fixes #37458 + + -- Christoph Lameter Thu, 22 Jul 1999 15:13:52 -0700 + +zed (1.0.2-1) unstable; urgency=low + + * Upgraded to Standards-Version 2.4.0.0. + * New upstream release + + -- Robert S. Edmonds Tue, 17 Feb 1998 14:48:42 -0500 + +zed (1.0.1-2) unstable; urgency=low + + * #17867 Made gcc options arch independent. + + -- Christoph Lameter Thu, 5 Feb 1998 15:50:37 -0800 + +zed (1.0.1-1) unstable; urgency=low + + * New upstream release + + -- Christoph Lameter Fri, 23 Jan 1998 21:16:56 -0800 + +zed (1.0-1) debs; urgency=low + + * Initial Release. + + -- Christoph Lameter Sun, 11 Jan 1998 07:34:57 -0800 + +Local variables: +mode: debian-changelog +End: --- zed-1.0.5.orig/debian/control +++ zed-1.0.5/debian/control @@ -0,0 +1,36 @@ +Source: zed +Section: editors +Priority: optional +Maintainer: Debian QA Group +Standards-Version: 3.6.1 +Build-Depends: debhelper (>> 3.0.0), xlibs-dev + +Package: zed +Architecture: any +Depends: mime-support, ${shlibs:Depends} +Description: Powerful, multipurpose, configurable text editor + This package contains a console and an X version. + . + - Can use ANY key sequence (e.g. define a block with shift-arrow) even + on the console. + - Intelligent screen update (NOT using the slow (n)curses). + - Column blocks with insert & overwrite. + - Multi window/multi buffer. + - Color C++, HTML, TeX, Java, mail file. + - Shows parenthesis matching, searches for C functions, reindents C + blocks. + - About 200 commands and 100 variables to deal with. + - Can edit/insert control codes (ASCII 0-31 and 128-159). + - Executes programs with output redirected to a window (e.g. make, + man, etc). + - Can load files with CRLF and/or CR and/or LF end-of-line marker. + - Clipboard and delete buffer. + - Saveable run-time macros. + - Simple and powerful configuration system. + - Easy document mode, almost ASCII. + - Automatic word wrap and reformat, even inside quoted line within an + e-mail file. + - Small, fast, powerful, low CPU consumer. + - Hexdump-like mode to edit binary file. + - You can go everywhere with the cursor. + - Internal, fast file selector. --- zed-1.0.5.orig/debian/copyright +++ zed-1.0.5/debian/copyright @@ -0,0 +1,24 @@ +This package was downloaded from . +Debian Maintainer: Matti Pöllä + +Copyright: + +/* + * This file is part of zed, the simple, powerful, fast, small + * text editor (c) 1997 by Sandro Serafini. + * The author may be contacted by his email address, + * zed@iam.it + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL. --- zed-1.0.5.orig/debian/menu +++ zed-1.0.5/debian/menu @@ -0,0 +1,2 @@ +?package(zed): needs="X11" section="Apps/Editors" \ + icon="/usr/share/zed/zed.xpm" title="ZedX" command="/usr/bin/zedx" --- zed-1.0.5.orig/debian/rules +++ zed-1.0.5/debian/rules @@ -0,0 +1,51 @@ +#! /usr/bin/make -f + +export DH_COMPAT := 3 + +CFLAGS := -O2 -Wall +ifneq ($(findstring debug,$(DEB_BUILD_OPTIONS)),) +CFLAGS += -g +endif + +clean: + dh_testdir + dh_testroot + dh_clean build.stamp zed zedx + $(MAKE) clean + +build: build.stamp +build.stamp: + dh_testdir + $(MAKE) CFLAGS="$(CFLAGS)" + > $@ + +binary: binary-arch binary-indep + +binary-arch: build + dh_testdir + dh_testroot + dh_clean + dh_installdirs usr/bin etc usr/share/zed usr/share/man/man1 + install zed zedx debian/zed/usr/bin + cp -p cfg/zed*rc debian/zed/etc + cp -p zedico.xpm debian/zed/usr/share/zed/zed.xpm + + cp -p debian/zed.1 debian/zed/usr/share/man/man1/zed.1 + cp -p debian/zedx.1 debian/zed/usr/share/man/man1/zedx.1 + dh_installdocs README zed.doc *.png + dh_installexamples cfg/zed*rc.* + dh_installmenu + + dh_installchangelogs CHANGES + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: build + +.PHONY: clean build binary binary-arch binary-indep --- zed-1.0.5.orig/debian/zed.1 +++ zed-1.0.5/debian/zed.1 @@ -0,0 +1,26 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH ZED 1 "February 11, 2002" +.SH NAME +zed \- configurable text editor +.SH SYNOPSIS +.B zed +.RI [ options ] " files" ... +.SH OPTIONS +For a complete description, see /usr/share/doc/zed/zed.doc +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.TP +Note that the X11 version is invoked by the command zedx +.SH SEE ALSO +zedx(1) +.SH Documentation +The program is documented by +.IR "zed.doc" +available at /usr/share/doc/zed/ +.SH AUTHOR +This manual page was written for the Debian GNU/Linux system +(but may be used by others). --- zed-1.0.5.orig/debian/zedx.1 +++ zed-1.0.5/debian/zedx.1 @@ -0,0 +1,17 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH ZEDX 1 "February 11, 2002" +.SH NAME +zedx \- configurable text editor (X version) +.SH SYNOPSIS +.B zedx +.SH OPTIONS +For a complete description, see /usr/share/doc/zed/zed.doc +.SH SEE ALSO +zed(1) +.SH Documentation +The program is documented by +.IR "zed.doc" +available at /usr/share/doc/zed/ +.SH AUTHOR +This manual page was written for the Debian GNU/Linux system +(but may be used by others).