Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/tools/lemon lemon.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 1 Feb 2001 15:46:49 -0600 (CST)
guy         2001/02/01 15:46:49 CST

  Modified files:
    tools/lemon          lemon.c 
  Log:
  Rename the "optarg()" and "opterr()" functions to "get_optarg()" and
  "get_opterr()" so they don't collide with "getopt()"s "optarg" and
  "opterr" globals (Solaris 2.6's <stdio.h> declares both "optarg" and
  "opterr", causing "lemon.c" not to compile).
  
  Define "safe_isXXX()" macros to call "isXXX()" after casting the
  argument to "unsigned char" to handle characters with the 8th bit set.
  Make some "int" variables used only to hold characters "char" instead.
  
  Revision  Changes    Path
  1.2       +42 -31    ethereal/tools/lemon/lemon.c