lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev Safety Belt


From: pg
Subject: lynx-dev Safety Belt
Date: Tue, 17 Nov 1998 15:32:55 -0700 (MST)

Hello, Lyncei,

A few weeks ago, I carelessly defined a null macro in
config.hin.  This percolated into lynx_cfg.h, thence into
cfg_defs.h, where it had been transformed into a VOID member
in a struct initializer.  It took me several hours to track
down the SIGSEGV every time I pressed "=".  Today, I did it
again, but it took me less than an hour to recall what had
happened the last time.

Lest I forget again:

diff -brc ./orig/lynxsrc/src/LYShowInfo.c ./lynxsrc/src/LYShowInfo.c
*** ./orig/lynxsrc/src/LYShowInfo.c     Tue Nov 10 12:47:38 1998
--- ./lynxsrc/src/LYShowInfo.c  Tue Nov 17 14:36:37 1998
***************
*** 26,32 ****
  #if defined(HAVE_CONFIG_H) && !defined(NO_CONFIG_INFO)
  #define HAVE_CFG_DEFS_H
  
! #define PutDefs(table, N) fprintf(fp0, "%-35s %s\n", table[N].name, 
table[N].value)
  
  /*
   *  Compile-time definitions info, returns local url
--- 26,33 ----
  #if defined(HAVE_CONFIG_H) && !defined(NO_CONFIG_INFO)
  #define HAVE_CFG_DEFS_H
  
! #define PutDefs(table, N) fprintf(fp0, "%-35s %s\n", table[N].name, \
!     table[N].value?table[N].value:"<VOID>")
  
  /*
   *  Compile-time definitions info, returns local url

reply via email to

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