patchAVR Downloader/UploaDEr - Patches: patch #7671, Sorting programmers and parts...


You are not allowed to post comments on this tracker with your current authentication level.

patch #7671: Sorting programmers and parts lists for console output

Submitted by:  Rene Liebscher <rliebscher>
Submitted on:  Sun 20 Nov 2011 08:21:31 PM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: Rene Liebscher <rliebscher>Open/Closed: Closed

Sat 17 Dec 2011 01:58:31 PM UTC, comment #1:

Integrated in svn revision 1019

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Sun 20 Nov 2011 08:21:31 PM UTC, original submission:

-- sorted_lists.patch --
This patch sorts the programmers and parts list, which appear for unknown/not set programmers or parts.

It add a lsort function in list.c (just a simple bubble sort), a sort_avrparts function in avrpart.c and a sort_programmers in pgm.c. These functions are used in lists_programmers and list_parts in main.c.

Additional it modifies the output format for the longer id which now are in use. It also shows the information about the used configuration file and line only if verbose > 0. (Most people are not interested in this information.)

Another change is in pgm.c in walk_programmers as one can define programmers as "id = <id1> [, <id2> [, <id3>] ...] ; # <idN> are quoted strings". locate_programmers does check all ids for a match, but walk_programmers did use only one entry. The change calls now the callback for all ids.

-- part_names.patch --
If using the sorted lists, you can see that some parts are written as ATMEGA... other as ATmega... or attiny... This second patch changes the names (desc field) to use the offical naming (ATmega..., ATtiny..., ATxmega...) The function locate_part in avrpart.c uses strcasecmp so I don't think this gives any problems with current users.

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.


Attached Files
file #24406:  sorted_lists.patch added by rliebscher (6KiB - application/octet-stream)
file #24407:  parts_names.patch added by rliebscher (16KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rliebscher
  • -unavailable- added by rliebscher (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 Dec 2011 01:58:31 PM UTCrliebscherOpen/ClosedOpen=>Closed
    Fri 16 Dec 2011 08:26:05 PM UTCrliebscherAssigned toNone=>rliebscher
    Sun 20 Nov 2011 08:21:31 PM UTCrliebscherAttached File-=>Added sorted_lists.patch, #24406
      Attached File-=>Added parts_names.patch, #24407
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1