From c18aea0bdf2168b4dd891fc500c82d6907012256 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Jan 03 2008 16:07:16 +0000 Subject: might as well micro-optimize --- diff --git a/hunspell-1.2.1-1863239.badstructs.patch b/hunspell-1.2.1-1863239.badstructs.patch index fb7a4e1..6454ca8 100644 --- a/hunspell-1.2.1-1863239.badstructs.patch +++ b/hunspell-1.2.1-1863239.badstructs.patch @@ -1,6 +1,6 @@ diff -ru hunspell-1.2.1.orig/src/hunspell/csutil.cxx hunspell-1.2.1/src/hunspell/csutil.cxx --- hunspell-1.2.1.orig/src/hunspell/csutil.cxx 2007-11-01 15:40:53.000000000 +0000 -+++ hunspell-1.2.1/src/hunspell/csutil.cxx 2008-01-03 15:41:54.000000000 +0000 ++++ hunspell-1.2.1/src/hunspell/csutil.cxx 2008-01-03 16:02:31.000000000 +0000 @@ -941,7 +941,7 @@ { 0x00, 0xfc, 0xdc }, { 0x00, 0xfd, 0xdd }, @@ -163,3 +163,11 @@ diff -ru hunspell-1.2.1.orig/src/hunspell/csutil.cxx hunspell-1.2.1/src/hunspell }; struct cs_info * get_current_cs(const char * es) { +@@ -5117,6 +5117,7 @@ + for (int i = 0; i < n; i++) { + if (strcmp(es,encds[i].enc_name) == 0) { + ccs = encds[i].cs_table; ++ break; + } + } + return ccs; diff --git a/hunspell.spec b/hunspell.spec index 5ee622e..cab91f7 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -1,7 +1,7 @@ Name: hunspell Summary: Hunspell is a spell checker and morphological analyzer library Version: 1.2.1 -Release: 3%{?dist} +Release: 4%{?dist} Source: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz Group: System Environment/Libraries URL: http://hunspell.sourceforge.net/ @@ -82,7 +82,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/hunspell.pc %changelog -* Thu Jan 03 2008 Caolan McNamara - 1.2.1-3 +* Thu Jan 03 2008 Caolan McNamara - 1.2.1-4 - add hunspell-1.2.1-1863239.badstructs.patch * Fri Nov 09 2007 Caolan McNamara - 1.2.1-2