Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill last usage of xbt_basename().
[simgrid.git] / include / xbt / file.h
index 2b577fb..3d588ba 100644 (file)
@@ -1,6 +1,4 @@
-/* str.h - XBT string related functions.                                    */
-
-/* Copyright (c) 2007-2015. The SimGrid Team.
+/* Copyright (c) 2007-2017. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -9,32 +7,19 @@
 #ifndef XBT_FILE_H
 #define XBT_FILE_H
 
-#include <stdint.h> /* ssize_t */
-#include <stdarg.h>             /* va_* */
-#include <stdio.h>  /* FILE */
-#include <stdlib.h> /* size_t, ssize_t */
-#include "xbt/misc.h"
-#include "xbt/dynar.h"
-#include "xbt/dict.h"
-#include "simgrid_config.h"     /* FILE for getline */
+#include <xbt/base.h>
 
 SG_BEGIN_DECL()
 
-/** @addtogroup XBT_file
- *  @brief File manipulation functions
+/** @defgroup XBT_file File manipulation functions
+ *  @ingroup XBT_misc
  *
- * This module redefine some quite classical functions such as xbt_getline() or xbt_dirname() for the platforms
- * lacking them.
+ * This module redefine some quite classical functions such as xbt_basename() for the platforms lacking them.
  * @{
  */
-/* Our own implementation of getline, mainly useful on the platforms not enjoying this function */
-XBT_PUBLIC(ssize_t) xbt_getline(char **lineptr, size_t * n, FILE * stream);
-
-/* Our own implementation of dirname, that does not exist on windows */
-XBT_PUBLIC(char *) xbt_dirname(const char *path);
+/* Our own implementation of basename, that does not exist on windows */
 XBT_PUBLIC(char *) xbt_basename(const char *path);
 
-
 /**@}*/
 
 SG_END_DECL()