summaryrefslogtreecommitdiff
path: root/lang/rscheme/files/patch-..::modules::regex::runmatch.c
diff options
context:
space:
mode:
authorAndrey Slusar <anray@FreeBSD.org>2006-04-14 21:54:10 +0000
committerAndrey Slusar <anray@FreeBSD.org>2006-04-14 21:54:10 +0000
commit09bde4b0326f78db8fc2575397080f300829b5be (patch)
treecb75eeec6c2ae866159ef18a0e6d88d300f19331 /lang/rscheme/files/patch-..::modules::regex::runmatch.c
parentReplace dead MASTER_SITE. (diff)
Fix build warnings.
Notes
Notes: svn path=/head/; revision=159518
Diffstat (limited to 'lang/rscheme/files/patch-..::modules::regex::runmatch.c')
-rw-r--r--lang/rscheme/files/patch-..::modules::regex::runmatch.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/lang/rscheme/files/patch-..::modules::regex::runmatch.c b/lang/rscheme/files/patch-..::modules::regex::runmatch.c
new file mode 100644
index 000000000000..b24f7053308f
--- /dev/null
+++ b/lang/rscheme/files/patch-..::modules::regex::runmatch.c
@@ -0,0 +1,55 @@
+--- ../modules/regex/runmatch.c.orig Fri Apr 14 17:27:56 2006
++++ ../modules/regex/runmatch.c Fri Apr 14 17:31:23 2006
+@@ -130,7 +130,7 @@
+ {
+ UINT_8 reg = machine[pc++];
+ bound[reg].count++;
+- printf( "-- [%02u] inc r%u [%u,%u] now %u\n",
++ printf( "-- [%02lu] inc r%u [%u,%u] now %u\n",
+ pc-2, reg, bound[reg].min, bound[reg].max,
+ bound[reg].count );
+ break;
+@@ -149,28 +149,28 @@
+
+ save = bound[reg].count;
+ printf( "-- [%02u] <%p> boundloop r%u (count %u, [%u,%u])\n",
+- pcsave, &subr, reg, save, bound[reg].min, bound[reg].max );
++ (unsigned int)pcsave, &subr, reg, save, bound[reg].min, bound[reg].max );
+
+ if (save < bound[reg].max) {
+ result = run_match( str, subr );
+ if (result) {
+ printf( "-- [%02u] <%p> boundloop run_match OK\n",
+- pcsave, &subr );
++ (unsigned int)pcsave, &subr );
+ return result;
+ }
+ printf( "-- [%02u] <%p> boundloop run_match failed (fix n=%u)\n",
+- pcsave, &subr, save );
++ (unsigned int)pcsave, &subr, save );
+ bound[reg].count = save;
+ if (save < bound[reg].min) {
+ printf( "-- [%02u] <%p> boundloop total failure w/%u\n",
+- pcsave, &subr, save );
++ (unsigned int)pcsave, &subr, save );
+ FAILED;
+ }
+ printf( "-- [%02u] <%p> boundloop continue w/%u (no match)\n",
+- pcsave, &subr, save );
++ (unsigned int)pcsave, &subr, save );
+ } else {
+ printf( "-- [%02u] <%p> boundloop continue w/%u (hit max)\n",
+- pcsave, &subr, save );
++ (unsigned int)pcsave, &subr, save );
+ }
+ break;
+ }
+@@ -185,7 +185,7 @@
+ bound[reg].max = (machine[pc+2] << 8) + machine[pc+3];
+ pc += 4;
+ printf( "-- [%02u] setbound r%u [%u,%u]\n",
+- pcsave, reg, bound[reg].min, bound[reg].max );
++ (unsigned int)pcsave, reg, bound[reg].min, bound[reg].max );
+ break;
+ }
+