Gromacs  2016.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
dir_separator.h File Reference
#include "config.h"
+ Include dependency graph for dir_separator.h:

Description

Provides OS-specific directory-name separator.

Macros

#define DIR_SEPARATOR   '/'
 Directory separator on this OS. More...
 

Macro Definition Documentation

#define DIR_SEPARATOR   '/'

Directory separator on this OS.

Native Windows uses backslash path separators (but accepts also slashes). Cygwin and most other systems use slash.

Todo:
Get rid of this (Redmine #950). It is not necessary for constructing paths on the systems that it currently supports, and is not reliable in parsing input paths either, since Windows needs to accept both instead of only DIR_SEPARATOR. At the very least, we should refactor the clients of this header so that they operate upon path objects rather than raw path strings.