--- msg.c 2001/08/16 15:00:50 1.5
+++ msg.c 2001/08/21 07:40:41 1.6
@@ -32,7 +32,7 @@
{
if (msg == NULL)
return;
- //FIXME what about non-graceful aborts?
+ /*FIXME what about non-graceful aborts? */
if (msg->azEnvgroups != NULL)
free(msg->azEnvgroups);
if (msg->cpMsg != NULL)
@@ -103,17 +103,17 @@
memcpy(cpHeaders, "X-F:", 4);
/* unwrap header lines */
- //FIXME poor man's s///g simulator as current str library doesn't support //global substitution
+ /*FIXME poor man's s///g simulator as current str library doesn't support //global substitution */
while (str_parse(cpHeaders, "s/(.*?)\\n[ \\t]+(.*)/$1 $2/s", &cpRem)) {
free(cpHeaders);
cpHeaders = cpRem;
}
/* split header lines into names and values */
- //FIXME str enhancement requests and bugs to be fixed
- //FIXME - fix bug "not" [^...] working
- //FIXME - improve str_parse(foo, "...", &foo) should free foo() on it's own
- //FIXME - add "global" in s/search/replace/g (see above "unwrap hader lines")
+ /*FIXME str enhancement requests and bugs to be fixed */
+ /*FIXME - fix bug "not" [^...] working */
+ /*FIXME - improve str_parse(foo, "...", &foo) should free foo() on it's own */
+ /*FIXME - add "global" in s/search/replace/g (see above "unwrap hader lines") */
while (str_parse(cpHeaders, "m/^([\\w-]+?:)[ \\t]*(.*?)[ \\t]*\\n(.*)/s", &cpName, &cpValue, &cpRem)) {
free(cpHeaders);
cpHeaders = cpRem;
@@ -156,7 +156,7 @@
if (msg->cpMsgid != NULL)
return MSG_ERR_SPLITIDMULTI;
argz_delete(&msg->azHeaders, &msg->asHeaders, cp); /* del name */
- //fprintf(stderr, "DEBUG: Message-ID cp = ***%s***\n", cp);
+ /*fprintf(stderr, "DEBUG: Message-ID cp = ***%s***\n", cp); */
if ((cp == NULL) || (strlen(cp) == 0)) /* get value */
return MSG_ERR_SPLITIDEMPTY;
if ((msg->cpMsgid = strdup(cp)) == NULL)
@@ -166,7 +166,7 @@
}
if (strcasecmp("Newsgroups:", cp) == 0) {
argz_delete(&msg->azHeaders, &msg->asHeaders, cp); /* del name */
- //fprintf(stderr, "DEBUG: Newsgroups cp = ***%s***\n", cp);
+ /*fprintf(stderr, "DEBUG: Newsgroups cp = ***%s***\n", cp); */
if (argz_add(&msg->azNewsgroups, &msg->asNewsgroups, cp) != 0) /* get value */
return MSG_ERR_MEM;
argz_delete(&msg->azHeaders, &msg->asHeaders, cp); /* del value */
@@ -186,7 +186,7 @@
return MSG_ERR_MEM;
}
argz_add(&msg->azHeaders, &msg->asHeaders, "Path:");
- argz_add(&msg->azHeaders, &msg->asHeaders, "not-for-mail"); //FIXME
+ argz_add(&msg->azHeaders, &msg->asHeaders, "not-for-mail"); /*FIXME */
return MSG_OK;
}
@@ -208,7 +208,7 @@
if (msg->azNewsgroups == NULL)
return MSG_ERR_JOINGROUPNONE;
argz_stringify(msg->azNewsgroups, msg->asNewsgroups, ',');
- //fprintf(stderr, "DEBUG: join consolidated azNewsgroups = ***%s***\n", msg->azNewsgroups);
+ /*fprintf(stderr, "DEBUG: join consolidated azNewsgroups = ***%s***\n", msg->azNewsgroups); */
if (strlen(msg->azNewsgroups) == 0)
return MSG_ERR_JOINGROUPEMPTY;
argz_add(&msg->azHeaders, &msg->asHeaders, "Newsgroups:");
@@ -253,7 +253,7 @@
if (i < WRAPAT)
i++; /* we don't care about the whitespace itself */
cpCut = str_dup(cpRem, i);
- //FIXME 1.) continue searching downwards skipping all whitespaces and 2.) as we know the length replace str_dup/ strcat/ free with strncat only
+ /*FIXME 1.) continue searching downwards skipping all whitespaces and 2.) as we know the length replace str_dup/ strcat/ free with strncat only */
if (cpWrap == NULL) {
if ((cpWrap = (char *)malloc(strlen(cpCut)+strlen(WRAPUSING)+1)) == NULL)
return MSG_ERR_MEM;
@@ -356,7 +356,7 @@
msg->cpMsg[n++] = '\n';
msg->cpMsg[n] = '\0';
- //fprintf(stderr, "DEBUG: Message = ***%s***\n", msg->cpMsg);
+ /*fprintf(stderr, "DEBUG: Message = ***%s***\n", msg->cpMsg); */
return MSG_OK;
}
|