A tumblelog CMS built on AJAX, PHP and MySQL.

c_mac.php 6.7KB

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