nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] another nanocaeuidetc2.patch update


From: David Lawrence Ramsey
Subject: Re: [Nano-devel] another nanocaeuidetc2.patch update
Date: Fri, 26 Apr 2002 10:11:42 -0700 (PDT)

>* removed open_file_change_name(); I originally put it in
>because I wanted to put as much of the multibuffer code in
>wrappers as I could, but since the function's only called in
>one area of the code, and its main logic consists of a
>one-line call to mallocstrcpy(), I changed my mind and
>replaced the function call with that one line; this results
>in nano's being slightly smaller due to the removal of the
>function's overhead

Check that: the one call isn't even needed.
open_file_change_name() is a holdover from when duplicate
checking was still in the multibuffer code.  I removed the
section of code around where it used to be; now, after a file
is saved, the entry, filename and all, is just updated via a
call to add_open_file(1).  The revised patch is attached.


_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!

_____________________________________________________________
Run a small business? Then you need professional email like address@hidden from 
Everyone.net  http://www.everyone.net?tag

Attachment: nanocaeuidetc2.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]