English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Diff of /branches/common-nfo/tools/sqlite/dbif.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3445 by tg, Wed Aug 8 12:29:18 2007 UTC revision 3446 by tg, Wed Aug 8 14:55:33 2007 UTC
# Line 49  Line 49 
49                  fprintf(stderr, (fmt), ##__VA_ARGS__);  \                  fprintf(stderr, (fmt), ##__VA_ARGS__);  \
50  } while (0)  } while (0)
51    
52    __BEGIN_DECLS
53  EXTERN int debug I__(0);  EXTERN int debug I__(0);
54  EXTERN sqlite3 *db I__(NULL);  EXTERN sqlite3 *db I__(NULL);
55    
# Line 78  size_t strlcat(char *, const char *, siz Line 79  size_t strlcat(char *, const char *, siz
79  size_t strlcpy(char *, const char *, size_t);  size_t strlcpy(char *, const char *, size_t);
80  #endif  #endif
81  #endif  #endif
82    __END_DECLS
83    
84    /* useful stuff */
85    #define xmalloc(size) ({                                \
86            void *xmalloc_ptr;                              \
87            size_t xmalloc_sz = (size);                     \
88                                                            \
89            if ((xmalloc_ptr = malloc(xmalloc_sz)) == NULL) \
90                    err(255, "cannot allocate %zu bytes",   \
91                        xmalloc_sz);                        \
92            (xmalloc_ptr);                                  \
93    })
94    
95  #endif  #endif

Legend:
Removed from v.3445  
changed lines
  Added in v.3446

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20