changeset 368:2242da885677

- s/todo:/TODO:/g
author jcid
date Tue, 30 Sep 2008 16:32:41 +0200
parents 898d503db27b
children 5facb856b388
files dpi/bookmarks.c dpi/cookies.c dpi/datauri.c dpi/file.c dpid/dpid.c dpid/dpid.h dpid/main.c dw/fltkui.cc dw/image.cc dw/layout.cc dw/textblock.cc dw/textblock.hh src/IO/dpi.c src/bookmark.h src/cache.c src/capi.c src/dicache.c src/findbar.cc src/form.cc src/gif.c src/html.cc src/misc.c src/nav.c src/png.c src/table.cc src/ui.cc
diffstat 26 files changed, 65 insertions(+), 65 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/bookmarks.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/dpi/bookmarks.c	Tue Sep 30 16:32:41 2008 +0200
@@ -12,7 +12,7 @@
  *
  */
 
-/* Todo: this server is not assembling the received packets.
+/* TODO: this server is not assembling the received packets.
  * This means it currently expects dillo to send full dpi tags
  * within the socket; if that fails, everything stops.
  * This is not hard to fix, mainly is a matter of expecting the
@@ -1314,7 +1314,7 @@
    dFree(url);
    section = 0;
 
-   /* todo: we should send an "Bookmark added" message, but the
+   /* TODO: we should send an "Bookmark added" message, but the
       msg-after-HTML functionallity is still pending, not hard though. */
 
    /* Write new bookmarks file */
--- a/dpi/cookies.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/dpi/cookies.c	Tue Sep 30 16:32:41 2008 +0200
@@ -23,7 +23,7 @@
  *       add comments, remove leaks, etc.
  */
 
-/* Todo: this server is not assembling the received packets.
+/* TODO: this server is not assembling the received packets.
  * This means it currently expects dillo to send full dpi tags
  * within the socket; if that fails, everything stops.
  */
@@ -533,7 +533,7 @@
       day = strtol(cp + 2, NULL, 10);
       month = Cookies_get_month(cp + 5);
       year = strtol(cp + 9, &cp, 10);
-      /* todo: tricky, because two digits for year IS ambiguous! */
+      /* TODO: tricky, because two digits for year IS ambiguous! */
       year += (year < 70) ? 2000 : ((year < 100) ? 1900 : 0);
       hour = strtol(cp + 1, NULL, 10);
       minutes = strtol(cp + 4, NULL, 10);
--- a/dpi/datauri.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/dpi/datauri.c	Tue Sep 30 16:32:41 2008 +0200
@@ -200,7 +200,7 @@
 
 /*
  * Get mime type from the data URI.
- * todo: there's no point in handling "charset" because current dillo
+ * TODO: there's no point in handling "charset" because current dillo
  * only handles ISO-LATIN-1. The FLTK2 version (utf-8) could use it in the
  * future.
  */
--- a/dpi/file.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/dpi/file.c	Tue Sep 30 16:32:41 2008 +0200
@@ -648,7 +648,7 @@
       }
    } while (st > 0);
 
-   /* todo: It may be better to send an error report to dillo instead of
+   /* TODO: It may be better to send an error report to dillo instead of
     *       calling exit() */
    if (st == -1) {
       MSG("ERROR while reading from file \"%s\", error was \"%s\"\n",
@@ -977,7 +977,7 @@
       }
    }
 
-   /* todo: handle a running thread better. */
+   /* TODO: handle a running thread better. */
    for (i = 0; i < 5 && ThreadRunning; ++i) {
       MSG("sleep i=%u", i);
       sleep(i);
--- a/dpid/dpid.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/dpid/dpid.c	Tue Sep 30 16:32:41 2008 +0200
@@ -409,7 +409,7 @@
    dFree(sys_dpidir);
    dFree(user_dpidir);
 
-   /* todo: do we consider snum == 0 an error?
+   /* TODO: do we consider snum == 0 an error?
     *       (if so, we should return -1 )       */
    return (snum);
 }
--- a/dpid/dpid.h	Tue Sep 30 16:19:42 2008 +0200
+++ b/dpid/dpid.h	Tue Sep 30 16:32:41 2008 +0200
@@ -26,7 +26,7 @@
 #define PATH_LEN 50
 #define CMDLEN 20
 #define MSGLEN 50
-/*! \todo: Should read this from dillorc */
+/*! \TODO: Should read this from dillorc */
 #define SRS_NAME "dpid.srs"
 char *srs_name;
 
--- a/dpid/main.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/dpid/main.c	Tue Sep 30 16:32:41 2008 +0200
@@ -230,12 +230,12 @@
    dpi_attr_list = NULL;
    services_list = NULL;
    //daemon(0,0); /* Use 0,1 for feedback */
-   /* todo: call setsid() ?? */
+   /* TODO: call setsid() ?? */
 
    /* Allow read and write access, but only for the user.
-    * todo: can this cause trouble with umount? */
+    * TODO: can this cause trouble with umount? */
    umask(0077);
-   /* todo: make dpid work on any directory. */
+   /* TODO: make dpid work on any directory. */
    // chdir("/");
 
    /* close inherited file descriptors */
--- a/dw/fltkui.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/dw/fltkui.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -178,7 +178,7 @@
    if (bg) {
       if (style->color) {
          /*
-          * todo: if/when CSS is implemented, test whether style->color
+          * TODO: if/when CSS is implemented, test whether style->color
           * will consistently provide readable widgets.
           */
          int32_t c = bg->colors[FltkColor::SHADING_NORMAL];
--- a/dw/image.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/dw/image.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -322,7 +322,7 @@
       }
    }
 
-   /** todo: draw selection */
+   /** TODO: draw selection */
 }
 
 core::Iterator *Image::iterator (core::Content::Type mask, bool atEnd)
--- a/dw/layout.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/dw/layout.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -888,7 +888,7 @@
       canvasHeightGreater = false;
 
    /* if size changes, redraw this view.
-    * todo: this is a resize call (redraw/resize code needs a review). */
+    * TODO: this is a resize call (redraw/resize code needs a review). */
    if (viewportWidth != width || viewportHeight != height)
       queueResize();
 
--- a/dw/textblock.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/dw/textblock.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -51,7 +51,7 @@
     * should not decrease the speed considerably.
     * (Current setting is for minimal memory usage. An interesting fact
     * is that high values decrease speed due to memory handling overhead!)
-    * todo: Some tests would be useful.
+    * TODO: Some tests would be useful.
     */
    lines = new misc::SimpleVector <Line> (1);
    words = new misc::SimpleVector <Word> (1);
@@ -1015,7 +1015,7 @@
    //                    lastLine->max_word_min);
 
    /* Finally, justify the line. Breaks are ignored, since the HTML
-    * parser sometimes assignes the wrong style to them. (todo: ) */
+    * parser sometimes assignes the wrong style to them. (TODO: ) */
    if (word->content.type != core::Content::BREAK) {
       switch (word->style->textAlign) {
       case core::style::TEXT_ALIGN_LEFT:
@@ -1697,7 +1697,7 @@
    if (nl >= 0) {
       nw = words->size () - 1;
       if (nw >= 0) {
-         /* todo: remove this test case */
+         /* TODO: remove this test case */
          //if (page->words[nw].orig_space != 0) {
          //   _MSG("   a_Dw_page_add_space:: already existing space!!!\n");
          //}
--- a/dw/textblock.hh	Tue Sep 30 16:19:42 2008 +0200
+++ b/dw/textblock.hh	Tue Sep 30 16:32:41 2008 +0200
@@ -161,7 +161,7 @@
 
    struct Word
    {
-      /* todo: perhaps add a xLeft? */
+      /* TODO: perhaps add a xLeft? */
       core::Requisition size;
       /* Space after the word, only if it's not a break: */
       unsigned short origSpace; /* from font, set by addSpace */
--- a/src/IO/dpi.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/IO/dpi.c	Tue Sep 30 16:32:41 2008 +0200
@@ -244,7 +244,7 @@
       urlstr = a_Dpip_get_attr(Tok, conn->TokSize, "url");
       a_Chain_fcb(OpSend, conn->InfoRecv, urlstr, cmd);
       dFree(urlstr);
-      /* todo: a_Dpip_get_attr(Tok, conn->TokSize, "send_mode") */
+      /* TODO: a_Dpip_get_attr(Tok, conn->TokSize, "send_mode") */
 
    } else if (strcmp(cmd, "reload_request") == 0) {
       urlstr = a_Dpip_get_attr(Tok, conn->TokSize, "url");
@@ -753,12 +753,12 @@
 
    SockFD = Dpi_connect_socket(server_name, TRUE);
    if (SockFD != -1) {
-      /* todo: handle the case of (st < strlen(cmd)) */
+      /* TODO: handle the case of (st < strlen(cmd)) */
       do
          st = write(SockFD, cmd, strlen(cmd));
       while (st == -1 && errno == EINTR);
 
-      /* todo: if the answer is too long... */
+      /* TODO: if the answer is too long... */
       do
          st = read(SockFD, buf, 16384);
       while (st < 0 && errno == EINTR);
--- a/src/bookmark.h	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/bookmark.h	Tue Sep 30 16:32:41 2008 +0200
@@ -9,7 +9,7 @@
 
 void a_Bookmarks_add(BrowserWindow *bw, const DilloUrl *url);
 
-/* todo: this is for testing purposes */
+/* TODO: this is for testing purposes */
 void a_Bookmarks_chat_add(BrowserWindow *Bw, char *Cmd, char *answer);
 
 #ifdef __cplusplus
--- a/src/cache.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/cache.c	Tue Sep 30 16:32:41 2008 +0200
@@ -969,7 +969,7 @@
  *   - Remove clients when done
  *   - Call redirect handler
  *
- * todo: Implement CA_Abort Op in client callback
+ * TODO: Implement CA_Abort Op in client callback
  */
 static void Cache_process_queue(CacheEntry_t *entry)
 {
@@ -1184,7 +1184,7 @@
 
 /*
  * Remove a client from the client queue
- * todo: notify the dicache and upper layers
+ * TODO: notify the dicache and upper layers
  */
 void a_Cache_stop_client(int Key)
 {
--- a/src/capi.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/capi.c	Tue Sep 30 16:32:41 2008 +0200
@@ -265,7 +265,7 @@
 
 /*
  * Build the dpip command tag, according to URL and server.
- * todo: make it PROXY-aware (AFAIS, it should be easy)
+ * TODO: make it PROXY-aware (AFAIS, it should be easy)
  */
 static char *Capi_dpi_build_cmd(DilloWeb *web, char *server)
 {
@@ -293,7 +293,7 @@
 
 /*
  * Most used function for requesting a URL.
- * todo: clean up the ad-hoc bindings with an API that allows dynamic
+ * TODO: clean up the ad-hoc bindings with an API that allows dynamic
  *       addition of new plugins.
  *
  * Return value: A primary key for identifying the client,
--- a/src/dicache.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/dicache.c	Tue Sep 30 16:32:41 2008 +0200
@@ -255,7 +255,7 @@
  */
 void a_Dicache_callback(int Op, CacheClient_t *Client)
 {
-   /* todo: Handle Op = CA_Abort (to show what was got)  --Jcid */
+   /* TODO: Handle Op = CA_Abort (to show what was got)  --Jcid */
    uint_t i;
    DilloWeb *Web = Client->Web;
    DilloImage *Image = Web->Image;
--- a/src/findbar.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/findbar.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -112,7 +112,7 @@
     i->when(WHEN_ENTER_KEY_ALWAYS);
     i->callback(search_cb2, this);
 
-    // todo: search previous would be nice
+    // TODO: search previous would be nice
     findb = new HighlightButton(x, border, button_width, height, "Next");
     x += button_width + gap;
     findb->tooltip("Find next occurrence of the search phrase");
--- a/src/form.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/form.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -150,7 +150,7 @@
    DilloHtmlSelect *select;
    bool init_val;     /* only meaningful for buttons */
    Dstr *file_data;   /* only meaningful for file inputs.
-                         todo: may become a list... */
+                         TODO: may become a list... */
 
 private:
    void connectTo(DilloHtmlReceiver *form_receiver);
@@ -611,7 +611,7 @@
 
 /*
  * The textarea tag
- * (todo: It doesn't support wrapping).
+ * (TODO: It doesn't support wrapping).
  */
 void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize)
 {
@@ -1349,7 +1349,7 @@
          dStr_append(data, "--");
          dStr_append(data, boundary);
       }
-      // todo: encode name, filename
+      // TODO: encode name, filename
       dStr_sprintfa(data,
                     "\r\n"
                     "Content-Disposition: form-data; name=\"%s\"; "
@@ -1389,7 +1389,7 @@
          dStr_append(data, "--");
          dStr_append(data, boundary);
       }
-      // todo: encode name (RFC 2231)
+      // TODO: encode name (RFC 2231)
       dStr_sprintfa(data,
                     "\r\n"
                     "Content-Disposition: form-data; name=\"%s\"\r\n"
--- a/src/gif.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/gif.c	Tue Sep 30 16:32:41 2008 +0200
@@ -54,7 +54,7 @@
  */
 
 
-/* todo:
+/* TODO:
  * + Make sure to handle error cases gracefully (including aborting the
  * connection, if necessary).
  */
@@ -167,7 +167,7 @@
 
    if (!web->Image)
       web->Image = a_Image_new(0, 0, NULL, prefs.bg_color);
-      /* todo: get the backgound color from the parent widget -- Livio. */
+      /* TODO: get the backgound color from the parent widget -- Livio. */
 
    /* Add an extra reference to the Image (for dicache usage) */
    a_Image_ref(web->Image);
--- a/src/html.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/html.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -304,11 +304,11 @@
       else if (dStrcasecmp (align, "justify") == 0)
          style_attrs.textAlign = TEXT_ALIGN_JUSTIFY;
       else if (dStrcasecmp (align, "char") == 0) {
-         /* todo: Actually not supported for <p> etc. */
+         /* TODO: Actually not supported for <p> etc. */
          style_attrs.textAlign = TEXT_ALIGN_STRING;
          if ((charattr = a_Html_get_attr(html, tag, tagsize, "char"))) {
             if (charattr[0] == 0)
-               /* todo: ALIGN=" ", and even ALIGN="&32;" will reult in
+               /* TODO: ALIGN=" ", and even ALIGN="&32;" will reult in
                 * an empty string (don't know whether the latter is
                 * correct, has to be clarified with the specs), so
                 * that for empty strings, " " is assumed. */
@@ -316,7 +316,7 @@
             else
                style_attrs.textAlignChar = charattr[0];
          } else
-            /* todo: Examine LANG attr of <html>. */
+            /* TODO: Examine LANG attr of <html>. */
             style_attrs.textAlignChar = '.';
       }
       S_TOP(html)->style = Style::create (HT2LT(html), &style_attrs);
@@ -661,7 +661,7 @@
 {
    int si;
 
-   /* force the close of elements left open (todo: not for XHTML) */
+   /* force the close of elements left open (TODO: not for XHTML) */
    while ((si = stack->size() - 1)) {
       if (stack->getRef(si)->tag_idx != -1) {
          Html_tag_cleanup_at_close(this, stack->getRef(si)->tag_idx);
@@ -1588,7 +1588,7 @@
  */
 static void Html_tag_close_html(DilloHtml *html, int TagIdx)
 {
-   /* todo: may add some checks here */
+   /* TODO: may add some checks here */
    if (html->Num_HTML == 1) {
       /* beware of pages with multiple HTML close tags... :-P */
       html->InFlags &= ~IN_HTML;
@@ -1778,7 +1778,7 @@
 
 /*
  * <P>
- * todo: what's the point between adding the parbreak before and
+ * TODO: what's the point between adding the parbreak before and
  *       after the push?
  */
 static void Html_tag_open_p(DilloHtml *html, const char *tag, int tagsize)
@@ -1794,7 +1794,7 @@
 
 /*
  * <FRAME>, <IFRAME>
- * todo: This is just a temporary fix while real frame support
+ * TODO: This is just a temporary fix while real frame support
  *       isn't finished. Imitates lynx/w3m's frames.
  */
 static void Html_tag_open_frame (DilloHtml *html, const char *tag, int tagsize)
@@ -1862,7 +1862,7 @@
 
 /*
  * <FRAMESET>
- * todo: This is just a temporary fix while real frame support
+ * TODO: This is just a temporary fix while real frame support
  *       isn't finished. Imitates lynx/w3m's frames.
  */
 static void Html_tag_open_frameset (DilloHtml *html,
@@ -1880,7 +1880,7 @@
 {
    DW2TB(html->dw)->addParbreak (9, S_TOP(html)->style);
 
-   /* todo: combining these two would be slightly faster */
+   /* TODO: combining these two would be slightly faster */
    a_Html_set_top_font(html, prefs.vw_fontname,
                        Html_level_to_fontsize(FontSizesNum - (tag[2] - '0')),
                        1, 3);
@@ -2094,7 +2094,7 @@
       MSG("a_Html_add_new_image: suspicious image size request %dx%d\n", w, h);
    }
 
-   /* todo: we should scale the image respecting its ratio.
+   /* TODO: we should scale the image respecting its ratio.
     *       As the image size is not known at this time, maybe a flag
     *       can be set to scale it later.
    if ((width_ptr && !height_ptr) || (height_ptr && !width_ptr))
@@ -2184,7 +2184,7 @@
 
    usemap_url = NULL;
    if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "usemap")))
-      /* todo: usemap URLs outside of the document are not used. */
+      /* TODO: usemap URLs outside of the document are not used. */
       usemap_url = a_Html_url_new(html, attrbuf, NULL, 0);
 
    /* Set the style attributes for this image */
@@ -2326,7 +2326,7 @@
       type = UNKNOWN;
    }
    if (type == RECTANGLE || type == CIRCLE || type == POLYGON) {
-      /* todo: add support for coords in % */
+      /* TODO: add support for coords in % */
       if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "coords"))) {
          coords = Html_read_coords(html, attrbuf);
 
@@ -2476,7 +2476,7 @@
    DilloUrl *url;
    const char *attrbuf;
 
-   /* todo: add support for MAP with A HREF */
+   /* TODO: add support for MAP with A HREF */
    if (html->InFlags & IN_MAP)
       Html_tag_open_area(html, tag, tagsize);
 
@@ -2801,7 +2801,7 @@
          style_attrs.textAlign = TEXT_ALIGN_CENTER;
    }
   
-   /* todo: evaluate attribute */
+   /* TODO: evaluate attribute */
    if (a_Html_get_attr(html, tag, tagsize, "noshade")) {
       style_attrs.setBorderStyle (BORDER_SOLID);
       style_attrs.setBorderColor (
@@ -2914,7 +2914,7 @@
  * More info at:
  *   http://lists.w3.org/Archives/Public/www-html/2000Feb/thread.html#msg232
  *
- * todo: Note that we're sending custom HTML while still IN_HEAD. This
+ * TODO: Note that we're sending custom HTML while still IN_HEAD. This
  * is a hackish way to put the message. A much cleaner approach is to
  * build a custom widget for it.
  */
@@ -2954,7 +2954,7 @@
          while (*content && *(content++) != '=');
 
          /* Send a custom HTML message.
-          * todo: This is a hairy hack,
+          * TODO: This is a hairy hack,
           *       It'd be much better to build a widget. */
          ds_msg = dStr_sized_new(256);
          dStr_sprintf(ds_msg, meta_template, content, delay_str);
@@ -3086,7 +3086,7 @@
 }
 
 /*
- * <DIV> (todo: make a complete implementation)
+ * <DIV> (TODO: make a complete implementation)
  */
 static void Html_tag_open_div(DilloHtml *html, const char *tag, int tagsize)
 {
@@ -3175,7 +3175,7 @@
  {"del", B8(011101),'R',2, Html_tag_open_strike, Html_tag_close_default},
  {"dfn", B8(010101),'R',2, Html_tag_open_dfn, Html_tag_close_default},
  {"dir", B8(011010),'R',2, Html_tag_open_dir, Html_tag_close_par},
- /* todo: complete <div> support! */
+ /* TODO: complete <div> support! */
  {"div", B8(011110),'R',2, Html_tag_open_div, Html_tag_close_div},
  {"dl", B8(011010),'R',2, Html_tag_open_dl, Html_tag_close_par},
  {"dt", B8(010110),'O',1, Html_tag_open_dt, Html_tag_close_par},
@@ -3206,7 +3206,7 @@
  {"li", B8(011110),'O',1, Html_tag_open_li, Html_tag_close_li},
  /* link 100000 'F' */
  {"map", B8(011001),'R',2, Html_tag_open_map, Html_tag_close_map},
- /* menu 1010 -- todo: not exactly 1010, it can contain LI and inline */
+ /* menu 1010 -- TODO: not exactly 1010, it can contain LI and inline */
  {"menu", B8(011010),'R',2, Html_tag_open_menu, Html_tag_close_par},
  {"meta", B8(100001),'F',0, Html_tag_open_meta, Html_tag_close_default},
  /* noframes 1011 */
@@ -3332,7 +3332,7 @@
    }
 
    /* HTML, HEAD, BODY are handled by Html_test_section(), not here. */
-   /* todo: TBODY is pending */
+   /* TODO: TBODY is pending */
    return 0;
 }
 
@@ -3457,7 +3457,7 @@
 
    ni = Html_tag_index(start + IsCloseTag);
    if (ni == -1) {
-      /* todo: doctype parsing is a bit fuzzy, but enough for the time being */
+      /* TODO: doctype parsing is a bit fuzzy, but enough for the time being */
       if (!(html->InFlags & IN_HTML)) {
          if (tagsize > 9 && !dStrncasecmp(tag, "<!doctype", 9))
             Html_parse_doctype(html, tag, tagsize);
@@ -3481,7 +3481,7 @@
       if (Tags[ni].Flags & 2 || (ci != -1 && Tags[ci].EndTag == 'O'))
          Html_stack_cleanup_at_open(html, ni);
 
-      /* todo: this is only raising a warning, take some defined action.
+      /* TODO: this is only raising a warning, take some defined action.
        * Note: apache uses IMG inside PRE (we could use its "alt"). */
       if ((html->InFlags & IN_PRE) && Html_tag_pre_excludes(ni))
          BUG_MSG("<pre> is not allowed to contain <%s>\n", Tags[ni].name);
@@ -3523,7 +3523,7 @@
       html->PrevWasOpenTag = true;
 
       /* Request inmediate close for elements with forbidden close tag. */
-      /* todo: XHTML always requires close tags. A simple implementation
+      /* TODO: XHTML always requires close tags. A simple implementation
        * of the commented clause below will make it work. */
       if  (/* parsing HTML && */ Tags[ni].EndTag == 'F')
          html->ReqTagClose = true;
--- a/src/misc.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/misc.c	Tue Sep 30 16:32:41 2008 +0200
@@ -381,7 +381,7 @@
 /*
  * Load a local file into a dStr.
  * Return value: dStr on success, NULL on error.
- * todo: a filesize threshold may be implemented.
+ * TODO: a filesize threshold may be implemented.
  */
 Dstr *a_Misc_file2dstr(const char *filename)
 {
--- a/src/nav.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/nav.c	Tue Sep 30 16:32:41 2008 +0200
@@ -542,7 +542,7 @@
    Web->bw = bw;
    Web->filename = dStrdup(filename); 
    Web->flags |= WEB_Download;
-   /* todo: keep track of this client */
+   /* TODO: keep track of this client */
    a_Capi_open_url(Web, Nav_save_cb, Web);
 }
 
--- a/src/png.c	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/png.c	Tue Sep 30 16:32:41 2008 +0200
@@ -169,7 +169,7 @@
    }
 
    /* Get and set gamma information. Beware: gamma correction 2.2 will
-      only work on PC's. todo: select screen gamma correction for other
+      only work on PC's. TODO: select screen gamma correction for other
       platforms. */
    if (png_get_gAMA(png_ptr, info_ptr, &gamma))
       png_set_gamma(png_ptr, 2.2, gamma);
@@ -243,13 +243,13 @@
       break;
    case 4:
      {
-        /* todo: get the backgound color from the parent
+        /* TODO: get the backgound color from the parent
          * of the image widget -- Livio.                 */
         int a, bg_red, bg_green, bg_blue;
         uchar_t *pl = png->linebuf;
         uchar_t *data = png->image_data + (row_num * png->rowbytes);
 
-        /* todo: maybe change prefs.bg_color to `a_Dw_widget_get_bg_color`,
+        /* TODO: maybe change prefs.bg_color to `a_Dw_widget_get_bg_color`,
          * when background colors are correctly implementated */
         bg_blue  = (png->Image->bg_color) & 0xFF;
         bg_green = (png->Image->bg_color>>8) & 0xFF;
--- a/src/table.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/table.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -254,7 +254,7 @@
          if ((colspan < 0) || (attrbuf == invalid))
             colspan = 1;
       }
-      /* todo: check errors? */
+      /* TODO: check errors? */
       if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "rowspan")))
          rowspan = MAX(1, strtol (attrbuf, NULL, 10));
 
--- a/src/ui.cc	Tue Sep 30 16:19:42 2008 +0200
+++ b/src/ui.cc	Tue Sep 30 16:32:41 2008 +0200
@@ -272,7 +272,7 @@
  */
 //static void fullscreen_cb(Widget *wid, void *data)
 //{
-//   /* todo: do we want to toggle fullscreen or panelmode?
+//   /* TODO: do we want to toggle fullscreen or panelmode?
 //            maybe we need to add another button?*/
 //   ((UI*)data)->panelmode_cb_i();
 //}