const char *
This commit is contained in:
parent
54397987bd
commit
9f8176447b
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
#include "r3.h"
|
#include "r3.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
int slug_count(char * p, int len);
|
int slug_count(const char * p, int len);
|
||||||
|
|
||||||
char * slug_compile(char * str, int len);
|
char * slug_compile(char * str, int len);
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ int r3_pattern_to_opcode(char * pattern, int len) {
|
||||||
/**
|
/**
|
||||||
* provide a quick way to count slugs, simply search for '{'
|
* provide a quick way to count slugs, simply search for '{'
|
||||||
*/
|
*/
|
||||||
int slug_count(char * p, int len) {
|
int slug_count(const char * p, int len) {
|
||||||
int s = 0;
|
int s = 0;
|
||||||
int lev = 0;
|
int lev = 0;
|
||||||
while( len-- ) {
|
while( len-- ) {
|
||||||
|
|
Loading…
Reference in a new issue