Lines Matching defs:line

66  * linenum	: line number in the file.
158 * is_last_comment_line : Means the current line is the last line
181 * This variable contains the first line of gettext(), dgettext(), or
184 * the starting line.
194 * curr_line : Contains the current line processed.
211 * Each node contains one line of comment.
427 "-n\t\t\tline# file name and line number info in output\n");
439 * Extract file name and line number information from macro line
441 * The valid line format is
445 * where nnn is line number and xxxxx is file name.
455 * line number should be increased by the number of newlines.
491 * Handler for MACRO line which starts with #.
497 (void) printf("Macro line=<%s>\n", yytext);
753 * This is a '\' followed by new line.
754 * This can be treated like a new line except when this is a continuation
756 * If this is a part of ANSI string, treat the current line as a double
757 * quoted string and the next line is the start of the double quoted
919 * Handler for new line in input file.
941 * C++ comment always ends with new line.
980 trim_line(char *line)
987 len = strlen(line);
995 c = line[i--];
1006 if (strncmp("msgid ", line, 6) == 0) {
1008 } else if (strncmp("msgstr ", line, 7) == 0) {
1010 } else if (strncmp("# ", line, 2) == 0) {
1018 c = line[i++];
1030 if (line[first] == '"') {
1033 if (line[last] == '"') {
1042 line[i] = line[p++];
1044 line [i] = NULL;
1057 char line [MAX_STRING_LEN];
1066 while (fgets(line, MAX_STRING_LEN, fp) != NULL) {
1068 * Line starting with # is a comment line and ignored.
1069 * Blank line is ignored, too.
1071 if ((line[0] == '\n') || (line[0] == '#')) {
1073 } else if (strncmp(line, "msgstr", 6) == 0) {
1075 } else if (strncmp(line, "domain", 6) == 0) {
1077 } else if (strncmp(line, "msgid", 5) == 0) {
1081 trim_line(line);
1082 tmp_excl->exstr->str = strdup(line);
1091 * If more than one line of string forms msgid,
1095 trim_line(line);
1097 tail->next->str = strdup(line);
1335 * Extract a comment line and add to the linked list containing
1337 * Each comment line is stored in the node.
1413 "%s \"%s\" is used in dgettext of file:%s line:%d.\n",
1483 * Comment block is a linked list where each node contains one line
1728 char line [MAX_STRING_LEN];
1735 while (fgets(line, MAX_STRING_LEN, fp) != NULL) {
1737 * Line starting with # is a comment line and ignored.
1738 * Blank line is ignored, too.
1740 if (line[0] == '\n') {
1742 } else if (line[0] == '#') {
1757 * remove new line and skip "# "
1759 * comment line.
1761 line[strlen(line)-1] = 0;
1762 comment_tail->str = strdup(line+2);
1767 * remove new line and skip "# "
1769 * comment line.
1771 line[strlen(line)-1] = 0;
1772 comment_tail->str = strdup(line+2);
1775 } else if (strncmp(line, "domain", 6) == 0) {
1776 /* ignore domain line */
1778 } else if (strncmp(line, "msgid", 5) == 0) {
1787 trim_line(line);
1789 msgid_tail->str = strdup(line);
1791 } else if (strncmp(line, "msgstr", 6) == 0) {
1793 trim_line(line);
1795 msgstr_tail->str = strdup(line);
1798 * If more than one line of string forms msgid,
1802 trim_line(line);
1805 msgid_tail->str = strdup(line);
1807 trim_line(line);
1810 msgstr_tail->str = strdup(line);
1978 * textdomain output line already contains
1979 * FIle name and line number information.
2004 * If -n is used, then file number and line number
2010 * file and line number info as a comment line. So, it
2015 (void) fprintf(fp, "# File:%s, line:%d\n",
2037 * Prints out textdomain call as a comment line with file name and
2038 * the line number information.
2048 * Write textdomain() line as a comment.
2050 (void) fprintf(fp, "# File:%s, line:%d, textdomain(\"%s\");\n",
2085 * If duplciate flag is ON, prepend "# " in front of every line
2112 * If single line msgid, add suffix to the same line
2115 /* -M and -m and single line case */
2120 /* -M and -m and multi line case */
2127 /* -M only with single line case */
2131 /* -M only with multi line case */
2144 * If multi line msgid, add suffix after the last line.
2244 "WARNING: file %s line %d exceeds "\
2250 "WARNING: line %d exceeds "\