File geshi/geshi/c_mac.php

Last commit: Fri Nov 23 00:12:00 2007 +0100	dankert	Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.
1 <?php 2 /************************************************************************************* 3 * c_mac.php 4 * --------- 5 * Author: M. Uli Kusterer (witness.of.teachtext@gmx.net) 6 * Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/) 7 * Release Version: 1.0.7.20 8 * Date Started: 2004/06/04 9 * 10 * C for Macs language file for GeSHi. 11 * 12 * CHANGES 13 * ------- 14 * 2004/11/27 15 * - First Release 16 * 17 * TODO (updated 2004/11/27) 18 * ------------------------- 19 * 20 ************************************************************************************* 21 * 22 * This file is part of GeSHi. 23 * 24 * GeSHi is free software; you can redistribute it and/or modify 25 * it under the terms of the GNU General Public License as published by 26 * the Free Software Foundation; either version 2 of the License, or 27 * (at your option) any later version. 28 * 29 * GeSHi is distributed in the hope that it will be useful, 30 * but WITHOUT ANY WARRANTY; without even the implied warranty of 31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32 * GNU General Public License for more details. 33 * 34 * You should have received a copy of the GNU General Public License 35 * along with GeSHi; if not, write to the Free Software 36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 37 * 38 ************************************************************************************/ 39 40 $language_data = array ( 41 'LANG_NAME' => 'C (Mac)', 42 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 43 'COMMENT_MULTI' => array('/*' => '*/'), 44 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 45 'QUOTEMARKS' => array("'", '"'), 46 'ESCAPE_CHAR' => '\\', 47 'KEYWORDS' => array( 48 1 => array( 49 'if', 'return', 'while', 'case', 'continue', 'default', 50 'do', 'else', 'for', 'switch', 'goto' 51 ), 52 2 => array( 53 'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM', 54 'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG', 55 'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG', 56 'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP', 57 'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP', 58 'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN', 59 'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN', 60 'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT', 61 'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR', 62 'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL', 63 'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr', 64 'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC', 65 // Mac-specific constants: 66 'kCFAllocatorDefault' 67 ), 68 3 => array( 69 'printf', 'fprintf', 'snprintf', 'sprintf', 'assert', 70 'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint', 71 'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper', 72 'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp', 73 'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2', 74 'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2', 75 'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen', 76 'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf', 77 'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf', 78 'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc', 79 'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind', 80 'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs', 81 'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc', 82 'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv', 83 'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat', 84 'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn', 85 'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy', 86 'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime', 87 'asctime', 'ctime', 'gmtime', 'localtime', 'strftime' 88 ), 89 4 => array( 90 'auto', 'char', 'const', 'double', 'float', 'int', 'long', 91 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct', 92 'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf', 93 'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t', 94 'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 95 // Mac-specific types: 96 'CFArrayRef', 'CFDictionaryRef', 'CFMutableDictionaryRef', 'CFBundleRef', 'CFSetRef', 'CFStringRef', 97 'CFURLRef', 'CFLocaleRef', 'CFDateFormatterRef', 'CFNumberFormatterRef', 'CFPropertyListRef', 98 'CFTreeRef', 'CFWriteStreamRef', 'CFCharacterSetRef', 'CFMutableStringRef', 'CFNotificationRef', 99 'CFNotificationRef', 'CFReadStreamRef', 'CFNull', 'CFAllocatorRef', 'CFBagRef', 'CFBinaryHeapRef', 100 'CFBitVectorRef', 'CFBooleanRef', 'CFDataRef', 'CFDateRef', 'CFMachPortRef', 'CFMessagePortRef', 101 'CFMutableArrayRef', 'CFMutableBagRef', 'CFMutableBitVectorRef', 'CFMutableCharacterSetRef', 102 'CFMutableDataRef', 'CFMutableSetRef', 'CFNumberRef', 'CFPlugInRef', 'CFPlugInInstanceRef', 103 'CFRunLoopRef', 'CFRunLoopObserverRef', 'CFRunLoopSourceRef', 'CFRunLoopTimerRef', 'CFSocketRef', 104 'CFTimeZoneRef', 'CFTypeRef', 'CFUserNotificationRef', 'CFUUIDRef', 'CFXMLNodeRef', 'CFXMLParserRef', 105 'CFXMLTreeRef' 106 ), 107 ), 108 'SYMBOLS' => array( 109 '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':' 110 ), 111 'CASE_SENSITIVE' => array( 112 GESHI_COMMENTS => true, 113 1 => false, 114 2 => false, 115 3 => false, 116 4 => false, 117 ), 118 'STYLES' => array( 119 'KEYWORDS' => array( 120 1 => 'color: #0000ff;', 121 2 => 'color: #0000ff;', 122 3 => 'color: #0000dd;', 123 4 => 'color: #0000ff;' 124 ), 125 'COMMENTS' => array( 126 1 => 'color: #ff0000;', 127 2 => 'color: #339900;', 128 'MULTI' => 'color: #ff0000; font-style: italic;' 129 ), 130 'ESCAPE_CHAR' => array( 131 0 => 'color: #666666; font-weight: bold;' 132 ), 133 'BRACKETS' => array( 134 0 => 'color: #000000;' 135 ), 136 'STRINGS' => array( 137 0 => 'color: #666666;' 138 ), 139 'NUMBERS' => array( 140 0 => 'color: #0000dd;' 141 ), 142 'METHODS' => array( 143 1 => 'color: #00eeff;', 144 2 => 'color: #00eeff;' 145 ), 146 'SYMBOLS' => array( 147 0 => 'color: #000000;' 148 ), 149 'REGEXPS' => array( 150 ), 151 'SCRIPT' => array( 152 ) 153 ), 154 'URLS' => array( 155 1 => '', 156 2 => '', 157 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html', 158 4 => '' 159 ), 160 'OOLANG' => true, 161 'OBJECT_SPLITTERS' => array( 162 1 => '.', 163 2 => '::' 164 ), 165 'REGEXPS' => array( 166 ), 167 'STRICT_MODE_APPLIES' => GESHI_NEVER, 168 'SCRIPT_DELIMITERS' => array( 169 ), 170 'HIGHLIGHT_STRICT_BLOCK' => array( 171 ), 172 'TAB_WIDTH' => 4 173 ); 174 175 ?>
Download geshi/geshi/c_mac.php
History Fri, 23 Nov 2007 00:12:00 +0100 dankert Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.