From 0f7c6294d403e3ed80961e91f906f118e0f0adc5 Mon Sep 17 00:00:00 2001 From: jcid Date: Tue, 30 Sep 2008 16:32:41 +0200 Subject: - s/todo:/TODO:/g --- dpi/bookmarks.c | 4 ++-- dpi/cookies.c | 4 ++-- dpi/datauri.c | 2 +- dpi/file.c | 4 ++-- dpid/dpid.c | 2 +- dpid/dpid.h | 2 +- dpid/main.c | 6 +++--- dw/fltkui.cc | 2 +- dw/image.cc | 2 +- dw/layout.cc | 2 +- dw/textblock.cc | 6 +++--- dw/textblock.hh | 2 +- src/IO/dpi.c | 6 +++--- src/bookmark.h | 2 +- src/cache.c | 4 ++-- src/capi.c | 4 ++-- src/dicache.c | 2 +- src/findbar.cc | 2 +- src/form.cc | 8 ++++---- src/gif.c | 4 ++-- src/html.cc | 46 +++++++++++++++++++++++----------------------- src/misc.c | 2 +- src/nav.c | 2 +- src/png.c | 6 +++--- src/table.cc | 2 +- src/ui.cc | 2 +- 26 files changed, 65 insertions(+), 65 deletions(-) diff --git a/dpi/bookmarks.c b/dpi/bookmarks.c index 36615496..e5447331 100644 --- a/dpi/bookmarks.c +++ b/dpi/bookmarks.c @@ -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 @@ static int Bmsrv_modify_add_url(SockHandler *sh, char *s_url) 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 */ diff --git a/dpi/cookies.c b/dpi/cookies.c index 6cf3b4fc..fc52a4ef 100644 --- a/dpi/cookies.c +++ b/dpi/cookies.c @@ -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 @@ static time_t Cookies_create_timestamp(const char *expires) 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); diff --git a/dpi/datauri.c b/dpi/datauri.c index 1a34482b..5f3c79a7 100644 --- a/dpi/datauri.c +++ b/dpi/datauri.c @@ -200,7 +200,7 @@ static void send_failure_message(const char *url, const char *mime_type, /* * 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. */ diff --git a/dpi/file.c b/dpi/file.c index d7612f64..7bc1f0b1 100644 --- a/dpi/file.c +++ b/dpi/file.c @@ -648,7 +648,7 @@ static int File_get_file(ClientInfo *Client, } } 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 @@ int main(void) } } - /* 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); diff --git a/dpid/dpid.c b/dpid/dpid.c index 2bc4dd23..97e6414d 100644 --- a/dpid/dpid.c +++ b/dpid/dpid.c @@ -409,7 +409,7 @@ int register_all(struct dp **attlist) 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); } diff --git a/dpid/dpid.h b/dpid/dpid.h index 0a80dfdc..74686087 100644 --- a/dpid/dpid.h +++ b/dpid/dpid.h @@ -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; diff --git a/dpid/main.c b/dpid/main.c index aad1af90..b47ca627 100644 --- a/dpid/main.c +++ b/dpid/main.c @@ -230,12 +230,12 @@ int main(void) 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 */ diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 868de78a..8c3d9829 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -178,7 +178,7 @@ void FltkResource::setWidgetStyle (::fltk::Widget *widget, 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]; diff --git a/dw/image.cc b/dw/image.cc index 499fc438..ce54f561 100644 --- a/dw/image.cc +++ b/dw/image.cc @@ -322,7 +322,7 @@ void Image::draw (core::View *view, core::Rectangle *area) } } - /** todo: draw selection */ + /** TODO: draw selection */ } core::Iterator *Image::iterator (core::Content::Type mask, bool atEnd) diff --git a/dw/layout.cc b/dw/layout.cc index e2f437a3..2e29b05d 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -888,7 +888,7 @@ void Layout::viewportSizeChanged (View *view, int width, int height) 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(); diff --git a/dw/textblock.cc b/dw/textblock.cc index 74075d43..d80a7ad4 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -51,7 +51,7 @@ Textblock::Textblock (bool limitTextWidth) * 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 (1); words = new misc::SimpleVector (1); @@ -1015,7 +1015,7 @@ void Textblock::wordWrap(int wordIndex) // 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 @@ void Textblock::addSpace (core::style::Style *style) 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"); //} diff --git a/dw/textblock.hh b/dw/textblock.hh index b47c2e55..d3198b69 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -161,7 +161,7 @@ protected: 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 */ diff --git a/src/IO/dpi.c b/src/IO/dpi.c index 54072a5f..7c4357da 100644 --- a/src/IO/dpi.c +++ b/src/IO/dpi.c @@ -244,7 +244,7 @@ static void Dpi_parse_token(dpi_conn_t *conn) 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 @@ char *a_Dpi_send_blocking_cmd(const char *server_name, const char *cmd) 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); diff --git a/src/bookmark.h b/src/bookmark.h index de5884c5..066a6851 100644 --- a/src/bookmark.h +++ b/src/bookmark.h @@ -9,7 +9,7 @@ extern "C" { 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 diff --git a/src/cache.c b/src/cache.c index 699faa3b..9ddb0abf 100644 --- a/src/cache.c +++ b/src/cache.c @@ -969,7 +969,7 @@ static void Cache_null_client(int Op, CacheClient_t *Client) * - 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 @@ CacheClient_t *a_Cache_client_get_if_unique(int Key) /* * 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) { diff --git a/src/capi.c b/src/capi.c index 113702be..efa2cd93 100644 --- a/src/capi.c +++ b/src/capi.c @@ -265,7 +265,7 @@ static int Capi_url_uses_dpi(DilloUrl *url, char **server_ptr) /* * 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 @@ static char *Capi_dpi_build_cmd(DilloWeb *web, char *server) /* * 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, diff --git a/src/dicache.c b/src/dicache.c index 272c14a6..97ed1915 100644 --- a/src/dicache.c +++ b/src/dicache.c @@ -255,7 +255,7 @@ void a_Dicache_invalidate_entry(const DilloUrl *Url) */ 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; diff --git a/src/findbar.cc b/src/findbar.cc index 2937a7e0..8cddc837 100644 --- a/src/findbar.cc +++ b/src/findbar.cc @@ -112,7 +112,7 @@ Findbar::Findbar(int width, int height) : 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"); diff --git a/src/form.cc b/src/form.cc index 53abef69..78bc43e8 100644 --- a/src/form.cc +++ b/src/form.cc @@ -150,7 +150,7 @@ public: //BUG: for now everything is public 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 @@ void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize) /* * 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 @@ void DilloHtmlForm::appendInputMultipartFiles(Dstr* data, 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 @@ void DilloHtmlForm::appendInputMultipart(Dstr *data, 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" diff --git a/src/gif.c b/src/gif.c index b16a9e64..6ea23561 100644 --- a/src/gif.c +++ b/src/gif.c @@ -54,7 +54,7 @@ */ -/* todo: +/* TODO: * + Make sure to handle error cases gracefully (including aborting the * connection, if necessary). */ @@ -167,7 +167,7 @@ void *a_Gif_image(const char *Type, void *Ptr, CA_Callback_t *Call, 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); diff --git a/src/html.cc b/src/html.cc index 0f68f695..dfa51fdf 100644 --- a/src/html.cc +++ b/src/html.cc @@ -304,11 +304,11 @@ void a_Html_tag_set_align_attr(DilloHtml *html, else if (dStrcasecmp (align, "justify") == 0) style_attrs.textAlign = TEXT_ALIGN_JUSTIFY; else if (dStrcasecmp (align, "char") == 0) { - /* todo: Actually not supported for

etc. */ + /* TODO: Actually not supported for

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 @@ void a_Html_tag_set_align_attr(DilloHtml *html, else style_attrs.textAlignChar = charattr[0]; } else - /* todo: Examine LANG attr of . */ + /* TODO: Examine LANG attr of . */ style_attrs.textAlignChar = '.'; } S_TOP(html)->style = Style::create (HT2LT(html), &style_attrs); @@ -661,7 +661,7 @@ void DilloHtml::finishParsing(int ClientKey) { 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_open_html(DilloHtml *html, const char *tag, int tagsize) */ 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 @@ static void Html_tag_close_body(DilloHtml *html, int TagIdx) /* *

- * 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 @@ static void Html_tag_open_p(DilloHtml *html, const char *tag, int tagsize) /* * ,