r13739 tlsa - in /trunk/netsurf: amiga/system_colour.c atari/system_colour.c beos/system_colour.cpp cocoa/system_colour.m framebuffer/system_colour.c gtk/system_colour.c monkey/system_colour.c riscos/system_colour.c windows/system_colour.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Mar 27 12:02:35 BST 2012


Author: tlsa
Date: Tue Mar 27 06:02:35 2012
New Revision: 13739

URL: http://source.netsurf-browser.org?rev=13739&view=rev
Log:
Fix colour string matching.  Lose unneeded case insensitivity in matching.

Modified:
    trunk/netsurf/amiga/system_colour.c
    trunk/netsurf/atari/system_colour.c
    trunk/netsurf/beos/system_colour.cpp
    trunk/netsurf/cocoa/system_colour.m
    trunk/netsurf/framebuffer/system_colour.c
    trunk/netsurf/gtk/system_colour.c
    trunk/netsurf/monkey/system_colour.c
    trunk/netsurf/riscos/system_colour.c
    trunk/netsurf/windows/system_colour.c

Modified: trunk/netsurf/amiga/system_colour.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/system_colour.c?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/amiga/system_colour.c (original)
+++ trunk/netsurf/amiga/system_colour.c Tue Mar 27 06:02:35 2012
@@ -313,9 +313,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name, 
-				colour_list[ccount].name, 
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}

Modified: trunk/netsurf/atari/system_colour.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/system_colour.c?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/atari/system_colour.c (original)
+++ trunk/netsurf/atari/system_colour.c Tue Mar 27 06:02:35 2012
@@ -261,9 +261,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name, 
-				colour_list[ccount].name, 
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}

Modified: trunk/netsurf/beos/system_colour.cpp
URL: http://source.netsurf-browser.org/trunk/netsurf/beos/system_colour.cpp?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/beos/system_colour.cpp (original)
+++ trunk/netsurf/beos/system_colour.cpp Tue Mar 27 06:02:35 2012
@@ -332,10 +332,8 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name, 
-				colour_list[ccount].name, 
-				colour_list[ccount].length) == 0) {
-			ret = colour_list[ccount].css_colour;
+		if (strcmp(name, colour_list[ccount].name) == 0) {
+			ret = colour_list[ccount].colour;
 			break;
 		}
 	}

Modified: trunk/netsurf/cocoa/system_colour.m
URL: http://source.netsurf-browser.org/trunk/netsurf/cocoa/system_colour.m?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/cocoa/system_colour.m (original)
+++ trunk/netsurf/cocoa/system_colour.m Tue Mar 27 06:02:35 2012
@@ -256,9 +256,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name, 
-				colour_list[ccount].name, 
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}

Modified: trunk/netsurf/framebuffer/system_colour.c
URL: http://source.netsurf-browser.org/trunk/netsurf/framebuffer/system_colour.c?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/framebuffer/system_colour.c (original)
+++ trunk/netsurf/framebuffer/system_colour.c Tue Mar 27 06:02:35 2012
@@ -256,9 +256,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name,
-				colour_list[ccount].name,
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}

Modified: trunk/netsurf/gtk/system_colour.c
URL: http://source.netsurf-browser.org/trunk/netsurf/gtk/system_colour.c?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/gtk/system_colour.c (original)
+++ trunk/netsurf/gtk/system_colour.c Tue Mar 27 06:02:35 2012
@@ -256,9 +256,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name, 
-				colour_list[ccount].name, 
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}

Modified: trunk/netsurf/monkey/system_colour.c
URL: http://source.netsurf-browser.org/trunk/netsurf/monkey/system_colour.c?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/monkey/system_colour.c (original)
+++ trunk/netsurf/monkey/system_colour.c Tue Mar 27 06:02:35 2012
@@ -256,9 +256,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name, 
-				colour_list[ccount].name, 
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}

Modified: trunk/netsurf/riscos/system_colour.c
URL: http://source.netsurf-browser.org/trunk/netsurf/riscos/system_colour.c?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/riscos/system_colour.c (original)
+++ trunk/netsurf/riscos/system_colour.c Tue Mar 27 06:02:35 2012
@@ -294,9 +294,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name,
-				colour_list[ccount].name,
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}

Modified: trunk/netsurf/windows/system_colour.c
URL: http://source.netsurf-browser.org/trunk/netsurf/windows/system_colour.c?rev=13739&r1=13738&r2=13739&view=diff
==============================================================================
--- trunk/netsurf/windows/system_colour.c (original)
+++ trunk/netsurf/windows/system_colour.c Tue Mar 27 06:02:35 2012
@@ -256,9 +256,7 @@
 	unsigned int ccount;
 
 	for (ccount = 0; ccount < colour_list_len; ccount++) {
-		if (strncasecmp(name, 
-				colour_list[ccount].name, 
-				colour_list[ccount].length) == 0) {
+		if (strcmp(name, colour_list[ccount].name) == 0) {
 			ret = colour_list[ccount].colour;
 			break;
 		}




More information about the netsurf-commits mailing list