gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r23117 - in Extractor/src: common plugins


From: gnunet
Subject: [GNUnet-SVN] r23117 - in Extractor/src: common plugins
Date: Sun, 5 Aug 2012 20:35:58 +0200

Author: grothoff
Date: 2012-08-05 20:35:58 +0200 (Sun, 05 Aug 2012)
New Revision: 23117

Modified:
   Extractor/src/common/convert.c
   Extractor/src/common/convert.h
   Extractor/src/common/pack.h
   Extractor/src/plugins/Makefile.am
Log:
-minor cleanups

Modified: Extractor/src/common/convert.c
===================================================================
--- Extractor/src/common/convert.c      2012-08-05 18:31:20 UTC (rev 23116)
+++ Extractor/src/common/convert.c      2012-08-05 18:35:58 UTC (rev 23117)
@@ -4,7 +4,7 @@
 
      libextractor 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, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      libextractor is distributed in the hope that it will be useful, but
@@ -26,12 +26,19 @@
  * Convert the len characters long character sequence
  * given in input that is in the given charset
  * to UTF-8.
+ *
+ * @param input string to convert
+ * @param len number of bytes in input
+ * @param charset input character set
+ * @return the converted string (0-terminated), NULL on error
  * @return the converted string (0-terminated),
  *  if conversion fails, a copy of the orignal
  *  string is returned.
  */
 char *
-EXTRACTOR_common_convert_to_utf8 (const char *input, size_t len, const char 
*charset)
+EXTRACTOR_common_convert_to_utf8 (const char *input, 
+                                 size_t len, 
+                                 const char *charset)
 {
   size_t tmpSize;
   size_t finSize;

Modified: Extractor/src/common/convert.h
===================================================================
--- Extractor/src/common/convert.h      2012-08-05 18:31:20 UTC (rev 23116)
+++ Extractor/src/common/convert.h      2012-08-05 18:35:58 UTC (rev 23117)
@@ -4,7 +4,7 @@
 
      libextractor 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, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      libextractor is distributed in the hope that it will be useful, but
@@ -30,14 +30,18 @@
 
 
 /**
- * Convert the len characters long character sequence
- * given in input that is in the given charset
- * to UTF-8.
- * @return the converted string (0-terminated)
+ * Convert the 'len' characters long character sequence given in
+ * 'input' that is in the given 'charset' to UTF-8.
+ *
+ * @param input string to convert
+ * @param len number of bytes in input
+ * @param charset input character set
+ * @return the converted string (0-terminated), NULL on error
  */
-char * EXTRACTOR_common_convert_to_utf8(const char * input,
-                    size_t len,
-                    const char * charset);
+char * 
+EXTRACTOR_common_convert_to_utf8 (const char * input,
+                                 size_t len,
+                                 const char *charset);
 
 #ifdef __cplusplus
 }

Modified: Extractor/src/common/pack.h
===================================================================
--- Extractor/src/common/pack.h 2012-08-05 18:31:20 UTC (rev 23116)
+++ Extractor/src/common/pack.h 2012-08-05 18:35:58 UTC (rev 23117)
@@ -45,13 +45,18 @@
    p - (unpack only) value is a pointer to a pointer.  Generate the buffer
        to hold the data.
  */
-int EXTRACTOR_common_cat_unpack(const void * buf, const char *fmt, ... );
+int 
+EXTRACTOR_common_cat_unpack(const void * buf, 
+                           const char *fmt,
+                           ...);
 
-struct cat_bvec {
+struct cat_bvec 
+{
   unsigned long len;
   void * data;
 };
 
+
 #endif /* __CAT_PACK_H */
 
 

Modified: Extractor/src/plugins/Makefile.am
===================================================================
--- Extractor/src/plugins/Makefile.am   2012-08-05 18:31:20 UTC (rev 23116)
+++ Extractor/src/plugins/Makefile.am   2012-08-05 18:35:58 UTC (rev 23117)
@@ -64,7 +64,6 @@
   $(PLUGINFLAGS)
 libextractor_ogg_la_LIBADD = \
   $(top_builddir)/src/main/libextractor.la \
-  $(top_builddir)/src/common/libextractor_common.la \
   -lvorbisfile -lvorbis $(vorbisflag) -logg
 
 test_ogg_SOURCES = \
@@ -79,7 +78,6 @@
   $(PLUGINFLAGS)
 libextractor_mime_la_LIBADD = \
   $(top_builddir)/src/main/libextractor.la \
-  $(top_builddir)/src/common/libextractor_common.la \
   -lmagic
 
 test_mime_SOURCES = \
@@ -94,7 +92,6 @@
   $(PLUGINFLAGS)
 libextractor_gif_la_LIBADD = \
   $(top_builddir)/src/main/libextractor.la \
-  $(top_builddir)/src/common/libextractor_common.la \
   -lgif
 
 test_gif_SOURCES = \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]