1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

const in map_scanner_string

This commit is contained in:
Kalle Olavi Niemitalo 2008-01-26 17:00:45 +02:00 committed by Kalle Olavi Niemitalo
parent f02e471762
commit 0689443ad2
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,8 @@
int int
map_scanner_string(struct scanner *scanner, map_scanner_string(struct scanner *scanner,
unsigned char *ident, unsigned char *end, int base_type) const unsigned char *ident, const unsigned char *end,
int base_type)
{ {
const struct scanner_string_mapping *mappings = scanner->info->mappings; const struct scanner_string_mapping *mappings = scanner->info->mappings;
int length = end - ident; int length = end - ident;

View File

@ -190,7 +190,8 @@ skip_scanner_tokens(struct scanner *scanner, int skipto, int precedence);
* @relates scanner */ * @relates scanner */
int int
map_scanner_string(struct scanner *scanner, map_scanner_string(struct scanner *scanner,
unsigned char *ident, unsigned char *end, int base_type); const unsigned char *ident, const unsigned char *end,
int base_type);
#ifdef DEBUG_SCANNER #ifdef DEBUG_SCANNER
/** @relates scanner */ /** @relates scanner */