mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
local synctex change: make const the name parameter for _synctex_scan_named
add the change as local patch 03-fix-_synctex_scan_named.diff svn path=/trunk/KDE/kdegraphics/okular/; revision=1003093
This commit is contained in:
parent
eb474beeee
commit
5fa6a43122
3 changed files with 25 additions and 2 deletions
|
@ -0,0 +1,22 @@
|
|||
Index: synctex/synctex_parser.c
|
||||
===================================================================
|
||||
--- synctex.orig/synctex_parser.c 2009-07-27 18:34:29.000000000 +0200
|
||||
+++ synctex/synctex_parser.c 2009-07-27 18:37:54.000000000 +0200
|
||||
@@ -1493,7 +1493,7 @@
|
||||
|
||||
typedef synctex_status_t (*synctex_decoder_t)(synctex_scanner_t,void *);
|
||||
|
||||
-synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,char * name,void * value_ref,synctex_decoder_t decoder);
|
||||
+synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,const char * name,void * value_ref,synctex_decoder_t decoder);
|
||||
|
||||
/* Used when parsing the synctex file.
|
||||
* Read one of the settings.
|
||||
@@ -1503,7 +1503,7 @@
|
||||
* On return, the scanner points to the next character after the decoded object whatever it is.
|
||||
* It is the responsibility of the caller to prepare the scanner for the next line.
|
||||
*/
|
||||
-synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,char * name,void * value_ref,synctex_decoder_t decoder) {
|
||||
+synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,const char * name,void * value_ref,synctex_decoder_t decoder) {
|
||||
synctex_status_t status = 0;
|
||||
if(NULL == scanner || NULL == name || NULL == value_ref || NULL == decoder) {
|
||||
return SYNCTEX_STATUS_BAD_ARGUMENT;
|
|
@ -1,2 +1,3 @@
|
|||
01-fix-win32-define.diff
|
||||
02-fix-_synctex_error.diff
|
||||
03-fix-_synctex_scan_named.diff
|
||||
|
|
|
@ -1493,7 +1493,7 @@ synctex_status_t _synctex_scan_input(synctex_scanner_t scanner) {
|
|||
|
||||
typedef synctex_status_t (*synctex_decoder_t)(synctex_scanner_t,void *);
|
||||
|
||||
synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,char * name,void * value_ref,synctex_decoder_t decoder);
|
||||
synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,const char * name,void * value_ref,synctex_decoder_t decoder);
|
||||
|
||||
/* Used when parsing the synctex file.
|
||||
* Read one of the settings.
|
||||
|
@ -1503,7 +1503,7 @@ synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,char * name,void
|
|||
* On return, the scanner points to the next character after the decoded object whatever it is.
|
||||
* It is the responsibility of the caller to prepare the scanner for the next line.
|
||||
*/
|
||||
synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,char * name,void * value_ref,synctex_decoder_t decoder) {
|
||||
synctex_status_t _synctex_scan_named(synctex_scanner_t scanner,const char * name,void * value_ref,synctex_decoder_t decoder) {
|
||||
synctex_status_t status = 0;
|
||||
if(NULL == scanner || NULL == name || NULL == value_ref || NULL == decoder) {
|
||||
return SYNCTEX_STATUS_BAD_ARGUMENT;
|
||||
|
|
Loading…
Reference in a new issue