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

DRRIP - Stikked
From YFCheng, 11 Years ago, written in C.
Embed
  1. case DRRIP:
  2.         {
  3. DRRIP_step_1:                  
  4.                 for(repl = cp->sets[set].way_head; repl != NULL; repl = repl->way_next)
  5.                 {
  6.                         if(repl->RRPV == RRPV_MAX)
  7.                                 break;
  8.                                
  9.                         if(repl == NULL)
  10.                         {
  11.                                 for(repl = cp->sets[set].way_head; repl != NULL; repl = repl->way_next)
  12.                                         repl->RRPV++;
  13.                                
  14.                                 goto DRRIP_step_1;
  15.                         }
  16.                 }
  17.                
  18.                 if(set % (cp->nsets / 32) == 0) /* SRRIP set */
  19.                 {              
  20.                         DRRIP_policy = SRRIP;
  21.                 }
  22.                 else if((set + 1) % (cp->nsets / 32) == 0) /* BRRIP set */
  23.                 {
  24.                         DRRIP_policy = BRRIP;
  25.                 }
  26.                 else /* follower */
  27.                 {
  28.                         if(cp->PSEL <= PSEL_MAX/2)
  29.                                 DRRIP_policy = SRRIP;
  30.                         else
  31.                                 DRRIP_policy = BRRIP;
  32.                 }
  33.                
  34.                 if(DRRIP_policy == SRRIP) /* SRRIP set */
  35.                 {      
  36.                         repl->RRPV = RRPV_MAX - 1;
  37.                         /* check and increment PSEL */
  38.                         if(cp->PSEL+1 <= PSEL_MAX)
  39.                                 cp->PSEL++;
  40.                 }
  41.                 else if(DRRIP_policy == BRRIP) /* BRRIP set */
  42.                 {
  43.                         if(cp->BIPCTR == 0)
  44.                         {
  45.                                 update_way_list(&cp->sets[set], repl, Head);
  46.                                 repl->RRPV = RRPV_MAX-1;
  47.                         }
  48.                         else
  49.                         {
  50.                                 update_way_list(&cp->sets[set], repl, Tail);
  51.                                 repl->RRPV = RRPV_MAX;
  52.                         }
  53.                         /* check and increment PSEL */
  54.                         if(cp->PSEL-1 >= 0)
  55.                                 cp->PSEL--;
  56.                 }
  57.                 /* check and increment BIPCTR (cycling)*/
  58.                 if(cp->BIPCTR == BIPCTR_MAX)
  59.                         cp->BIPCTR = 0;
  60.                 else
  61.                         cp->BIPCTR = cp->BIPCTR + 1;
  62.         }
  63.         break;