[tracker] libtracker-extract: Fixed gtkdoc warnings for multiple tracker_getline()



commit 68d7d9076092dd73f77853adec0fb8f42c7861f8
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Mar 12 19:21:26 2013 +0000

    libtracker-extract: Fixed gtkdoc warnings for multiple tracker_getline()

 src/libtracker-extract/tracker-utils.c |   36 ++++---------------------------
 1 files changed, 5 insertions(+), 31 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-utils.c b/src/libtracker-extract/tracker-utils.c
index 175f3f8..0761248 100644
--- a/src/libtracker-extract/tracker-utils.c
+++ b/src/libtracker-extract/tracker-utils.c
@@ -877,34 +877,7 @@ my_igetdelim (gchar  **linebuf,
        return idx;
 }
 
-/**
- * tracker_getline:
- * @lineptr: Buffer to write into
- * @n: Max bytes of linebuf
- * @stream: Filestream to read from
- *
- * Reads an entire line from stream, storing the address of the buffer
- * containing  the  text into *lineptr.  The buffer is null-terminated
- * and includes the newline character, if one was found.
- *
- * Read GNU getline()'s manpage for more information
- *
- * Returns: the number of characters read, including the delimiter
- * character, but not including the terminating %NULL byte. This value
- * can be used to handle embedded %NULL bytes in the line read. Upon
- * failure, -1 is returned.
- *
- * Since: 0.10
- **/
-gssize
-tracker_getline (gchar **lineptr,
-                 gsize  *n,
-                 FILE   *stream)
-{
-       return my_igetdelim (lineptr, n, '\n', stream);
-}
-
-#else
+#endif /* HAVE_GETLINE */
 
 /**
  * tracker_getline:
@@ -930,11 +903,12 @@ tracker_getline (gchar **lineptr,
                  gsize  *n,
                  FILE *stream)
 {
+#ifndef HAVE_GETLINE
+       return my_igetdelim (lineptr, n, '\n', stream);
+#else  /* HAVE_GETLINE */
        return getline (lineptr, n, stream);
-}
-
 #endif /* HAVE_GETLINE */
-
+}
 
 /**
  * tracker_keywords_parse:


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