ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] master 0b2c8b0: AMQP: fix declaration of

From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Sun, 8 Feb 2015 19:05:52 +0100


On Tue, Feb 3, 2015 at 6:50 AM, Guy Harris <guy@xxxxxxxxxxxx> wrote:

On Feb 2, 2015, at 1:46 PM, Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx> wrote:

> 0b2c8b0 by Alexis La Goutte (alexis.lagoutte@xxxxxxxxx):
>
>    AMQP: fix declaration of 'index' shadows a global declaration
>
>    St*** Mac OS X buildbot...

It's probably Ken or Dennis's fault; the original name for The Routine Currently Known As strchr() was index(), perhaps by (weak) analogy to PL/I's index() function (which was more like strstr(), as I remember).  V7 had index() and reindex(), as did the V7-based UNIX/32V and the UNIX/32V-derived 4.x BSD.  The folks in the group that gave us System III and System V renamed them to strchr() and strrchr(), perhaps to avoid collisions; a number of UN*Xes offered them under both names, so that code written using either set of names would compile.  OS X may do so out of its BSD heritage, although I think for most if not all purposes it would suffice to declare them in <strings.h> but not in <string.h> (and not have <string.h> include <strings.h>).
Hi Guy,

Thanks for "historic" information...

May be add check (in checkAPI) for found there is no index (also time, strlen) variable (and generate a warning)

Regards,
 
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe