+static int syntax = ENHANCED;
+
+/* Set the algorithm option globally */
+void
+set_algorithm(int x)
+{
+ global_algorithm = x;
+}
+
+/* Set the algorithm option for this command only */
+void
+set_cmd_algorithm(int x)
+{
+ cmd_algorithm = x;
+ algorithm = &cmd_algorithm;
+}
+
+/* Unset the algorithm option for this command */
+void
+unset_cmd_algorithm(void)
+{
+ algorithm = &global_algorithm;
+}
+
+/* Return the current algorithm setting */
+int
+get_algorithm(void)
+{
+ return *algorithm;
+}
+
+/* Set the syntax option */
+void
+set_syntax(int x)
+{
+ syntax = x;
+}
+
+/* Get the current syntax setting */
+int
+get_syntax(void)
+{
+ return syntax;