# Source for file c_mac.php

Documentation is available at c_mac.php

    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.3
    8      * CVS Revision Version: $Revision: 1.1 $
    9      * Date Started: 2004/06/04
    10     * Last Modified: $Date: 2006/01/23 09:27:29 $
    11     *
    12     * C for Macs language file for GeSHi.
    13     *
    14     * CHANGES
    15     * -------
    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     ************************************************************************************/
    40
    41
    42    $language_data = array (
    43        'LANG_NAME' => 'C',
    44        'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
    45        'COMMENT_MULTI' => array('/*' => '*/'),
    46        'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    47        'QUOTEMARKS' => array("'", '"'),
    48        'ESCAPE_CHAR' => '\\',
    49        'KEYWORDS' => array(
    50            1 => array(
    51                'if', 'return', 'while', 'case', 'continue', 'default',
    52                'do', 'else', 'for', 'switch', 'goto'
    53                ),
    54            2 => array(
    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:
    68                'kCFAllocatorDefault'
    69                ),
    70            3 => array(
    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'
    90                ),
    91            4 => array(
    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',
    107               'CFXMLTreeRef'
    108               ),
    109           ),
    110       'SYMBOLS' => array(
    111           '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
    112           ),
    113       'CASE_SENSITIVE' => array(
    114           GESHI_COMMENTS => true,
    115           1 => false,
    116           2 => false,
    117           3 => false,
    118           4 => false,
    119           ),
    120       'STYLES' => array(
    121           'KEYWORDS' => array(
    122               1 => 'color: #0000ff;',
    123               2 => 'color: #0000ff;',
    124               3 => 'color: #0000dd;',
    125               4 => 'color: #0000ff;'
    126               ),
    127           'COMMENTS' => array(
    128               1 => 'color: #ff0000;',
    129               2 => 'color: #339900;',
    130               'MULTI' => 'color: #ff0000; font-style: italic;'
    131               ),
    132           'ESCAPE_CHAR' => array(
    133               0 => 'color: #666666; font-weight: bold;'
    134               ),
    135           'BRACKETS' => array(
    136               0 => 'color: #000000;'
    137               ),
    138           'STRINGS' => array(
    139               0 => 'color: #666666;'
    140               ),
    141           'NUMBERS' => array(
    142               0 => 'color: #0000dd;'
    143               ),
    144           'METHODS' => array(
    145               1 => 'color: #00eeff;',
    146               2 => 'color: #00eeff;'
    147               ),
    148           'SYMBOLS' => array(
    149               0 => 'color: #000000;'
    150               ),
    151           'REGEXPS' => array(
    152               ),
    153           'SCRIPT' => array(
    154               )
    155           ),
    156       'URLS' => array(
    157           1 => '',
    158           2 => '',
    159           3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
    160           4 => ''
    161           ),
    162       'OOLANG' => true,
    163       'OBJECT_SPLITTERS' => array(
    164           1 => '.',
    165           2 => '::'
    166           ),
    167       'REGEXPS' => array(
    168           ),
    169       'STRICT_MODE_APPLIES' => GESHI_NEVER,
    170       'SCRIPT_DELIMITERS' => array(
    171           ),
    172       'HIGHLIGHT_STRICT_BLOCK' => array(
    173           )
    174   );
    175
    176   ?>

Documentation generated on Thu, 22 Sep 2005 13:47:51 +1200 by phpDocumentor 1.2.3