1. Shlomi Fish
  2. patsolve-shlomif

Commits

Shlomi Fish  committed 2e10017

Convert Usage to const.

  • Participants
  • Parent commits 0380c44
  • Branches make-code-suitable-for-fc-solve

Comments (0)

Files changed (3)

File patsolve/patmain.c

View file
 #include "pat.h"
 #include "tree.h"
 
-char Usage[] =
+const char Usage[] =
   "usage: %s [-s|f] [-k|a] [-w<n>] [-t<n>] [-E] [-S] [-q|v] [layout]\n"
   "-s Seahaven (same suit), -f Freecell (red/black)\n"
   "-k only Kings start a pile, -a any card starts a pile\n"

File patsolve/util.c

View file
 
 /* Just print a message. */
 
-void fc_solve_msg(char *msg, ...)
+void fc_solve_msg(const char *msg, ...)
 {
 	va_list ap;
 

File patsolve/util.h

View file
 extern "C" {
 #endif
 /* Error messages. */
-extern void fc_solve_msg(char *msg, ...);
+extern void fc_solve_msg(const char *msg, ...);
 
 #ifdef  __cplusplus
 }