[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7207] parsetexi update
From: |
gavinsmith0123 |
Subject: |
[7207] parsetexi update |
Date: |
Thu, 9 Jun 2016 19:45:53 +0000 (UTC) |
Revision: 7207
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7207
Author: gavin
Date: 2016-06-09 19:45:52 +0000 (Thu, 09 Jun 2016)
Log Message:
-----------
parsetexi update
Modified Paths:
--------------
trunk/tp/parsetexi/command_data.txt
trunk/tp/parsetexi/commands.h
trunk/tp/parsetexi/parser.c
Modified: trunk/tp/parsetexi/command_data.txt
===================================================================
--- trunk/tp/parsetexi/command_data.txt 2016-06-09 19:27:50 UTC (rev 7206)
+++ trunk/tp/parsetexi/command_data.txt 2016-06-09 19:45:52 UTC (rev 7207)
@@ -163,8 +163,8 @@
# TODO: Check what these two are.
# They were obsolete and undocumented commands for macro definitions,
# never supported in texinfo.tex.
-#quote-arg misc MISC_skipline
-#allow-recursion misc MISC_skipline
+#quote-arg misc,deprecated MISC_skipline
+#allow-recursion misc,deprecated MISC_skipline
# line 515
##########################################################
@@ -293,7 +293,7 @@
# use a different value for the other commands which
# are said to take 1 argument in Common.pm.
U brace 1
-ctrl brace 1
+ctrl brace,deprecated 1
dmn brace 1
titlefont brace,global 1
Modified: trunk/tp/parsetexi/commands.h
===================================================================
--- trunk/tp/parsetexi/commands.h 2016-06-09 19:27:50 UTC (rev 7206)
+++ trunk/tp/parsetexi/commands.h 2016-06-09 19:45:52 UTC (rev 7207)
@@ -46,7 +46,7 @@
/* Available command flags. Based on tp/Texinfo/Common.pm. */
#define CF_misc 0x0001
-#define CF_default_index 0x0002
+#define CF_deprecated 0x0002
#define CF_root 0x0004
#define CF_sectioning 0x0008
#define CF_brace 0x0010
Modified: trunk/tp/parsetexi/parser.c
===================================================================
--- trunk/tp/parsetexi/parser.c 2016-06-09 19:27:50 UTC (rev 7206)
+++ trunk/tp/parsetexi/parser.c 2016-06-09 19:45:52 UTC (rev 7207)
@@ -1205,7 +1205,11 @@
}
}
- /* TODO: warn on deprecated command */
+ /* Warn on deprecated command */
+ if (command_data(cmd).flags & CF_deprecated)
+ {
+ line_warn ("@%s is obsolete", command_name(cmd));
+ }
/* warn on not appearing at line beginning 4226 */
// begin line commands 315
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7207] parsetexi update,
gavinsmith0123 <=