source: diffs/qpdfview_0.4.6_GA.diff@ 156

Last change on this file since 156 was 150, checked in by Silvan Scherrer, 12 years ago

changed some qt diff's

File size: 20.4 KB
  • E:\trees\qpdfview\trunk

    diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/build_os2.cmd E:\trees\qpdfview\trunk/build_os2.cmd
    old new  
     1/* qpdfview Build Script */
     2/* version history */
     3/* version 0.1.0 from 25.03.2013 Silvan (first edition) */
     4/* version 0.1.1 from 25.04.2013 Silvan (new poppler lib) */
     5/* version 0.1.2 from 29.05.2013 Silvan (application version from qpdfview.pri) */
     6/* version 0.1.3 from 17.06.2013 Silvan (added .ps support) */
     7/* version 0.1.4 from 08.08.2013 Silvan (new poppler lib) */
     8/* version 0.1.5 from 20.08.2013 Silvan (added diff option) */
     9/* version 0.1.6 from 15.10.2013 Silvan (copy all help*.html) */
     10/* version 0.2.0 from 16.10.2013 Silvan (get some info form qpdfview_os2.pri) */
     11
     12/* init the version string (don't forget to change) */
     13version = "0.2.0"
     14version_date = "16.10.2013"
     15'@echo off'
     16
     17parse arg command option
     18parse source . . scriptFile
     19
     20/* init the required vars */
     21qRC = 0
     22mRC = 0
     23buildDir    = strip(directory(),'T','\') /* Make sure we have no trailing backslash */
     24sourceDir = FixDir(filespec('D', scriptFile) || filespec('P', scriptFile))
     25vendorDir  = sourceDir || '\..\vendor\current'
     26diffDir    = sourceDir || '\..\'
     27srcDir     = sourceDir
     28OS2Dir     = sourceDir
     29installDir = buildDir || '\install'
     30installDirT= installDir || '\data'
     31qErrorFile = buildDir||'\qmake.err'
     32qOutFile   = buildDir||'\qmake.out'
     33mErrorFile = buildDir||'\make.err'
     34mOutFile   = buildDir||'\make.out'
     35
     36/* get the Qpdfview version */
     37Qpdfview_version = '0.0.0'
     38Qpdfview_build = ' '
     39call version
     40internal_build = translate(Qpdfview_version, '_', '.')
     41
     42/* get some info from qpdfview_os2.pri */
     43popplerDir = ' '
     44psDir = ' '
     45djvuDir = ' '
     46tiffDir = ' '
     47call getpri
     48
     49title = "Qpdfview for eCS (OS/2) build script v" || version || " from " || version_date
     50say title
     51say
     52say "Build directory   :" buildDir
     53say "Source directory  :" sourceDir
     54say
     55say "Qpdfview version  :" Qpdfview_version
     56say "         build    :" Qpdfview_build
     57say
     58say "Using poppler from:" popplerDir
     59say "      djvu from   :" djvuDir
     60say "      ps from     :" psDir
     61say "      tiff from   :" tiffDir
     62say
     63
     64/* translate command to all upercase */
     65command = translate(command)
     66
     67if command = "" then signal help
     68
     69
     70if command = "INSTALL" then do
     71    if option \== "" then do
     72        Qpdfview_build = option
     73    end
     74    select
     75        when Qpdfview_build \== "" then do
     76          zipFile = installDir || '\qpdfview-' || internal_build || '-' || Qpdfview_build || '.zip'
     77        end
     78        otherwise do
     79          signal help
     80        end
     81    end
     82end
     83
     84/* now we translate also the option */
     85option = translate(option)
     86
     87if sourceDir \== buildDir then do
     88    say "Shadow build in progress ..."
     89    say
     90end
     91
     92say "Executing command: "command option
     93
     94select
     95    when command = "MAKE" & option = "CLEAN" then do
     96
     97        say "cleaning the tree"
     98        call make 'distclean'
     99
     100        say "please execute this script again with 'make' to build Qpdfview"
     101
     102    end
     103    when command = "MAKE" then do
     104
     105        say "creating Qpdfview makefile"
     106        call qmake
     107
     108        if qRC = 0 then do
     109            say "building Qpdfview"
     110            if option = "" then do
     111                call make
     112            end
     113            else do
     114                call make 'debug'
     115            end
     116        end
     117
     118    end
     119
     120    when command = "INSTALL" then do
     121
     122/* first delete everything */
     123        call deleteall
     124
     125/* create the installDir,and the translation subdir */
     126        ok = SysMkDir(installDir)
     127        ok = SysMkDir(installDirT)
     128
     129/* copy the exe */
     130        ok = SysCopyObject(buildDir||'\Qpdfview.exe',installDir)
     131
     132/* copy all dll */
     133        ok = SysFileTree(buildDir||'\*.dll', rm.,'FOS')
     134        do i = 1 to rm.0
     135          ok = SysCopyObject(rm.i, installDir)
     136        end
     137
     138/* copy the readme */
     139        rm.0 = 1
     140        rm.1 = 'install.os2'
     141        do i = 1 to rm.0
     142        cmdtorun = 'sed "s;_VERSION_;' || Qpdfview_version || ';g" ' || os2Dir || '\' || rm.i || ' | sed "s;_BUILD_;' || Qpdfview_build || ';g" >' || installDir || '\' || rm.i
     143        address cmd cmdtorun
     144        end
     145
     146/* copy different stuff */
     147        rm.0 = 5
     148        rm.1 = 'CHANGES'
     149        frmDir.1 = os2Dir
     150        toDir.1 = installDir
     151        rm.2 = 'help*.html'
     152        frmDir.2 = os2Dir || '\miscellaneous'
     153        toDir.2 = installDirT
     154        rm.3 = '*.dll'
     155        frmDir.3 = popplerDir || '\poppler\.libs'
     156        toDir.3 = installDir
     157        rm.4 = '*.dll'
     158        frmDir.4 = popplerDir || '\qt4\src\.libs'
     159        toDir.4 = installDir
     160        rm.5 = '*.dll'
     161        frmDir.5 = tiffDir || '\libtiff\.libs'
     162        toDir.5 = installDir
     163        do i = 1 to rm.0
     164        cmdtorun = 'copy ' || frmDir.i || '\' || rm.i || ' ' || toDir.i
     165        address cmd cmdtorun
     166        end
     167
     168/* create the qm files from ts files */
     169        ok = SysFileTree(srcDir||'\translations\*.ts', rm.,'FO')
     170        do i = 1 to rm.0
     171            fileName = filespec('N',rm.i)
     172            fileName = left(fileName,lastpos('.', fileName)-1) || '.qm'
     173            cmdtorun = 'lrelease ' || rm.i || ' -qm ' || installDirT || '\' || fileName
     174            address cmd cmdtorun
     175        end
     176
     177/* zip all dynamic stuff */
     178        ok = directory(installDir)
     179        cmdtorun = 'zip -r ' || zipFile || ' * -x *.zip'
     180        address cmd cmdtorun
     181        ok = directory(buildDir)
     182
     183/* zip all icons */
     184
     185    end
     186
     187    when command = "UNINSTALL" then do
     188
     189        call deleteall
     190       
     191    end
     192
     193    when command = "DIFF" then do
     194
     195        address cmd 'diff -Naur ' || vendorDir || ' ' || sourceDir || ' -x qpdfview.desktop >' || diffDir || 'qpdfview_' || Qpdfview_version || '_' || Qpdfview_build || '.diff'
     196       
     197    end
     198
     199    otherwise do
     200        say 'Unknown parameter "'command'" - aborting...'
     201        exit 1
     202    end
     203end
     204
     205/* cleanup the mess */
     206error:
     207
     208if qRC = 0 & mRC = 0 then do
     209    ok = SysFileDelete(mOutFile)
     210    ok = SysFileDelete(mErrorFile)
     211    ok = SysFileDelete(qOutFile)
     212    ok = SysFileDelete(qErrorFile)
     213end
     214else do
     215    if mRC <> 0 then do
     216        say "Alarm! Make errors occured! Look at "mOutFile" and "mErrorFile
     217    end
     218    if qRC <> 0 then do
     219        say "Alarm! qMake errors occured! Look at "qOutFile" and "qErrorFile
     220    end
     221end
     222
     223exit 0
     224
     225qmake:
     226    sourceFile = sourceDir || '/qpdfview.pro'
     227    address cmd 'qmake "CONFIG+=without_pkgconfig" "CONFIG+=without_dbus" "CONFIG+=without_magic" ' sourceFile ' 2>'qErrorFile' 1>'qOutFile
     228
     229    qRC = RC
     230    if qRC <> 0 then do
     231        call beep 880, 20
     232        say "Alarm! qmake RC="RC
     233    end
     234return
     235
     236make:
     237    makeparm = arg(1)
     238    address cmd 'make 'makeparm' 2>'mErrorFile' 1>'mOutFile
     239    mRC = RC
     240    if mRC <> 0 then do
     241        call beep 880, 20
     242        say "Alarm! make RC="RC
     243    end
     244return
     245
     246
     247deleteall: /* delete installDir (including subdirs) except zip files */
     248
     249    say "Delete all files except *zip in " installDir
     250    ok = SysFileTree(installDir||'\*', rm.,'FOS')
     251    do i = 1 to rm.0
     252       if translate(right(rm.i, 3)) \== 'ZIP' then do
     253          ok = SysFileDelete(rm.i)
     254       end
     255    end
     256
     257    say "Delete zip file " zipFile
     258    ok = SysFileDelete(zipFile)
     259
     260    say "Removing subdirs from " || installDir
     261    ok = SysFileTree(installDir||'\*', rm.,'OS')
     262    do i = 1 to rm.0
     263       ok = SysRmDir(rm.i)
     264    end
     265
     266    call SysSleep(5)
     267return
     268
     269/**
     270 *  Fixes the directory path by a) converting all slashes to back
     271 *  slashes and b) ensuring that the trailing slash is present if
     272 *  the directory is the root directory, and absent otherwise.
     273 *
     274 *  @param dir      the directory path
     275 *  @param noslash
     276 *      optional argument. If 1, the path returned will not have a
     277 *      trailing slash anyway. Useful for concatenating it with a
     278 *      file name.
     279 */
     280FixDir: procedure expose (Globals)
     281    parse arg dir, noslash
     282    noslash = (noslash = 1)
     283    dir = translate(dir, '\', '/')
     284    if (right(dir, 1) == '\' &,
     285        (noslash | \(length(dir) == 3 & (substr(dir, 2, 1) == ':')))) then
     286        dir = substr(dir, 1, length(dir) - 1)
     287    return dir
     288
     289/**
     290 *  reads the version.cpp and gets the Qpdfview version from there
     291 */
     292version: procedure expose Qpdfview_version Qpdfview_build srcDir
     293
     294    QpdfviewVer = ' '
     295    /* Qpdfview Version file */
     296    Version = srcDir || "\qpdfview.pri"
     297
     298    do until lines(Version) = 0
     299        verline = linein(Version)
     300        if substr(Verline,30,19) = "APPLICATION_VERSION" then do
     301            parse var verline . ' '. ' ' QpdfviewVer
     302        end
     303    end
     304
     305    ok = stream(Version,'c','close')
     306    if QpdfviewVer \== ' ' then do
     307        QpdfviewVer = strip(QpdfviewVer,,'"')
     308        parse var QpdfviewVer ver '.' maj '.' min '.' Qpdfview_build
     309        Qpdfview_version = ver || '.'|| maj || '.' || min
     310    end
     311
     312    if Qpdfview_build == '' then do
     313        Qpdfview_build = 'GA'
     314    end
     315
     316    return
     317
     318/**
     319 *  reads the qpdfview_os2.pri and some values from there
     320 */
     321getpri: procedure expose popplerDir djvuDir psDir tiffDir srcDir
     322
     323    /* Qpdfview_os2.pri file */
     324    priFile = srcDir || "\qpdfview_os2.pri"
     325
     326    do until lines(priFile) = 0
     327        verline = linein(priFile)
     328        verline = strip(verline,,' ')
     329        if substr(Verline,1,8) = "PDF_ROOT" then do
     330            parse var verline . ' '. ' ' popplerDir
     331        end
     332        if substr(Verline,1,9) = "DJVU_ROOT" then do
     333            parse var verline . ' '. ' ' djvuDir
     334        end
     335        if substr(Verline,1,7) = "PS_ROOT" then do
     336            parse var verline . ' '. ' ' psDir
     337        end
     338        if substr(Verline,1,9) = "TIFF_ROOT" then do
     339            parse var verline . ' '. ' ' tiffDir
     340        end
     341    end
     342
     343    ok = stream(priFile,'c','close')
     344    popplerDir = FixDir(popplerDir)
     345    djvuDir = FixDir(djvuDir)
     346    psDir = FixDir(psDir)
     347    tiffDir = FixDir(tiffDir)
     348    return
     349
     350help:
     351    say "Parameters:"
     352    say "    make"
     353    say "    make debug"
     354    say "    make clean"
     355    say "    install build (build overwrites what this script finds)"
     356    say "    uninstall"
     357    say "    diff (creates a diff from vendor to trunk)"
     358exit 255
  • E:\trees\qpdfview\trunk

    diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/install.os2 E:\trees\qpdfview\trunk/install.os2
    old new  
     1Qpdfview _VERSION_ _BUILD_ installation
     2
     3
     40. CONTENTS OF THIS FILE
     5========================
     6
     71. INTRODUCTION
     8
     92. REQUIREMENTS
     10
     113. INSTALLATION
     12
     134. BUGREPORTS
     14
     155. CREDITS
     16
     176. SUPPORT AND DONATIONS
     18
     197. HISTORY
     20
     21
     221. INTRODUCTION
     23===============
     24
     25Welcome to Qpdfview _VERSION_ _BUILD_ port for OS/2 and eComStation.
     26
     27
     282. REQUIREMENTS
     29===============
     30
     31The following requirements need to be installed.
     32
     33
     342.1 kLIBC, GCC4Core, Qt4, Zlib, cups
     35------------------------------------
     36
     37The installation of these products can be done either by RPM or ZIP files.
     38
     392.1.a RPM installation
     40----------------------
     41
     42kLIBC
     43-----
     44
     45  1. yum install libc
     46
     47GCC4Core
     48--------
     49
     50  1. yum install libgcc4*
     51  2. yum install gcc-stack-protector
     52  3. yum install gcc-stdc++-shared-library
     53  4. yum install gcc-supc++-shared-library
     54
     55Qt4 dll
     56-------
     57
     58  1. yum install libqt4
     59  2. Install the xsystray plugin as noted in the readme.os2 and also in
     60     readme.xsystray
     61
     62Zlib
     63----
     64
     65  1. yum install zlib
     66
     67Jpeg
     68----
     69
     70  1. yum install libjpeg
     71
     72djvulibre
     73---------
     74
     75  not available as a rpm at this time of writing
     76
     77cups
     78----
     79
     80  not available as a rpm at this time of writing
     81
     82freetype/fontconfig
     83-------------------
     84
     85  not available as a rpm at this time of writing
     86
     87ghstscript
     88----------
     89
     90  not available as a rpm at this time of writing
     91
     92pthread
     93-------
     94
     95  1. yum install pthread
     96
     97
     982.1.b ZIP Installation
     99----------------------
     100
     101kLIBC
     102-----
     103
     104  1. Download kLIBC 0.6.5 or better (see http://svn.netlabs.org/libc for more
     105     information)
     106  2. Install the files to your libpath eg x:\ecs\dll
     107
     108GCC4Core
     109--------
     110
     111  1. Download GCC4Core 1.2.1 or better from http://ftp.netlabs.org/pub/gcc
     112  2. Install the files to your libpath eg. x:\ecs\dll
     113
     114Qt4 dll
     115-------
     116
     117  1. Download Qt4 4.7.3 or better (see http://svn.netlabs.org/qt4 for more
     118     information)
     119  2. Install the files according to the readme
     120  3. Install the xsystray plugin as noted in the readme.os2 and also in
     121     readme.xsystray
     122
     123Zlib
     124----
     125
     126  1. Download zlib from http://rpm.netlabs.org/release/00/zip
     127  2. Unpack and install z.dll to your libpath eg. x:\ecs\dll
     128
     129Jpeg
     130----
     131
     132  1. Download jpeg from http://rpm.netlabs.org/release/00/zip
     133  2. Unpack and install jpeg.dll to your libpath eg. x:\ecs\dll
     134
     135djvulibre
     136---------
     137
     138  1. Download djvulibre from ftp://ftp.netlabs.org/pub/unixos2/djvulibre-3_5_25.zip
     139  2. Unpack and install djvu.dll to your libpath eg. x:\ecs\dll
     140
     141cups
     142----
     143
     144  1. Go to eCUPS wiki to see how to install eCUPS (http://svn.netlabs.org/ecups)
     145  2. Install eCUPS according to the above wiki
     146
     147freetype/fontconfig
     148-------------------
     149
     150  1. Download MZFNTCFGFT_RUNTIME as zip or wpi from
     151     ftp://ftp.netlabs.org/incoming/mozilla
     152  2. Unpack and install it to your libpath eg. x:\ecs\dll
     153
     154ghostscript
     155-----------
     156
     157  1. Download ghostscript as zip from ftp://ftp.netlabs.org/pub/unixos2/gs871os2.zip
     158  2. Unpack and install the gsdll23.dll to your libpath eg. x:\ecs\dll
     159     (note this ghostscript it right now not compatible with P. Smedley's port)
     160
     161pthread
     162-------
     163
     164  1. Download pthread from http://rpm.netlabs.org/release/00/zip
     165  2. Unpack and install z.dll to your libpath eg. x:\ecs\dll
     166 
     167
     1683. INSTALLATION
     169===============
     170         
     171To install qpdfview, do the following:
     172
     173  1. Create a directory for qpdfview.
     174  2. Extract the qpdfview package to the new directory.
     175  3. Create a WPS object for qdpfview.exe.
     176  4. Start qdpfview
     177  5. Happy using it
     178  6. If you want to use qpdfview from within a browser, you have to copy
     179     popp*.dll and tiff.dll to the libpath eg. x:\ecs\dll
     180
     181If you have tried to open a file and not all requirements have been there at
     182this try, Qt screwed his plugin cache.
     183To overcome that delete %HOME%/.config/Trolltech.ini. It will be created again
     184when a Qt app starts.
     185
     186Optional: to have special fonts working you need poppler-data pack.
     187
     188  - extract the 4 directories from the package found on http://poppler.freedesktop.org
     189    to your %unixroot%/usr/local/share/poppler or to the dir where lucide.exe is installed
     190  - if you also want japanese fonts working, take care that the "Times New Roman WT J" font
     191    is installed. This font is used as a fallback
     192 
     193
     1944. BUGREPORTS
     195=============
     196
     197Please create bugreports at http://svn.netlabs.org/qtapps
     198Only bug reports with a reproducable bug are accepted. :-)
     199
     200
     2015. CREDITS
     202==========
     203
     204The port was done by:
     205
     206Silvan Scherrer aka _diver
     207
     208Thanks go to:
     209
     210  * Dmitriy Kuminov
     211
     212They either helped me when I had some nasty questions or did some testing for
     213me.
     214
     215
     2166. SUPPORT AND DONATIONS
     217========================
     218
     219qpdfview port is based on volunteer work. If you would like to support further
     220development, you can do so in one of the following ways:
     221
     222
     223  * Donate to the Qt4 project: see qt.netlabs.org for more information
     224
     225  * Contribute to the project: Besides actual development, this also includes
     226    maintaining the documentation and the project web site as well as help
     227    for users.
     228
     229
     2307. HISTORY
     231==========
     232
     2332013-10-15
     234
     235  * udated to latest qpdfview 0.4.6 source
     236
     2372013-08-14
     238
     239  * updated to latest qpdfview 0.4.4.99 source
     240  * updated to latest poppler 0.24.0
     241
     2422013-06-17
     243
     244  * added .ps and .eps file support
     245
     2462013-05-27
     247
     248  * updated to latest qpdfview 0.4.3 source
     249
     2502013-05-14
     251
     252  * updated to latest qpdfview 0.4.3 beta source
     253
     2542013-04-25
     255
     256  * updated to latest poppler 0.22.3
     257
     2582013-04-19
     259
     260  * updated to latest qpdfview 0.4.2 beta source
     261
     2622013-03-25
     263
     264  * updated to latest qpdfview 0.4.1 source
     265
     2662013-03-20
     267
     268  * updated to latest qpdfview 0.4.1 beta source
     269
     2702013-02-19
     271
     272  * updated to latest qpdfview 0.4.0 source
     273
     2742013-02-12
     275
     276  * updated to latest qpdfview 0.4.0 beta1 source
     277
     2782013-02-06
     279
     280  * updated to latest qpdfview 0.3.7 source
     281
     2822013-01-14
     283
     284  * updated to latest poppler 0.22.0
     285
     2862012-12-13
     287
     288  * updated to latest qpdfview 0.3.7 beta 1 source
     289
     2902012-11-27
     291
     292  * updated to latest qpdfview source
     293
     2942012-10-29
     295
     296  * created install.os2
     297  * updated qpdfview to contain a icon (thx Herwig)
     298
     2992012-10-24
     300
     301  * first public port
     302
     303
  • E:\trees\qpdfview\trunk

    diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/qpdfview_os2.pri E:\trees\qpdfview\trunk/qpdfview_os2.pri
    old new  
     1# define destdir
     2PLUGIN_DESTDIR = lib
     3
     4# define the djvu part
     5DJVU_ROOT = e:/trees/djvulibre/trunk
     6DJVU_PLUGIN_LIBS += -L$$DJVU_ROOT/libdjvu/.libs
     7DJVU_PLUGIN_LIBS += djvulibre
     8DJVU_PLUGIN_INCLUDEPATH += $$DJVU_ROOT
     9DJVU_PLUGIN = qpdfdjvu
     10DJVU_PLUGIN_NAME = $$DJVU_PLUGIN".dll"
     11
     12# define the poppler part
     13PDF_ROOT = e:/trees/poppler/trunk
     14PDF_PLUGIN_DEFINES += HAS_POPPLER_14 HAS_POPPLER_18 HAS_POPPLER_20 HAS_POPPLER_22 HAS_POPPLER_24
     15PDF_PLUGIN_LIBS += -L$$PDF_ROOT/qt4/src/.libs
     16PDF_PLUGIN_LIBS += popplerqt4
     17PDF_PLUGIN_INCLUDEPATH += $$PDF_ROOT/qt4/src
     18PDF_PLUGIN = qpdfpdf
     19PDF_PLUGIN_NAME = $$PDF_PLUGIN".dll"
     20
     21# define the ps part
     22PS_ROOT = e:/trees/libspectre/trunk
     23PS_PLUGIN_LIBS += -L$$PS_ROOT/libspectre/.libs -Le:/trees/ghostscript/trunk/gs8.71/bin
     24PS_PLUGIN_LIBS += spectre gs
     25PS_PLUGIN_INCLUDEPATH += $$PS_ROOT
     26PS_PLUGIN = qpdfps
     27PS_PLUGIN_NAME = $$PS_PLUGIN".dll"
     28
     29# define the cups part
     30CUPS_LIBS += cups
     31
     32# define the vendor part
     33DEF_FILE_VENDOR = bww bitwise works GmbH
     34DEF_FILE_VERSION = $$APPLICATION_VERSION
     35DEF_FILE_DESCRIPTION = eCS (OS/2) port of qpdfview by Adam Reichold
     36
     37# define tiff, as copied to qpdfview package
     38TIFF_ROOT = e:/trees/libtiff/trunk
  • synctex/synctex_parser_utils.c

    diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.c E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.c
    old new  
    5757#define SYNCTEX_WINDOWS 1
    5858#endif
    5959
     60#if defined(__OS2__)
     61#define SYNCTEX_OS2 1
     62#endif
     63
    6064#ifdef _WIN32_WINNT_WINXP
    6165#define SYNCTEX_RECENT_WINDOWS 1
    6266#endif
     
    121125                                last_component = next+1;
    122126                        }
    123127                }
    124 #       ifdef   SYNCTEX_WINDOWS
     128#       if defined(SYNCTEX_WINDOWS) || defined (SYNCTEX_OS2)
    125129                /*  On Windows, the '\' is also a path separator. */
    126130                while((next = strstr(last_component,"\\"))){
    127131                        last_component = next+1;
     
    207211        if(!strlen(name)) {
    208212                return synctex_NO;
    209213        }
    210 #       if SYNCTEX_WINDOWS
     214#       if defined(SYNCTEX_WINDOWS) || defined(SYNCTEX_OS2)
    211215        if(strlen(name)>2) {
    212216                return (name[1]==':' && SYNCTEX_IS_PATH_SEPARATOR(name[2]))?synctex_YES:synctex_NO;
    213217        }
  • synctex/synctex_parser_utils.h

    diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.h E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.h
    old new  
    6464#define FALSE 0
    6565#define TRUE !FALSE
    6666
    67 #       if _WIN32
     67#       if defined(_WIN32) || defined(__OS2__)
    6868#       define SYNCTEX_CASE_SENSITIVE_PATH FALSE
    6969#               define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c || '\\' == c)
    7070#       else
     
    7272#               define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c)
    7373#       endif
    7474   
    75 #       if _WIN32
     75#       if defined(_WIN32) || defined(__OS2__)
    7676#               define SYNCTEX_IS_DOT(c) ('.' == c)
    7777#       else
    7878#               define SYNCTEX_IS_DOT(c) ('.' == c)
Note: See TracBrowser for help on using the repository browser.