From 5c0adce1ccc739415c4b26ff13ffd2d77ea4bc6c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 20 May 2009 05:42:12 -0400 Subject: [PATCH] [HB] Rename harfbuzz-buffer to hb-buffer --- src/Makefile.am | 5 +++-- src/{harfbuzz-buffer-private.h => hb-buffer-private.h} | 8 ++++---- src/{harfbuzz-buffer.c => hb-buffer.c} | 6 ++---- src/{harfbuzz-buffer.h => hb-buffer.h} | 8 ++++---- src/hb-ot-layout-gsubgpos-private.h | 2 +- src/hb-ot-layout-private.h | 2 +- src/hb-ot-layout.cc | 5 +++-- src/hb-ot-layout.h | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) rename src/{harfbuzz-buffer-private.h => hb-buffer-private.h} (96%) rename src/{harfbuzz-buffer.c => hb-buffer.c} (98%) rename src/{harfbuzz-buffer.h => hb-buffer.h} (96%) diff --git a/src/Makefile.am b/src/Makefile.am index dc92c7a69..3f662db8b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,7 +11,8 @@ CXX = gcc $(GCCOPTS) -g -fno-rtti -fno-exceptions -Wabi -Wpadded -Wcast-align noinst_LTLIBRARIES = libharfbuzz-1.la HBSOURCES = \ - harfbuzz-buffer.c \ + hb-buffer.c \ + hb-buffer-private.h \ hb-private.h \ hb-ot-layout.cc \ hb-ot-layout-common-private.h \ @@ -25,7 +26,7 @@ HBSOURCES = \ HBHEADERS = \ hb-common.h \ - harfbuzz-buffer.h \ + hb-buffer.h \ hb-ot-layout.h \ $(NULL) diff --git a/src/harfbuzz-buffer-private.h b/src/hb-buffer-private.h similarity index 96% rename from src/harfbuzz-buffer-private.h rename to src/hb-buffer-private.h index 752149f81..dec313034 100644 --- a/src/harfbuzz-buffer-private.h +++ b/src/hb-buffer-private.h @@ -25,11 +25,11 @@ * Red Hat Author(s): Owen Taylor, Behdad Esfahbod */ -#ifndef HARFBUZZ_BUFFER_PRIVATE_H -#define HARFBUZZ_BUFFER_PRIVATE_H +#ifndef HB_BUFFER_PRIVATE_H +#define HB_BUFFER_PRIVATE_H #include "harfbuzz-impl.h" -#include "harfbuzz-buffer.h" +#include "hb-buffer.h" HB_BEGIN_HEADER @@ -103,4 +103,4 @@ _hb_buffer_allocate_ligid( HB_Buffer buffer ); HB_END_HEADER -#endif /* HARFBUZZ_BUFFER_PRIVATE_H */ +#endif /* HB_BUFFER_PRIVATE_H */ diff --git a/src/harfbuzz-buffer.c b/src/hb-buffer.c similarity index 98% rename from src/harfbuzz-buffer.c rename to src/hb-buffer.c index 133cb8097..5998126d0 100644 --- a/src/harfbuzz-buffer.c +++ b/src/hb-buffer.c @@ -26,9 +26,7 @@ */ #include "harfbuzz-impl.h" -#include "harfbuzz-buffer-private.h" -#include "harfbuzz-gsub-private.h" -#include "harfbuzz-gpos-private.h" +#include "hb-buffer-private.h" /* Here is how the buffer works internally: * @@ -161,7 +159,7 @@ hb_buffer_add_glyph (HB_Buffer buffer, { HB_Error error; HB_GlyphItem glyph; - + hb_buffer_ensure (buffer, buffer->in_length + 1); glyph = &buffer->in_string[buffer->in_length]; diff --git a/src/harfbuzz-buffer.h b/src/hb-buffer.h similarity index 96% rename from src/harfbuzz-buffer.h rename to src/hb-buffer.h index 668753c11..93ac3eecd 100644 --- a/src/harfbuzz-buffer.h +++ b/src/hb-buffer.h @@ -25,8 +25,8 @@ * Red Hat Author(s): Owen Taylor, Behdad Esfahbod */ -#ifndef HARFBUZZ_BUFFER_H -#define HARFBUZZ_BUFFER_H +#ifndef HB_BUFFER_H +#define HB_BUFFER_H #include "hb-common.h" @@ -65,7 +65,7 @@ typedef struct _hb_buffer_t { unsigned int out_length; unsigned int in_pos; unsigned int out_pos; - + hb_bool_t separate_out; HB_GlyphItem in_string; HB_GlyphItem out_string; @@ -91,4 +91,4 @@ hb_buffer_add_glyph (hb_buffer_t *buffer, HB_END_DECLS(); -#endif /* HARFBUZZ_BUFFER_H */ +#endif /* HB_BUFFER_H */ diff --git a/src/hb-ot-layout-gsubgpos-private.h b/src/hb-ot-layout-gsubgpos-private.h index 758841c6c..2f5a94bb3 100644 --- a/src/hb-ot-layout-gsubgpos-private.h +++ b/src/hb-ot-layout-gsubgpos-private.h @@ -28,7 +28,7 @@ #define HB_OT_LAYOUT_GSUBGPOS_PRIVATE_H #include "hb-ot-layout-gdef-private.h" -#include "harfbuzz-buffer-private.h" /* XXX */ +#include "hb-buffer-private.h" /* XXX */ #define APPLY_ARG_DEF \ diff --git a/src/hb-ot-layout-private.h b/src/hb-ot-layout-private.h index 80c36b4e7..a469119e4 100644 --- a/src/hb-ot-layout-private.h +++ b/src/hb-ot-layout-private.h @@ -31,7 +31,7 @@ #include "hb-ot-layout.h" /* XXX */ -#include "harfbuzz-buffer.h" +#include "hb-buffer.h" typedef unsigned int hb_ot_layout_class_t; diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 5e3b483cc..a98a34d8c 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -28,6 +28,9 @@ #define HB_OT_LAYOUT_CC +/* XXX */ +#include "hb-buffer-private.h" + #include "hb-ot-layout.h" #include "hb-ot-layout-private.h" @@ -36,8 +39,6 @@ #include "hb-ot-layout-gsub-private.h" #include "hb-ot-layout-gpos-private.h" -/* XXX */ -#include "harfbuzz-buffer-private.h" #include #include diff --git a/src/hb-ot-layout.h b/src/hb-ot-layout.h index 6aa05fcc6..c1dbdcae3 100644 --- a/src/hb-ot-layout.h +++ b/src/hb-ot-layout.h @@ -28,7 +28,7 @@ #define HB_OT_LAYOUT_H #include "hb-common.h" -#include "harfbuzz-buffer.h" +#include "hb-buffer.h" HB_BEGIN_DECLS();