[PATCH] Choose syntax with dynamic list allocation

Leonard den Ottolander leonard at den.ottolander.nl
Wed Jul 20 13:13:38 UTC 2005


Hi,

Well, it turned out my pointer arithmetic wasn't that bad, but testing
for (! count % NENTRIES) to reallocate the list is not entirely correct
;).

Here is a patch which allocates the syntax list dynamically. NENTRIES is
currently defined as 3, but that is for testing purposes only.

Maybe we should save the syntax list instead of creating it on every
invocation of the editor?

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MC_4_6_1_PRE.syntax.patch
Type: text/x-patch
Size: 10766 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050720/d73e7efc/attachment.bin>


More information about the mc-devel mailing list