extern "C" {
#endif
-<<<<<<< HEAD
-t_restp *search_rtp(const char *key,int nrtp,t_restp rtp[]);
-/* Search for an entry in the rtp database */
-=======
char *search_rtp(const char *key,int nrtp,t_restp rtp[]);
/* Search for an entry in the rtp database, returns the rtp residue name.
* A mismatch of one character is allowed, if there is only one nearly
/* Return the entry in the rtp database with rtp name rtpname.
* Generates a fatal error when rtpname is not found.
*/
->>>>>>> release-4-5-patches
gpp_atomtype_t read_atype(const char *ffdir,t_symtab *tab);
/* read atom type database(s) */
#define CONTINUE '\\'
#define COMMENTSIGN ';'
-<<<<<<< HEAD
- int continuing(char *s);
-
- char *fgets2(char *s, int n, FILE *stream);
-
- void strip_comment (char *line);
-
- int break_line (char *line,
- char *variable,
- char *value);
-
- void upstring (char *str);
-
- void ltrim (char *str);
-
- void rtrim (char *str);
-
- void trim (char *str);
-
- void nice_header (FILE *out,const char *fn);
-
- int gmx_strcasecmp_min(const char *str1, const char *str2);
- int gmx_strncasecmp_min(const char *str1, const char *str2, int n);
- /* This funny version of strcasecmp, is not only case-insensitive,
- * but also ignores '-' and '_'.
- */
-
- int gmx_strcasecmp(const char *str1, const char *str2);
- int gmx_strncasecmp(const char *str1, const char *str2, int n);
-
- char *gmx_strdup(const char *src);
- char *gmx_strndup(const char *src, int n);
-
- /** Pattern matcing with wildcards. */
- int gmx_wcmatch(const char *pattern, const char *src);
-
- /** Return value for gmx_wcmatch() when there is no match. */
-#define GMX_NO_WCMATCH 1
-
-
- /* this is our implementation of strsep, the thread-safe replacement for
- strtok */
- char *gmx_strsep(char **stringp, const char *delim);
-
-
- char *wrap_lines(const char *buf,int line_width, int indent,
- bool bIndentFirst);
- /* wraps lines at 'linewidth', indenting all following
- * lines by 'indent' spaces. A temp buffer is allocated and returned,
- * which can be disposed of if no longer needed.
- * If !bIndentFirst, then the first line will not be indented, only
- * the lines that are created due to wapping.
- */
-
-
-extern char **split(char sep,const char *str);
-=======
int continuing(char *s);
char *fgets2(char *s, int n, FILE *stream);
char **split(char sep,char *str);
->>>>>>> release-4-5-patches
/* Implementation of the well-known Perl function split */
gmx_large_int_t str_to_large_int_t(const char *str, char **endptr);
return (m[XX][XX]+m[YY][YY]+m[ZZ][ZZ]);
}
-<<<<<<< HEAD
-static gmx_inline real _divide_err(real a,real b,const char *file,int line)
-=======
static gmx_inline real _divide(real a,real b,const char *file,int line)
->>>>>>> release-4-5-patches
{
if (fabs(b) <= GMX_REAL_MIN)
gmx_fatal(FARGS,"Dividing by zero, file %s, line %d",file,line);
desc[i] = strdup(ffs[i]);
}
}
-<<<<<<< HEAD
- /*
-=======
/* Order force fields from the same dir alphabetically
* and put deprecated force fields at the end.
*/
->>>>>>> release-4-5-patches
for(i=0; (i<nff); i++)
{
for(j=i+1; (j<nff); j++)
{
-<<<<<<< HEAD
- if ((desc[i][0] == '[' && desc[j][0] != '[') ||
- ((desc[i][0] == '[' || desc[j][0] != '[') &&
- gmx_strcasecmp(desc[i],desc[j]) > 0))
-=======
if (strcmp(ffs_dir[i],ffs_dir[j]) == 0 &&
((desc[i][0] == '[' && desc[j][0] != '[') ||
((desc[i][0] == '[' || desc[j][0] != '[') &&
gmx_strcasecmp(desc[i],desc[j]) > 0)))
->>>>>>> release-4-5-patches
{
swap_strings(ffdirs,i,j);
swap_strings(ffs ,i,j);