1ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/***************************************************************************/
2ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*                                                                         */
3ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  cf2error.c                                                             */
4ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*                                                                         */
5ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*    Adobe's code for error handling (body).                              */
6ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*                                                                         */
7ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  Copyright 2006-2013 Adobe Systems Incorporated.                        */
8ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*                                                                         */
9ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  This software, and all works of authorship, whether in source or       */
10ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  object code form as indicated by the copyright notice(s) included      */
11ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  herein (collectively, the "Work") is made available, and may only be   */
12ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  used, modified, and distributed under the FreeType Project License,    */
13ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  LICENSE.TXT.  Additionally, subject to the terms and conditions of the */
14ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  FreeType Project License, each contributor to the Work hereby grants   */
15ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  to any individual or legal entity exercising permissions granted by    */
16ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  the FreeType Project License and this section (hereafter, "You" or     */
17ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  "Your") a perpetual, worldwide, non-exclusive, no-charge,              */
18ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  royalty-free, irrevocable (except as stated in this section) patent    */
19ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  license to make, have made, use, offer to sell, sell, import, and      */
20ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  otherwise transfer the Work, where such license applies only to those  */
21ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  patent claims licensable by such contributor that are necessarily      */
22ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  infringed by their contribution(s) alone or by combination of their    */
23ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  contribution(s) with the Work to which such contribution(s) was        */
24ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  submitted.  If You institute patent litigation against any entity      */
25ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  (including a cross-claim or counterclaim in a lawsuit) alleging that   */
26ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  the Work or a contribution incorporated within the Work constitutes    */
27ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  direct or contributory patent infringement, then any patent licenses   */
28ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  granted to You under this License for that Work shall terminate as of  */
29ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  the date such litigation is filed.                                     */
30ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*                                                                         */
31ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  By using, modifying, or distributing the Work you indicate that you    */
32ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  have read and understood the terms and conditions of the               */
33ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  FreeType Project License as well as those provided in this section,    */
34ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*  and you accept them fully.                                             */
35ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/*                                                                         */
36ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/***************************************************************************/
37ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov
38ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov
39ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov#include "cf2ft.h"
40ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov#include "cf2error.h"
41ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov
42ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov
43ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov  FT_LOCAL_DEF( void )
44ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov  cf2_setError( FT_Error*  error,
45ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov                FT_Error   value )
46ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov  {
47ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov    if ( error && *error == 0 )
48ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov      *error = value;
49ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov  }
50ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov
51ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov
52ee451cb395940862dad63c85adfe8f2fd55e864cSvet Ganov/* END */
53