Original post is here: eklausmeier.goip.de
Here are some thoughts about possible enhancements for J-Pilot.
- Convert pdb's and pc3's to SQLite. This makes it easier to analyze data according some criteria, e.g., find how many addresses have the same telephone numbers, how many entries in datebook contain the same substring, etc.
- Convert and transform pdb's and pc3's to Google GData (shut down or deprecated). The Google id, which is returned after transmitting data, is then possibly stored in pdb/pc3.
- Use
mmap()
instead of all itsfread()
andmalloc()
's inside pilot-link and J-Pilot. - When J-Pilot searches for strings in the case-insensitive case, then it copies all elements and uses
malloc()
for each element, see routinejp_strstr()
. Instead, just use eitherstrcasestr()
or a home-brewedstrstr()
which takes care of case. Newjp_strstr()
is thus:
1const char *jp_strstr(const char *haystack, const char *needle, int case_sense) {
2 if (haystack == NULL) return NULL;
3 if (needle == NULL) return haystack;
4 return case_sense ? strstr(haystack, needle) : strcasestr(haystack, needle);
5}
- Provide ncurses interfaces instead of Gtk. See for example calcurse.
- When searching for strings and then jumping to the result, it just shows the record, but it does not directly position the cursor to the string where it was found. In particular for memos this is a small nuisance.
last updated: