[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7867] parsetexi use add_extra_integer
From: |
gavinsmith0123 |
Subject: |
[7867] parsetexi use add_extra_integer |
Date: |
Tue, 27 Jun 2017 07:35:59 -0400 (EDT) |
Revision: 7867
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7867
Author: gavin
Date: 2017-06-27 07:35:58 -0400 (Tue, 27 Jun 2017)
Log Message:
-----------
parsetexi use add_extra_integer
Modified Paths:
--------------
trunk/tp/parsetexi/end_line.c
trunk/tp/parsetexi/handle_commands.c
trunk/tp/parsetexi/macro.c
trunk/tp/parsetexi/separator.c
Modified: trunk/tp/parsetexi/end_line.c
===================================================================
--- trunk/tp/parsetexi/end_line.c 2017-06-27 11:21:53 UTC (rev 7866)
+++ trunk/tp/parsetexi/end_line.c 2017-06-27 11:35:58 UTC (rev 7867)
@@ -344,7 +344,7 @@
if (!argarg)
{
command_error (line_command, "@%s missing argument", command_name(cmd));
- add_extra_string (line_command, "missing_argument", "1");
+ add_extra_integer (line_command, "missing_argument", 1);
return 0;
}
if (argarg->text.end == 0)
@@ -1446,7 +1446,7 @@
{
if (!superfluous_arg)
line_warn ("@%s missing argument", command_name(cmd)); // 3123
- add_extra_string (current, "missing_argument", "1");
+ add_extra_integer (current, "missing_argument", 1);
}
else
{
@@ -1820,7 +1820,7 @@
{
command_warn (current, "@%s missing argument",
command_name(current->cmd));
- add_extra_string (current, "missing_argument", "1");
+ add_extra_integer (current, "missing_argument", 1);
}
else
{
Modified: trunk/tp/parsetexi/handle_commands.c
===================================================================
--- trunk/tp/parsetexi/handle_commands.c 2017-06-27 11:21:53 UTC (rev
7866)
+++ trunk/tp/parsetexi/handle_commands.c 2017-06-27 11:35:58 UTC (rev
7867)
@@ -276,7 +276,7 @@
misc->cmd = cmd;
add_to_element_contents (current, misc);
if (only_in_headings)
- add_extra_string (misc, "invalid_nesting", "1");
+ add_extra_integer (misc, "invalid_nesting", 1);
register_global_command (cmd, misc);
}
mark_and_warn_invalid (cmd, invalid_parent, misc);
@@ -676,7 +676,7 @@
line_error ("must be after address@hidden' to use
address@hidden'",
command_name(base_command),
command_name(cmd));
- add_extra_string (misc, "not_after_command", "1");
+ add_extra_integer (misc, "not_after_command", 1);
}
}
} /* 4571 */
@@ -1235,7 +1235,7 @@
&& global_kbdinputstyle != kbd_distinct
|| global_kbdinputstyle == kbd_code)
{
- add_extra_string (e, "code", "1");
+ add_extra_integer (e, "code", 1);
}
else if (global_kbdinputstyle == kbd_example)
{
@@ -1249,7 +1249,7 @@
{
if (command_flags(tmp->parent) & CF_code_style)
{
- add_extra_string (e, "code", "1");
+ add_extra_integer (e, "code", 1);
break;
}
tmp = tmp->parent->parent;
Modified: trunk/tp/parsetexi/macro.c
===================================================================
--- trunk/tp/parsetexi/macro.c 2017-06-27 11:21:53 UTC (rev 7866)
+++ trunk/tp/parsetexi/macro.c 2017-06-27 11:35:58 UTC (rev 7867)
@@ -96,13 +96,13 @@
if (*line && *line != '{' && !strchr (whitespace_chars, *line))
{
line_error ("bad name for @%s", command_name (cmd));
- add_extra_string (macro, "invalid_syntax", "1");
+ add_extra_integer (macro, "invalid_syntax", 1);
return macro;
}
else if (!name)
{
line_error ("@%s requires a name", command_name (cmd));
- add_extra_string (macro, "invalid_syntax", "1");
+ add_extra_integer (macro, "invalid_syntax", 1);
return macro;
}
@@ -158,7 +158,7 @@
arg = new_element (ET_macro_arg);
add_to_element_args (macro, arg);
text_append_n (&arg->text, "", 0);
- add_extra_string (macro, "invalid_syntax", "1");
+ add_extra_integer (macro, "invalid_syntax", 1);
}
}
else
@@ -178,7 +178,7 @@
line_error ("bad or empty @%s formal argument: %s",
command_name(cmd), args_ptr);
*q2 = c;
- add_extra_string (macro, "invalid_syntax", "1");
+ add_extra_integer (macro, "invalid_syntax", 1);
break;
}
}
@@ -200,7 +200,7 @@
{
line_error ("bad syntax for @%s argument: %s",
command_name(cmd), line);
- add_extra_string (macro, "invalid_syntax", "1");
+ add_extra_integer (macro, "invalid_syntax", 1);
}
//line += strlen (line); /* Discard rest of line. */
Modified: trunk/tp/parsetexi/separator.c
===================================================================
--- trunk/tp/parsetexi/separator.c 2017-06-27 11:21:53 UTC (rev 7866)
+++ trunk/tp/parsetexi/separator.c 2017-06-27 11:35:58 UTC (rev 7867)
@@ -694,7 +694,7 @@
if (format_expanded_p (inline_type))
{
expandp = 1;
- add_extra_string (current, "expand_index", "1");
+ add_extra_integer (current, "expand_index", 1);
}
else
expandp = 0;
@@ -708,7 +708,7 @@
if (current->cmd == CM_inlineifclear)
expandp = !expandp;
if (expandp)
- add_extra_string (current, "expand_index", "1");
+ add_extra_integer (current, "expand_index", 1);
}
else
expandp = 0;
@@ -721,7 +721,7 @@
ELEMENT *e;
int brace_count = 1;
- add_extra_string (current, "expand_index", "2");
+ add_extra_integer (current, "expand_index", 2);
/* Add a dummy argument for the first argument. */
e = new_element (ET_elided);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7867] parsetexi use add_extra_integer,
gavinsmith0123 <=