1d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol/************************************************************************** 2d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * 3d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. 4d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * All Rights Reserved. 5d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * 6d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * Permission is hereby granted, free of charge, to any person obtaining a 7d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * copy of this software and associated documentation files (the 8d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * "Software"), to deal in the Software without restriction, including 9d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * without limitation the rights to use, copy, modify, merge, publish, 10d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * distribute, sub license, and/or sell copies of the Software, and to 11d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * permit persons to whom the Software is furnished to do so, subject to 12d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * the following conditions: 13d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * 14d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * The above copyright notice and this permission notice (including the 15d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * next paragraph) shall be included in all copies or substantial portions 16d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * of the Software. 17d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * 18d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 21d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 22d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol * 26d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol **************************************************************************/ 27d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol 28d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol#ifndef TGSI_TEXT_H 29d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol#define TGSI_TEXT_H 30d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol 31d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol#if defined __cplusplus 32d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krolextern "C" { 33d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol#endif 34d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol 358114cf9ad82860ac5d547e9e04af4e10e854ed6dVinson Lee#include "pipe/p_compiler.h" 368114cf9ad82860ac5d547e9e04af4e10e854ed6dVinson Lee 378114cf9ad82860ac5d547e9e04af4e10e854ed6dVinson Leestruct tgsi_token; 388114cf9ad82860ac5d547e9e04af4e10e854ed6dVinson Lee 39d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krolboolean 40d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Kroltgsi_text_translate( 41d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol const char *text, 42d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol struct tgsi_token *tokens, 43d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol uint num_tokens ); 44d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol 45d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol#if defined __cplusplus 46d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol} 47d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol#endif 48d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol 49d0386d55ff257ab09475178d058ddcd9f1e37c2dMichal Krol#endif /* TGSI_TEXT_H */ 50