Parent Directory
|
Revision Log
|
Patch
| revision 3442 by tg, Wed Jul 18 13:23:19 2007 UTC | revision 3443 by tg, Wed Aug 8 12:45:20 2007 UTC | |
|---|---|---|
| # | Line 108 main(int argc, char *argv[]) | Line 108 main(int argc, char *argv[]) |
| 108 | dberr(1, "error processing the database scheme"); | dberr(1, "error processing the database scheme"); |
| 109 | D(1, "database created\n"); | D(1, "database created\n"); |
| 110 | ||
| 111 | for (const struct categories *ctp = categories; ctp->catname != NULL; | |
| 112 | ++ctp) { | |
| 113 | xdbexecv(NULL, NULL, NULL, | |
| 114 | "INSERT INTO categories (name, desc) VALUES ('%s', '%s');", | |
| 115 | ctp->catname, ctp->catdesc); | |
| 116 | } | |
| 117 | ||
| 118 | /* … */ | /* … */ |
| 119 | ||
| 120 | D(1, "finishing...\n"); | D(1, "finishing...\n"); |
|
||||||||
| root@freewrt.org:443 | ViewVC Help |
| Powered by ViewVC 1.1.20 |