A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

test2 - Stikked
From test1, 6 Years ago, written in C++.
Embed
  1. /*
  2.   Arduino.h - Main include file for the Arduino SDK
  3.   Copyright (c) 2005-2013 Arduino Team.  All right reserved.
  4.  
  5.   This library is free software; you can redistribute it and/or
  6.   modify it under the terms of the GNU Lesser General Public
  7.   License as published by the Free Software Foundation; either
  8.   version 2.1 of the License, or (at your option) any later version.
  9.  
  10.   This library is distributed in the hope that it will be useful,
  11.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.   Lesser General Public License for more details.
  14.  
  15.   You should have received a copy of the GNU Lesser General Public
  16.   License along with this library; if not, write to the Free Software
  17.   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  18. */
  19.  
  20. #ifndef Arduino_h
  21. #define Arduino_h
  22.  
  23. #include <stdint.h>
  24. #include <stdlib.h>
  25. #include <stdbool.h>
  26. #include <string.h>
  27. #include <math.h>
  28. #include <bit_constants.h>
  29.  
  30. // #include <avr/pgmspace.h>
  31. // #include <avr/io.h>
  32. // #include <avr/interrupt.h>
  33.  
  34. //#include "binary.h"
  35.  
  36. #ifdef __cplusplus
  37. extern "C"{
  38. #endif
  39.  
  40. void yield(void);
  41.  
  42. #define HIGH 0x1
  43. #define LOW  0x0
  44.  
  45. #define PI 3.1415926535897932384626433832795
  46. #define HALF_PI 1.5707963267948966192313216916398
  47. #define TWO_PI 6.283185307179586476925286766559
  48. #define DEG_TO_RAD 0.017453292519943295769236907684886
  49. #define RAD_TO_DEG 57.295779513082320876798154814105
  50. #define EULER 2.718281828459045235360287471352
  51.  
  52. #define SERIAL  0x0
  53. #define DISPLAY 0x1
  54.  
  55. #define LSBFIRST 0
  56. #define MSBFIRST 1
  57.  
  58. #define CHANGE 1
  59. #define FALLING 2
  60. #define RISING 3
  61.  
  62.  
  63. #define min(a,b) ((a)<(b)?(a):(b))
  64. #define max(a,b) ((a)>(b)?(a):(b))
  65. #define abs(x) ((x)>0?(x):-(x))
  66. #define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
  67. #define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
  68. #define radians(deg) ((deg)*DEG_TO_RAD)
  69. #define degrees(rad) ((rad)*RAD_TO_DEG)
  70. #define sq(x) ((x)*(x))
  71.  
  72. #define interrupts() __enable_irq()
  73. #define noInterrupts() __disable_irq()
  74.  
  75. #define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
  76. #define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() )
  77. #define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() )
  78.  
  79. #define lowByte(w) ((uint8_t) ((w) & 0xff))
  80. #define highByte(w) ((uint8_t) ((w) >> 8))
  81.  
  82. #define bitRead(value, bit) (((value) >> (bit)) & 0x01)
  83. #define bitSet(value, bit) ((value) |= (1UL << (bit)))
  84. #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
  85. #define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
  86.  
  87. // avr-libc defines _NOP() since 1.6.2
  88. #ifndef _NOP
  89. #define _NOP() do { __asm__ volatile ("nop"); } while (0)
  90. #endif
  91.  
  92. typedef unsigned int word;
  93.  
  94. #define bit(b) (1UL << (b))
  95.  
  96. typedef bool boolean;
  97. typedef uint8_t byte;
  98.  
  99. void init(void);
  100. void initVariant(void);
  101.  
  102. int atexit(void (*func)()) __attribute__((weak));
  103.  
  104. void pinMode(uint8_t, uint8_t);
  105. //void digitalWrite(uint8_t, uint8_t);
  106. //int digitalRead(uint8_t);
  107. int analogRead(uint8_t);
  108. void analogReadResolution(int resolution);
  109. void analogReference(uint8_t mode);
  110. void analogWrite(uint8_t, int);
  111. void analogWriteResolution(int bits);
  112.  
  113. //STM32GENERIC only:
  114. void pwmWrite(uint8_t pin, int dutyCycle16Bits, int frequency, int durationMillis);
  115.  
  116. //unsigned long millis(void);
  117. //unsigned long micros(void);
  118. //void delay(unsigned long);
  119. //void delayMicroseconds(uint32_t us);
  120. unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout);
  121. unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout);
  122.  
  123. void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
  124. uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder);
  125.  
  126. void attachInterrupt(uint8_t, void (*)(void), int mode);
  127. void detachInterrupt(uint8_t);
  128.  
  129. void setup(void);
  130. void loop(void);
  131.  
  132. // Get the bit location within the hardware port of the given virtual pin.
  133. // This comes from the pins_*.c file for the active board configuration.
  134.  
  135. #define analogInPinToBit(P) (P)
  136.  
  137. #define digitalPinToPort(P) ( variant_pin_list[P].port )
  138. #define digitalPinToBitMask(P) ( variant_pin_list[P].pin_mask )
  139. #define portOutputRegister(P) ( &(P->ODR) )
  140. #define portInputRegister(P) ( &(P->IDR) )
  141.  
  142. // #define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
  143. // #define analogInPinToBit(P) (P)
  144. // #define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_input_PGM + (P))) )
  145. // #define portModeRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_mode_PGM + (P))) )
  146.  
  147. #define NOT_A_PIN 0
  148. #define NOT_A_PORT 0
  149.  
  150. #define NOT_AN_INTERRUPT -1
  151.  
  152. #ifdef __cplusplus
  153. } // extern "C"
  154. #endif
  155.  
  156. #ifdef __cplusplus
  157. //#include "WCharacter.h"
  158. //#include "WString.h"
  159. //#include "HardwareSerial.h"
  160. //#include "USBAPI.h"
  161. #if defined(HAVE_HWSERIAL0) && defined(HAVE_CDCSERIAL)
  162. #error "Targets with both UART0 and CDC serial not supported"
  163. #endif
  164.  
  165. uint16_t makeWord(uint16_t w);
  166. uint16_t makeWord(byte h, byte l);
  167.  
  168. #define word(...) makeWord(__VA_ARGS__)
  169.  
  170. unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
  171. unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
  172.  
  173. extern "C" void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
  174. void noTone(uint8_t _pin);
  175.  
  176. // WMath prototypes
  177. long random(long);
  178. long random(long, long);
  179. void randomSeed(unsigned long);
  180. long map(long, long, long, long, long);
  181.  
  182. #endif
  183.  
  184. #include "stm32_def.h"
  185. #include "stm32_clock.h"
  186. #include "stm32_gpio.h"
  187. #include "stm32_debug.h"
  188.  
  189. #ifdef __cplusplus
  190.  
  191. #include "SerialUART.h"
  192. #include <SerialUSB.h>
  193. #include <STM32System.h>
  194.  
  195. #if defined(MENU_SERIAL)
  196. #define Serial MENU_SERIAL
  197. #elif defined(MENU_SERIAL_AUTO)
  198. #define Serial MENU_SERIAL_AUTO
  199. #endif
  200.  
  201. #endif
  202.  
  203.  
  204. #endif