jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [lib/] [geshi/] [c_mac.php] - Blame information for rev 2

 

Line No. Rev Author Line
11simandl<?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.8.1
8 * Date Started: 2004/06/04
9 *
10 * C for Macs language file for GeSHi.
11 *
12 * CHANGES
13 * -------
14 * 2008/05/23 (1.0.7.22)
15 * - Added description of extra language features (SF#1970248)
16 * 2004/11/27
17 * - First Release
18 *
19 * TODO (updated 2004/11/27)
20 * -------------------------
21 *
22 *************************************************************************************
23 *
24 * This file is part of GeSHi.
25 *
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.
30 *
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.
35 *
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
39 *
40 ************************************************************************************/
41 
42$language_data = array (
43 'LANG_NAME' => 'C (Mac)',
44 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
45 'COMMENT_MULTI' => array('/*' => '*/'),
46 //Multiline-continued single-line comments
47 'COMMENT_REGEXP' => array(1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m'),
48 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
49 'QUOTEMARKS' => array("'", '"'),
50 'ESCAPE_CHAR' => '\\',
51 'NUMBERS' =>
52 GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
53 GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
54 GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
55 'KEYWORDS' => array(
56 1 => array(
57 'if', 'return', 'while', 'case', 'continue', 'default',
58 'do', 'else', 'for', 'switch', 'goto'
59 ),
60 2 => array(
61 'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
62 'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
63 'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
64 'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
65 'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
66 'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
67 'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
68 'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
69 'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
70 'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam',
71 'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
72 'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
73 // Mac-specific constants:
74 'kCFAllocatorDefault'
75 ),
76 3 => array(
77 'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
78 'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
79 'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper',
80 'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
81 'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
82 'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
83 'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
84 'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
85 'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
86 'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
87 'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
88 'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
89 'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
90 'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
91 'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
92 'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
93 'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
94 'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
95 'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
96 ),
97 4 => array(
98 'auto', 'char', 'const', 'double', 'float', 'int', 'long',
99 'register', 'short', 'signed', 'static', 'string', 'struct',
100 'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
101 'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
102 'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
103 // Mac-specific types:
104 'CFArrayRef', 'CFDictionaryRef', 'CFMutableDictionaryRef', 'CFBundleRef', 'CFSetRef', 'CFStringRef',
105 'CFURLRef', 'CFLocaleRef', 'CFDateFormatterRef', 'CFNumberFormatterRef', 'CFPropertyListRef',
106 'CFTreeRef', 'CFWriteStreamRef', 'CFCharacterSetRef', 'CFMutableStringRef', 'CFNotificationRef',
107 'CFReadStreamRef', 'CFNull', 'CFAllocatorRef', 'CFBagRef', 'CFBinaryHeapRef',
108 'CFBitVectorRef', 'CFBooleanRef', 'CFDataRef', 'CFDateRef', 'CFMachPortRef', 'CFMessagePortRef',
109 'CFMutableArrayRef', 'CFMutableBagRef', 'CFMutableBitVectorRef', 'CFMutableCharacterSetRef',
110 'CFMutableDataRef', 'CFMutableSetRef', 'CFNumberRef', 'CFPlugInRef', 'CFPlugInInstanceRef',
111 'CFRunLoopRef', 'CFRunLoopObserverRef', 'CFRunLoopSourceRef', 'CFRunLoopTimerRef', 'CFSocketRef',
112 'CFTimeZoneRef', 'CFTypeRef', 'CFUserNotificationRef', 'CFUUIDRef', 'CFXMLNodeRef', 'CFXMLParserRef',
113 'CFXMLTreeRef'
114 ),
115 ),
116 'SYMBOLS' => array(
117 '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
118 ),
119 'CASE_SENSITIVE' => array(
120 GESHI_COMMENTS => false,
121 1 => false,
122 2 => false,
123 3 => false,
124 4 => false,
125 ),
126 'STYLES' => array(
127 'KEYWORDS' => array(
128 1 => 'color: #0000ff;',
129 2 => 'color: #0000ff;',
130 3 => 'color: #0000dd;',
131 4 => 'color: #0000ff;'
132 ),
133 'COMMENTS' => array(
134 1 => 'color: #ff0000;',
135 2 => 'color: #339900;',
136 'MULTI' => 'color: #ff0000; font-style: italic;'
137 ),
138 'ESCAPE_CHAR' => array(
139 
140 ),
141 'BRACKETS' => array(
142 
143 ),
144 'STRINGS' => array(
145 
146 ),
147 'NUMBERS' => array(
148 
149 GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
150 GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
151 GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
152 GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
153 GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
154 GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
155 GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
156 ),
157 'METHODS' => array(
158 1 => 'color: #00eeff;',
159 2 => 'color: #00eeff;'
160 ),
161 'SYMBOLS' => array(
162 
163 ),
164 'REGEXPS' => array(
165 ),
166 'SCRIPT' => array(
167 )
168 ),
169 'URLS' => array(
170 1 => '',
171 2 => '',
172 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html',
173 4 => ''
174 ),
175 'OOLANG' => true,
176 'OBJECT_SPLITTERS' => array(
177 1 => '.',
178 2 => '::'
179 ),
180 'REGEXPS' => array(
181 ),
182 'STRICT_MODE_APPLIES' => GESHI_NEVER,
183 'SCRIPT_DELIMITERS' => array(
184 ),
185 'HIGHLIGHT_STRICT_BLOCK' => array(
186 ),
187 'TAB_WIDTH' => 4
188);
189 
190?>

Powered by WebSVN 2.2.1