[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: grenum.c



  User: danmc   
  Date: 05/08/17 13:40:07

  Modified:    .        grenum.c grenum.h
  Log:
  add missing config.h
  
  
  Revision  Changes    Path
  1.3       +7 -3      eda/geda/devel/utils/src/grenum.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: grenum.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/utils/src/grenum.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- grenum.c	17 Aug 2005 16:41:52 -0000	1.2
  +++ grenum.c	17 Aug 2005 17:40:07 -0000	1.3
  @@ -1,4 +1,4 @@
  -/* $Id: grenum.c,v 1.2 2005/08/17 16:41:52 danmc Exp $ */
  +/* $Id: grenum.c,v 1.3 2005/08/17 17:40:07 danmc Exp $ */
   /*	This is grenum, an advanced refdes renumber utility for gEDA's gschem.
    *
    *	Copyright (C) 2005  Levente Kovacs
  @@ -21,6 +21,10 @@
    *
    */
   
  +#ifdef HAVE_CONFIG_H
  +#include "config.h"
  +#endif
  +
   #include <stdio.h>
   #include <stdlib.h>
   
  @@ -28,7 +32,7 @@
   #include <string.h>
   #endif
   
  -#define _GNU_SOURCE
  +//#define _GNU_SOURCE
   
   #ifdef HAVE_GETOPT_H
   #include <getopt.h>
  @@ -327,6 +331,6 @@
   void printver()
   	{
   	printf("This is grenum, an advanced refdes renumber utility for gEDA's gschem.\n");
  -	printf("Version %s\n",VERSION);
  +	printf("Version %s.  gEDA/gaf version %s\n",GRVERSION, VERSION);
   	printf("Compiled on %s at %s\n",COMP_DATE,COMP_TIME);
   	}
  
  
  
  1.2       +3 -1      eda/geda/devel/utils/src/grenum.h
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: grenum.h
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/utils/src/grenum.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- grenum.h	16 Aug 2005 17:07:49 -0000	1.1
  +++ grenum.h	17 Aug 2005 17:40:07 -0000	1.2
  @@ -1,4 +1,6 @@
  -#define VERSION "15082005"
  +/* $Id: grenum.h,v 1.2 2005/08/17 17:40:07 danmc Exp $ */
  +
  +#define GRVERSION "15082005"
   #define COMP_DATE __DATE__
   #define COMP_TIME __TIME__
   #define MAX_PREFIX_COUNT 50 /*This specifies the maximum number of different prefixes. e.g. Ux Rx Qx...*/