cmap.c (200420) | cmap.c (200462) |
---|---|
1/*- 2 * Copyright (c) 2004 Tim J. Robbins. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26/* 27 * "Character map" ADT. Stores mappings between pairs of characters in a 28 * splay tree, with a lookup table cache to simplify looking up the first 29 * bunch of characters (which are presumably more common than others). 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Tim J. Robbins. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26/* 27 * "Character map" ADT. Stores mappings between pairs of characters in a 28 * splay tree, with a lookup table cache to simplify looking up the first 29 * bunch of characters (which are presumably more common than others). 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/usr.bin/tr/cmap.c 200420 2009-12-11 23:35:38Z delphij $"); | 33__FBSDID("$FreeBSD: head/usr.bin/tr/cmap.c 200462 2009-12-13 03:14:06Z delphij $"); |
34 35#include <assert.h> | 34 35#include <assert.h> |
36#include <limits.h> 37#include <stdbool.h> |
|
36#include <stdlib.h> | 38#include <stdlib.h> |
39#include <wchar.h> |
|
37#include "cmap.h" 38 39static struct cmapnode *cmap_splay(struct cmapnode *, wint_t); 40 41/* 42 * cmap_alloc -- 43 * Allocate a character map. 44 */ --- 165 unchanged lines hidden --- | 40#include "cmap.h" 41 42static struct cmapnode *cmap_splay(struct cmapnode *, wint_t); 43 44/* 45 * cmap_alloc -- 46 * Allocate a character map. 47 */ --- 165 unchanged lines hidden --- |