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

Code - Stikked
From i1, 5 Years ago, written in C.
Embed
  1. /*
  2.  * Copyright 2014, General Dynamics C4 Systems
  3.  *
  4.  * This software may be distributed and modified according to the terms of
  5.  * the GNU General Public License version 2. Note that NO WARRANTY is provided.
  6.  * See "LICENSE_GPLv2.txt" for details.
  7.  *
  8.  * @TAG(GD_GPL)
  9.  */
  10.  
  11. #include <types.h>
  12. #include <machine/registerset.h>
  13. #include <arch/machine.h>
  14. #include <plat/machine/hardware.h>
  15.  
  16. word_t PURE getRestartPC(tcb_t *thread)
  17. {
  18.     return getRegister(thread, FaultIP);
  19. }
  20.  
  21. void setNextPC(tcb_t *thread, word_t v)
  22. {
  23.     setRegister(thread, NEXT_PC_REG, v);
  24. }
  25.  
  26. BOOT_CODE int get_num_avail_p_regs(void)
  27. {
  28.     return sizeof(avail_p_regs) / sizeof(p_region_t);
  29. }
  30.  
  31. BOOT_CODE int get_num_dev_p_regs(void)
  32. {
  33.     return sizeof(dev_p_regs) / sizeof(p_region_t);
  34. }
  35.  
  36. BOOT_CODE p_region_t get_dev_p_reg(word_t i)
  37. {
  38.     return dev_p_regs[i];
  39. }
  40.  
  41. BOOT_CODE const p_region_t *get_avail_p_regs(void)
  42. {
  43.     return (const p_region_t *) avail_p_regs;
  44. }
  45.  
  46. BOOT_CODE void map_kernel_devices(void)
  47. {
  48.     asm volatile ("b .");
  49.     for (int i = 0; i < ARRAY_SIZE(kernel_devices); i++) {
  50.             asm volatile ("b .");
  51.         map_kernel_frame(kernel_devices[i].paddr,
  52.                          kernel_devices[i].pptr,
  53.                          VMKernelOnly,
  54.                          vm_attributes_new(kernel_devices[i].armExecuteNever,
  55.                                            false, false));
  56.     }
  57. }
  58.  
  59.