(defun fix-pool-foreach () (interactive)
(fix-initializer "pool_foreach *("))
+(defun fix-pool-foreach-index () (interactive)
+ (fix-initializer "pool_foreach_index *("))
+
(defun fix-hash-foreach () (interactive)
(fix-initializer "hash_foreach *("))
(defun fix-vlib-register-node () (interactive)
(fix-initializer "VLIB_REGISTER_NODE *("))
+(defun fix-reply-macro2 () (interactive)
+ (fix-initializer "REPLY_MACRO2 *("))
;; Driver routine which runs the set of functions
;; defined above, as well as the bottom boilerplate function
(defun fd-io-styleify () (interactive)
(fix-pool-foreach)
+ (fix-pool-foreach-index)
(fix-hash-foreach)
(fix-hash-foreach-pair)
(fix-hash-foreach-mem)
(fix-vlib-register-thread)
(fix-vlib-cli-command)
(fix-vlib-register-node)
+ (fix-reply-macro2)
(insert-style-boilerplate))
(message "Processing %s..." (elt argv index))
(find-file (elt argv index))
(fd-io-styleify)
- (setq index (1+ index))
- (save-buffers-kill-emacs t))))
+ (setq index (1+ index))))
+ (if (> index 0)
+ (save-buffers-kill-emacs t)))
+
+