Nedit 5.7

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
jimmer
Donor
Donor
Posts: 466
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Nedit 5.7

Unread postby jimmer » Wed Jan 25, 2017 1:12 pm

New version of Nedit seems to be out on sourceforge: 5.7

Downloaded git snapshot zipfile. Source does not not compile with CC, now needs c99. Modify in Makefile.sgi
Will also have to spend some time ripping out the new colour defines so IMD theming will work again.

As I recall I did this for 5.6 too and wanted to feedback to Scott Trigali who seems to be maintaining Nedit these days. However, never managed to get hold of him via sourceforge.

Anybody know how to contact him?

J.
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
jimmer
Donor
Donor
Posts: 466
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Nedit 5.7

Unread postby jimmer » Wed Jan 25, 2017 2:43 pm

Right, here's a tarball of the git zipfile that I've modified to give us back:

- IMD look-and-feel: menu fonts and SGI DYNAMIC colour theming
- Use of Sgm Open/Save filedialogs
- O2 optimisation and setup for MIPSpro c99 compiler

Just unpack the tarball and run `make sgi`.

J.
Attachments
nedit-git-25012017.tar.gz
Nedit 5.7 from git 25012017
(1.31 MiB) Downloaded 29 times
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
foetz
Moderator
Moderator
Posts: 6543
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Nedit 5.7

Unread postby foetz » Wed Jan 25, 2017 3:37 pm

sounds great, thanks :-)
i'm surprised tho that it needs c99. i contributed some stuff to the dev branch when it got resurrected and that worked all fine even on irix 5.3. imho compatibility is a major point for nedit, they shouldn't handle that lightly.

User avatar
jimmer
Donor
Donor
Posts: 466
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Nedit 5.7

Unread postby jimmer » Wed Jan 25, 2017 4:28 pm

I completly agree with you on the compatibility thing. But when I ran `make sgi` out of the box the compile failed. I then checked Makefile.sgi and there were strange things. first of all only -O optimisation. then a -DSGI which doesn;t appear in the source anywhere. It should have been -DSGI_CUSTOM. When I looked into the error I was getting, it seemed some new code in the nedit malloc stuff from 2015 was the culprit. On a hunch I changed the cc to c99 and the compile completed flawlessly.

It makes sense. I imagine there's so few developers people actually running older workstations these days. You can see it a bit from the commit logs etc. there's a lot of talk about openmotif and XFT and what have you which means linux and PeeCee's.

Btw. if the UI stuff is anything to go by, the actual nedit codebase needs a refactor in my opinion. It's really ugly stuff :)
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
foetz
Moderator
Moderator
Posts: 6543
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Nedit 5.7

Unread postby foetz » Thu Jan 26, 2017 5:24 am

jimmer wrote:I completly agree with you on the compatibility thing. But when I ran `make sgi` out of the box the compile failed. I then checked Makefile.sgi and there were strange things. first of all only -O optimisation. then a -DSGI which doesn;t appear in the source anywhere. It should have been -DSGI_CUSTOM. When I looked into the error I was getting, it seemed some new code in the nedit malloc stuff from 2015 was the culprit. On a hunch I changed the cc to c99 and the compile completed flawlessly.

aha okay, i guess that needs a closer look.
anyway -O is fine because with most compilers that's just an "alias" for -O2 which many programs use as the conservative default if they wanna play it safe.


EDIT: just checked the SF page and 5.7 doesn't seem to be a release yet. maybe we should wait for the final 5.7 release before putting too much effort in a nightly

EDIT2: had a look at the code and there're only 2 things that require c99.
1. they now use intptr_t which in case of irix can be replaced with long.
2. the one malloc function you mentioned declares one variable in the middle hence not pre-c99 compatible. just move the declaration to the beginnnig of the function and it's fine.
Last edited by foetz on Thu Jan 26, 2017 6:58 am, edited 1 time in total.

User avatar
jimmer
Donor
Donor
Posts: 466
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Nedit 5.7

Unread postby jimmer » Thu Jan 26, 2017 3:00 pm

yes. and that one malloc call also is cast to (char *) which as i recall isn;t needed given that malloc returns (void *) But hey, I'm just a fair-weather coder. What do I know from what really goes on in there :)

User avatar
foetz
Moderator
Moderator
Posts: 6543
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Nedit 5.7

Unread postby foetz » Fri Jan 27, 2017 3:13 am

jimmer wrote:yes. and that one malloc call also is cast to (char *) which as i recall isn;t needed given that malloc returns (void *)

that doesn't hurt. some compilers want the cast, some don't.

User avatar
vishnu
Donor
Donor
Posts: 3174
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Nedit 5.7

Unread postby vishnu » Sun Jan 29, 2017 12:53 am

jimmer wrote:Btw. if the UI stuff is anything to go by, the actual nedit codebase needs a refactor in my opinion. It's really ugly stuff :)

Really? Because in the Mark Edel Slashdot interview (admittedly a long time ago, but not that much has changed in nedit on the in between), he says "One noticeable difference between NEdit and other FS/OSS projects is that the code is neat and thoroughly documented. As I mention in a later question, enforcing this has not been fun, and has probably been counterproductive, as well. It's just something I've found hard to give up on, particularly where I'm going to be the one with the responsibility for maintaining a given section of code."

Interview here:

https://developers.slashdot.org/story/00/10/27/1516243/mark-edel-answers-project-leadership-questions
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:

User avatar
vishnu
Donor
Donor
Posts: 3174
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Nedit 5.7

Unread postby vishnu » Sun Jan 29, 2017 2:03 pm

jimmer wrote:As I recall I did this for 5.6 too and wanted to feedback to Scott Tringali who seems to be maintaining Nedit these days. However, never managed to get hold of him via sourceforge.

Anybody know how to contact him?


His email is s c o t t at tringali dot org, as of yesterday he's still active on the nedit mailing list (to which I subscribe).
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:

User avatar
jimmer
Donor
Donor
Posts: 466
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Nedit 5.7

Unread postby jimmer » Sun Jan 29, 2017 2:17 pm

Thanks. Have emailed him will be sending my trivial patches in the next while.

I also stand corrected about the nedit code. On second reading the nedit code is nice and clean. No idea why I said the stupid things I did above. I guess some of my Real Life project stress bled through or some other moment of braindeadness was in play. Thanks for calling BS on my comments.
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
vishnu
Donor
Donor
Posts: 3174
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Nedit 5.7

Unread postby vishnu » Mon Jan 30, 2017 5:50 am

Well, I think Mark enforced as much code-cleanliness as possible but when you're using X, Xt, and Motif things always end up getting a bit thick... :P
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:

Y888099
Posts: 523
Joined: Mon Jul 11, 2016 11:00 am

Re: Nedit 5.7

Unread postby Y888099 » Mon May 08, 2017 1:11 am

vishnu wrote:His email is s c o t t at tringali dot org, as of yesterday he's still active on the nedit mailing list (to which I subscribe).


nedit also has a lot of problems on X11-pseudocolor-terminals(1)
  • v5.7 crashes
  • v5.6 crashes
  • v5.5 crashes
  • v5.4 doesn't crash but it's damn slow to start.

and why does it crash in the first place? Why doesn't show up anything useful instead?
Any dbg_out(stderr, ErrorMessage)? Never heard before? bah :roll:

None of them reports a clue.
Need to write to someone.

(1) tested on
HP Envizex
Tektronix XP200s
Head Full of Snow. Lemon Scented You

User avatar
vishnu
Donor
Donor
Posts: 3174
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Nedit 5.7

Unread postby vishnu » Mon May 08, 2017 7:46 pm

Are you sure you're compiling it with the all the debugging symbols compiled in? And then running it in the debugger until it crashes? Because, generally speaking that will tell you exactly where in the code it's failing...
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest