tdb2: copy tdb1's changed expansion logic.
[ccan] / ccan / stringmap / _info
index 5ad40cac2d5d9847f3adb961f0491da592b2dccb..49eff19cf359da262c25a5fda440410b28d24fa1 100644 (file)
  *
  * Example:
  *
  *
  * Example:
  *
- * #include <ccan/stringmap/stringmap.h>                                                                                                                                        
+ * #include <ccan/stringmap/stringmap.h>
  *
  *
- * static const char *get_string(void) {                                                                                                                                        
- *      static char buffer[4096];                                                                                                                                               
- *      char *tail;                                                                                                                                                             
- *      if (!fgets(buffer, sizeof(buffer), stdin))                                                                                                                              
- *              return NULL;                                                                                                                                                    
- *      tail = strchr(buffer, 0);                                                                                                                                               
- *      if (tail>buffer && tail[-1]=='\n')                                                                                                                                      
- *              *--tail = 0;                                                                                                                                                    
- *      if (!*buffer)                                                                                                                                                           
- *              return NULL;                                                                                                                                                    
- *      return buffer;                                                                                                                                                          
- * }                                                                                                                                                                            
+ * static const char *get_string(void) {
+ *      static char buffer[4096];
+ *      char *tail;
+ *      if (!fgets(buffer, sizeof(buffer), stdin))
+ *              return NULL;
+ *      tail = strchr(buffer, 0);
+ *      if (tail>buffer && tail[-1]=='\n')
+ *              *--tail = 0;
+ *      if (!*buffer)
+ *              return NULL;
+ *      return buffer;
+ * }
  *
  *
- * int main(void) {                                                                                                                                                             
+ * int main(void) {
  *      stringmap(int) map = stringmap_new(NULL);
  *      const char *string;
  *
  *      stringmap(int) map = stringmap_new(NULL);
  *      const char *string;
  *
  *    return 0;
  * }
  *
  *    return 0;
  * }
  *
- *     Authors: Joey Adams, Anders Magnusson
- *     License: BSD
+ * Authors: Joey Adams, Anders Magnusson
+ * License: BSD (3 clause)
+ * Version: 0.2
+ * Ccanlint:
+ *     // We actually depend (indirectly) on the LGPL talloc
+ *     license_depends_compat FAIL
  */
 int main(int argc, char *argv[])
 {
  */
 int main(int argc, char *argv[])
 {