]>
src.bluestatic.org Git - viewsvn.git/blob - includes/geshi/geshi/c_mac.php
2 /*************************************************************************************
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.5
8 * CVS Revision Version: $Revision: 1.5 $
9 * Date Started: 2004/06/04
10 * Last Modified: $Date: 2005/10/22 07:52:59 $
12 * C for Macs language file for GeSHi.
19 * TODO (updated 2004/11/27)
20 * -------------------------
22 *************************************************************************************
24 * This file is part of GeSHi.
26 * GeSHi is free software; you can redistribute it and/or modify
27 * it under the terms of the GNU General Public License as published by
28 * the Free Software Foundation; either version 2 of the License, or
29 * (at your option) any later version.
31 * GeSHi is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 * GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License
37 * along with GeSHi; if not, write to the Free Software
38 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
40 ************************************************************************************/
42 $language_data = array (
44 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
45 'COMMENT_MULTI' => array('/*' => '*/'),
46 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
47 'QUOTEMARKS' => array("'", '"'),
48 'ESCAPE_CHAR' => '\\',
51 'if', 'return', 'while', 'case', 'continue', 'default',
52 'do', 'else', 'for', 'switch', 'goto'
55 'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
56 'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
57 'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
58 'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
59 'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
60 'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
61 'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
62 'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
63 'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
64 'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
65 'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
66 'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
67 // Mac-specific constants:
71 'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
72 'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
73 'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
74 'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
75 'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
76 'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
77 'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
78 'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
79 'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
80 'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
81 'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
82 'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
83 'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
84 'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
85 'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
86 'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
87 'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
88 'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
89 'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
92 'auto', 'char', 'const', 'double', 'float', 'int', 'long',
93 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
94 'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
95 'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
96 'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
97 // Mac-specific types:
98 'CFArrayRef', 'CFDictionaryRef', 'CFMutableDictionaryRef', 'CFBundleRef', 'CFSetRef', 'CFStringRef',
99 'CFURLRef', 'CFLocaleRef', 'CFDateFormatterRef', 'CFNumberFormatterRef', 'CFPropertyListRef',
100 'CFTreeRef', 'CFWriteStreamRef', 'CFCharacterSetRef', 'CFMutableStringRef', 'CFNotificationRef',
101 'CFNotificationRef', 'CFReadStreamRef', 'CFNull', 'CFAllocatorRef', 'CFBagRef', 'CFBinaryHeapRef',
102 'CFBitVectorRef', 'CFBooleanRef', 'CFDataRef', 'CFDateRef', 'CFMachPortRef', 'CFMessagePortRef',
103 'CFMutableArrayRef', 'CFMutableBagRef', 'CFMutableBitVectorRef', 'CFMutableCharacterSetRef',
104 'CFMutableDataRef', 'CFMutableSetRef', 'CFNumberRef', 'CFPlugInRef', 'CFPlugInInstanceRef',
105 'CFRunLoopRef', 'CFRunLoopObserverRef', 'CFRunLoopSourceRef', 'CFRunLoopTimerRef', 'CFSocketRef',
106 'CFTimeZoneRef', 'CFTypeRef', 'CFUserNotificationRef', 'CFUUIDRef', 'CFXMLNodeRef', 'CFXMLParserRef',
111 '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
113 'CASE_SENSITIVE' => array(
114 GESHI_COMMENTS
=> true,
122 1 => 'color: #0000ff;',
123 2 => 'color: #0000ff;',
124 3 => 'color: #0000dd;',
125 4 => 'color: #0000ff;'
128 1 => 'color: #ff0000;',
129 2 => 'color: #339900;',
130 'MULTI' => 'color: #ff0000; font-style: italic;'
132 'ESCAPE_CHAR' => array(
133 0 => 'color: #666666; font-weight: bold;'
136 0 => 'color: #000000;'
139 0 => 'color: #666666;'
142 0 => 'color: #0000dd;'
145 1 => 'color: #00eeff;',
146 2 => 'color: #00eeff;'
149 0 => 'color: #000000;'
159 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
163 'OBJECT_SPLITTERS' => array(
169 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
170 'SCRIPT_DELIMITERS' => array(
172 'HIGHLIGHT_STRICT_BLOCK' => array(