[FriBidi-commit] fribidi/lib fribidi-bidi-types-list.h, NONE,
1.1 fribidi-bidi-type.c, 1.7, 1.8 bidi-types-list.h, 1.5, NONE
Behdad Esfahbod
behdad at pdx.freedesktop.org
Mon May 31 11:43:28 PDT 2004
Update of /cvs/fribidi/fribidi/lib
In directory pdx:/tmp/cvs-serv21116/lib
Modified Files:
fribidi-bidi-type.c
Added Files:
fribidi-bidi-types-list.h
Removed Files:
bidi-types-list.h
Log Message:
GNU Coding Standards applied and typos fixed.
--- NEW FILE: fribidi-bidi-types-list.h ---
#ifndef __C2MAN__
/* FriBidi
* fribidi-bidi-types-list.h - list of bidi types
*
* $Id: fribidi-bidi-types-list.h,v 1.1 2004/05/31 18:43:26 behdad Exp $
* $Author: behdad $
* $Date: 2004/05/31 18:43:26 $
* $Revision: 1.1 $
* $Source: /cvs/fribidi/fribidi/lib/fribidi-bidi-types-list.h,v $
*
* Author:
* Behdad Esfahbod, 2001, 2002, 2004
*
* Copyright (C) 2004 Sharif FarsiWeb, Inc.
* Copyright (C) 2001,2002 Behdad Esfahbod
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library, in a file named COPYING; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA
*
* For licensing issues, contact <license at farsiweb.info>.
*/
/* *INDENT-OFF* */
#endif /* !__C2MAN__ */
#ifndef _FRIBIDI_ADD_TYPE
# define _FRIBIDI_ADD_TYPE(x,y)
#endif
#ifndef _FRIBIDI_ADD_ALIAS
# define _FRIBIDI_ADD_ALIAS(x1,x2)
#endif
#if !_FRIBIDI_PAR_TYPES
/* Bidi types from the standard. */
/* The order of these types is important. Don't change. */
_FRIBIDI_ADD_TYPE (LTR, 'L') /* Left-To-Right letter */
_FRIBIDI_ADD_TYPE (RTL, 'R') /* Right-To-Left letter */
_FRIBIDI_ADD_TYPE (AL, 'A') /* Arabic Letter */
_FRIBIDI_ADD_TYPE (EN, '1') /* European Numeral */
_FRIBIDI_ADD_TYPE (AN, '9') /* Arabic Numeral */
_FRIBIDI_ADD_TYPE (ES, 'w') /* European number Separator */
_FRIBIDI_ADD_TYPE (ET, 'w') /* European number Terminator */
_FRIBIDI_ADD_TYPE (CS, 'w') /* Common Separator */
_FRIBIDI_ADD_TYPE (NSM, '`') /* Non Spacing Mark */
_FRIBIDI_ADD_TYPE (BN, 'b') /* Boundary Neutral */
_FRIBIDI_ADD_TYPE (BS, 'B') /* Block Separator */
_FRIBIDI_ADD_TYPE (SS, 'S') /* Segment Separator */
_FRIBIDI_ADD_TYPE (WS, '_') /* White-Space */
_FRIBIDI_ADD_TYPE (ON, 'n') /* Other Neutral */
_FRIBIDI_ADD_TYPE (LRE, '+') /* Left-to-Right Embedding */
_FRIBIDI_ADD_TYPE (RLE, '+') /* Right-to-Left Embedding */
_FRIBIDI_ADD_TYPE (LRO, '+') /* Left-to-Right Override */
_FRIBIDI_ADD_TYPE (RLO, '+') /* Right-to-Left Override */
_FRIBIDI_ADD_TYPE (PDF, '-') /* Pop Directional Flag */
#ifdef _FRIBIDI_ADD_ALIAS
/* The followings are just aliases to types, but with the name that appears in
* the Unicode database. */
_FRIBIDI_ADD_ALIAS (L, LTR)
_FRIBIDI_ADD_ALIAS (R, RTL)
_FRIBIDI_ADD_ALIAS (B, BS)
_FRIBIDI_ADD_ALIAS (S, SS)
#endif /* _FRIBIDI_ADD_ALIAS */
#ifdef _FRIBIDI_SENTINEL_TYPE
_FRIBIDI_ADD_TYPE (SENTINEL, '$') /* Sentinel */
#endif /* _FRIBIDI_SENTINEL_TYPES */
#endif /* !_FRIBIDI_PAR_TYPES */
#if _FRIBIDI_PAR_TYPES
_FRIBIDI_ADD_TYPE (LTR, 'L') /* Left-To-Right paragraph */
_FRIBIDI_ADD_TYPE (RTL, 'R') /* Right-To-Left paragraph */
_FRIBIDI_ADD_TYPE (WLTR, 'l') /* Weak left to right paragraph */
_FRIBIDI_ADD_TYPE (WRTL, 'r') /* Weak right to left paragraph */
_FRIBIDI_ADD_TYPE (ON, 'n') /* Direction-neutral paragraph */
#endif /* _FRIBIDI_PAR_TYPES */
#ifndef __C2MAN__
/* *INDENT-ON* */
#endif /* !__C2MAN__ */
Index: fribidi-bidi-type.c
===================================================================
RCS file: /cvs/fribidi/fribidi/lib/fribidi-bidi-type.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/fribidi-bidi-type.c 22 May 2004 11:21:40 -0000 1.7
+++ b/fribidi-bidi-type.c 31 May 2004 18:43:26 -0000 1.8
@@ -41,7 +41,7 @@
enum FriBidiCharTypeLinearEnum
{
# define _FRIBIDI_ADD_TYPE(TYPE,SYMBOL) TYPE,
-# include "bidi-types-list.h"
+# include "fribidi-bidi-types-list.h"
# undef _FRIBIDI_ADD_TYPE
NUM_TYPES
};
@@ -51,7 +51,7 @@
/* Map FriBidiCharTypeLinearEnum to FriBidiCharType. */
static const FriBidiCharType linear_enum_to_char_type[] = {
# define _FRIBIDI_ADD_TYPE(TYPE,SYMBOL) FRIBIDI_TYPE_##TYPE,
-# include "bidi-types-list.h"
+# include "fribidi-bidi-types-list.h"
# undef _FRIBIDI_ADD_TYPE
};
--- bidi-types-list.h DELETED ---
More information about the FriBidi-Commit
mailing list