Use scoped_restore in more places
[deliverable/binutils-gdb.git] / gdb / c-exp.y
index b2fc1959c050b6c25989c38f78220c5b5b657c9b..283b7375c0a11697d91848daa19108fe3acbd0a8 100644 (file)
@@ -3188,8 +3188,8 @@ c_parse (struct parser_state *par_state)
   gdb_assert (! macro_original_text);
   make_cleanup (scan_macro_cleanup, 0);
 
-  make_cleanup_restore_integer (&yydebug);
-  yydebug = parser_debug;
+  scoped_restore restore_yydebug = make_scoped_restore (&yydebug,
+                                                       parser_debug);
 
   /* Initialize some state used by the lexer.  */
   last_was_structop = 0;
This page took 0.049974 seconds and 4 git commands to generate.