Remove src/contrib/prfn.c and related code.
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 17 Sep 2013 17:53:03 +0000 (20:53 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 24 Sep 2013 17:56:29 +0000 (20:56 +0300)
The generated file list hadn't probably been updated in more than a
decade.  It this is necessary at some point, it's easier to reimplement
it at that time than to keep it hanging around now.

Change-Id: I842a92ec416bc5232e54fa8567d540c7af751c24

src/contrib/prfn.c [deleted file]
src/gromacs/gmxlib/filenm.c
src/gromacs/legacyheaders/filenm.h

diff --git a/src/contrib/prfn.c b/src/contrib/prfn.c
deleted file mode 100644 (file)
index ed5beed..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * 
- *                This source code is part of
- * 
- *                 G   R   O   M   A   C   S
- * 
- *          GROningen MAchine for Chemical Simulations
- * 
- *                        VERSION 3.3.99_development_20071104
- * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
- * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
- * Copyright (c) 2001-2006, The GROMACS development team,
- * check out http://www.gromacs.org for more information.
-
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * 
- * If you want to redistribute modifications, please consider that
- * scientific software is very special. Version control is crucial -
- * bugs must be traceable. We will be happy to consider code for
- * inclusion in the official distribution, but derived work must not
- * be called official GROMACS. Details are found in the README & COPYING
- * files - if they are missing, get the official version at www.gromacs.org.
- * 
- * To help us fund GROMACS development, we humbly ask that you cite
- * the papers on the package - you can find them in the top README file.
- * 
- * For more info, check our website at http://www.gromacs.org
- * 
- * And Hey:
- * Groningen Machine for Chemical Simulation
- */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "filenm.h"
-#include "futil.h"
-#include "gromacs/onlinehelp/wman.h"
-
-void pr_texdefs(FILE *fp)
-{
-  int i;
-
-  fprintf(fp,"\\begin{table}\n");
-  fprintf(fp,"\\begin{tabularx}{\\linewidth}{|r@{\\tt.}lccX|}\n");
-  fprintf(fp,"\\dline\n");
-  fprintf(fp,"\\mc{2}{|c}{%s} & %4s & %7s & %s \\\\[-0.1ex]\n",
-         "Default","","Default","");
-  fprintf(fp,"\\mc{1}{|c}{%s} & \\mc{1}{c}{%s} & %4s & %7s & %s "
-         "\\\\[-0.1ex]\n",
-         "Name","Ext.","Type","Option","Description");
-  fprintf(fp,"\\hline\n");
-  for(i=0; (i<efNR); i++)
-    if ( (i!=efGCT) && (i!=efHAT) )
-      pr_def(fp,i);
-  fprintf(fp,"\\dline\n");
-  fprintf(fp,"\\end{tabularx}\n");
-  fprintf(fp,"\\caption{The {\\gromacs} file types.}\n");
-  fprintf(fp,"\\label{tab:form}\n");
-  fprintf(fp,"\\end{table}\n");
-}
-
-void pr_htmldefs(FILE *fp)
-{
-  int i;
-
-  fprintf(fp,"<title>GROMACS</title>\n");
-  fprintf(fp,"<h1>GROMACS Files</h1>\n");
-  fprintf(fp,"<b>GRO</b>ningen <b>MA</b>chine for <b>S</b>imulating <b>C</b>hemistry\n");
-  fprintf(fp,"<p>\n");
-  fprintf(fp,"The following %d filetypes are used by Gromacs:\n",efNR);
-  fprintf(fp,"<dl>\n");
-  for(i=0; (i<efNR); i++) {
-    fprintf(fp,"<dt><a href=\"%s.html\">%s.%s</a> (%s)<dd>%s\n",
-           ftp2ext(i),ftp2defnm(i),ftp2ext(i),ftp2ftype(i),
-           check_html(ftp2desc(i),NULL));
-  }
-  fprintf(fp,"</dl>\n");
-}
-
-
-int main()
-{
-  FILE *out;
-  
-  out=ffopen("files.tex","w");
-  pr_texdefs(out);
-  ffclose(out);
-  
-  out=ffopen("files.html","w");
-  pr_htmldefs(out);
-  ffclose(out);
-
-  return 0;
-}
index 8f40abd5e010890c6bc34ce9a9f12f9d4f77a885..e32c8bcbf495fb73180d7eaeff6d9689aea3faa3 100644 (file)
@@ -337,72 +337,6 @@ const char *ftp2defnm(int ftp)
     return buf;
 }
 
-void pr_def(FILE *fp, int ftp)
-{
-    const t_deffile *df;
-    const char      *s = NULL;
-    char            *flst, *tmp, *desc;
-    const char      *ext;
-    const char      *defnm;
-
-    df    = &(deffile[ftp]);
-    defnm = ftp2defnm(ftp);
-    /* find default file extension and \tt-ify description */
-    /* FIXME: The constness should not be cast away */
-    flst = (char *) "";
-    desc = strdup(df->descr);
-
-    if (df->ntps)
-    {
-        ext = deffile[df->tps[0]].ext;
-        tmp = strstr(desc, ": ") + 1;
-        if (tmp)
-        {
-            tmp[0] = '\0';
-            tmp++;
-            snew(flst, strlen(tmp)+6);
-            strcpy(flst, " \\tt ");
-            strcat(flst, tmp);
-        }
-    }
-    else
-    {
-        ext = df->ext;
-    }
-    /* now skip dot */
-    if (ext[0])
-    {
-        ext++;
-    }
-    else
-    {
-        ext = "";
-    }
-    /* set file contents type */
-    switch (df->ftype)
-    {
-        case eftASC:
-            s = "Asc";
-            break;
-        case eftBIN:
-            s = "Bin";
-            break;
-        case eftXDR:
-            s = "xdr";
-            break;
-        case eftGEN:
-            s = "";
-            break;
-        default:
-            gmx_fatal(FARGS, "Unimplemented filetype %d %d", ftp,
-                      df->ftype);
-    }
-    fprintf(fp, "\\tt %8s & \\tt %3s & %3s & \\tt %2s & %s%s \\\\[-0.1ex]\n",
-            defnm, ext, s, df->defopt ? df->defopt : "",
-            check_tex(desc), check_tex(flst));
-    free(desc);
-}
-
 void pr_fns(FILE *fp, int nf, const t_filenm tfn[])
 {
     int    i, f;
index 206a7972f84681f6540dda5a79d163b32981082b..af499d4e5c52087b6aa3f6276f7cc477f3b2a52e 100644 (file)
@@ -61,12 +61,6 @@ const char *ftp2defnm(int ftp);
 const char *ftp2ftype(int ftp);
 /* Return Binary or ASCII depending on file type */
 
-void pr_def(FILE *fp, int ftp);
-/* Print definitions for filename ftp */
-
-void pr_defs(FILE *fp);
-/* Print definitions for all filename */
-
 void pr_fns(FILE *fp, int nf, const t_filenm tfn[]);
 /* Print nf file names and types */