Lines Matching refs:msg

73 	char *msg;
107 add_msg(int setid, int msgid, char *msg, char *file, int line, int no_write)
112 if (lookup_msgid(si, msgid, msg, file, line)) {
115 add_msgid(si, msgid, msg, file, line, no_write);
118 add_setid(setid, msgid, msg, file, line, no_write);
175 char msg[NL_TEXTMAX+32]; /* 32 is some other stuff. */
202 makeup_msg(&(mi->msg));
204 (void) snprintf(msg, sizeof (msg), "%d\t%s%s%s\n",
205 mi->id, pquote, mi->msg, pquote);
221 print_prefix(fp, "$ ", FALSE, msg);
225 (void) fprintf(fp, "%s", msg);
241 print_prefix(fp, "$ ", FALSE, msg);
269 lookup_msgid(SetID si, int msgid, char *msg, char *file, int line)
274 /* same setid & msgid, but different msg. */
275 if (strcmp(mi->msg, msg)) {
281 msg,
282 mi->msg, mi->file, mi->line);
292 add_msgid(SetID si, int msgid, char *msg, char *file, int line, int no_write)
295 int len = strlen(msg);
329 newmi->msg = ustrdup(msg);
350 add_setid(int setid, int msgid, char *msg, char *file, int line, int no_write)
385 add_msgid(newsi, msgid, msg, file, line, no_write);
505 if (strcmp(mi->msg, str) == 0) {
579 char msg[NL_TEXTMAX];
626 (void) strlcat(msg, ptr, sizeof (msg));
634 (void) strlcat(msg, ptr, sizeof (msg));
635 add_msg(setid, msgid, msg, file, line, TRUE);
652 (void) memset(msg, 0, sizeof (msg));
656 (void) strlcpy(msg, ptr, sizeof (msg));
676 is_bs_terminated(char *msg)
678 int len = strlen(msg);
681 if (msg[len] == ' ' || msg[len] == '\t' || msg[len] == '\n') {
683 } else if (msg[len] == '\\') {
685 if (len >= 0 && msg[len] == '\\')
748 char *msg;
750 msg = *pmsg;
753 if (IsActiveMode(TripleMode) && strchr(msg, '%') == NULL) {
755 int len = strlen(msg);
757 if (msg[len-2] == '\\' && msg[len-1] == 'n') {
758 msg[len-2] = '\0';
759 (void) strlcat(buf, msg, sizeof (buf));
760 (void) strlcat(buf, msg, sizeof (buf));
761 (void) strlcat(buf, msg, sizeof (buf));
764 (void) strlcat(buf, msg, sizeof (buf));
765 (void) strlcat(buf, msg, sizeof (buf));
766 (void) strlcat(buf, msg, sizeof (buf));
768 free(msg);
772 msg = *pmsg;
777 (void) strlcat(buf, msg, sizeof (buf));
778 free(msg);
782 msg = *pmsg;
786 int len = strlen(msg);
788 if (msg[len-2] == '\\' && msg[len-1] == 'n') {
789 msg[len-2] = '\0';
790 (void) strlcat(buf, msg, sizeof (buf));
794 (void) strlcat(buf, msg, sizeof (buf));
797 free(msg);