source: diffs/qpdfview_0.4.15_GA.diff@ 186

Last change on this file since 186 was 173, checked in by Silvan Scherrer, 10 years ago

add qpdfview 0.4.14 and 0.4.15 diff

File size: 20.7 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/* version 0.2.1 from 03.12.2013 Silvan (help files now in help dir) */
     12/* version 0.2.2 from 26.09.2014 Silvan (don't copy the tiff.dll) */
     13/* version 0.2.3 from 29.09.2014 Silvan (don't copy the poppler*.dll) */
     14
     15/* init the version string (don't forget to change) */
     16version = "0.2.3"
     17version_date = "29.09.2014"
     18'@echo off'
     19
     20parse arg command option
     21parse source . . scriptFile
     22
     23/* init the required vars */
     24qRC = 0
     25mRC = 0
     26buildDir    = strip(directory(),'T','\') /* Make sure we have no trailing backslash */
     27sourceDir = FixDir(filespec('D', scriptFile) || filespec('P', scriptFile))
     28vendorDir  = sourceDir || '\..\vendor\current'
     29diffDir    = sourceDir || '\..\'
     30srcDir     = sourceDir
     31OS2Dir     = sourceDir
     32installDir = buildDir || '\install'
     33installDirT= installDir || '\data'
     34qErrorFile = buildDir||'\qmake.err'
     35qOutFile   = buildDir||'\qmake.out'
     36mErrorFile = buildDir||'\make.err'
     37mOutFile   = buildDir||'\make.out'
     38
     39/* get the Qpdfview version */
     40Qpdfview_version = '0.0.0'
     41Qpdfview_build = ' '
     42call version
     43internal_build = translate(Qpdfview_version, '_', '.')
     44
     45/* get some info from qpdfview_os2.pri */
     46psDir = ' '
     47djvuDir = ' '
     48call getpri
     49
     50title = "Qpdfview for eCS (OS/2) build script v" || version || " from " || version_date
     51say title
     52say
     53say "Build directory   :" buildDir
     54say "Source directory  :" sourceDir
     55say
     56say "Qpdfview version  :" Qpdfview_version
     57say "         build    :" Qpdfview_build
     58say
     59say "Using non rpm libs:"
     60say "      djvu from   :" djvuDir
     61say "      ps from     :" psDir
     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 = 2
     148        rm.1 = 'CHANGES'
     149        frmDir.1 = os2Dir
     150        toDir.1 = installDir
     151        rm.2 = 'help*.html'
     152        frmDir.2 = os2Dir || '\help'
     153        toDir.2 = installDirT
     154        do i = 1 to rm.0
     155        cmdtorun = 'copy ' || frmDir.i || '\' || rm.i || ' ' || toDir.i
     156        address cmd cmdtorun
     157        end
     158
     159/* create the qm files from ts files */
     160        ok = SysFileTree(srcDir||'\translations\*.ts', rm.,'FO')
     161        do i = 1 to rm.0
     162            fileName = filespec('N',rm.i)
     163            fileName = left(fileName,lastpos('.', fileName)-1) || '.qm'
     164            cmdtorun = 'lrelease ' || rm.i || ' -qm ' || installDirT || '\' || fileName
     165            address cmd cmdtorun
     166        end
     167
     168/* zip all dynamic stuff */
     169        ok = directory(installDir)
     170        cmdtorun = 'zip -r ' || zipFile || ' * -x *.zip'
     171        address cmd cmdtorun
     172        ok = directory(buildDir)
     173
     174/* zip all icons */
     175
     176    end
     177
     178    when command = "UNINSTALL" then do
     179
     180        call deleteall
     181       
     182    end
     183
     184    when command = "DIFF" then do
     185
     186        address cmd 'diff -Naur ' || vendorDir || ' ' || sourceDir || ' -x qpdfview.desktop >' || diffDir || 'qpdfview_' || Qpdfview_version || '_' || Qpdfview_build || '.diff'
     187       
     188    end
     189
     190    otherwise do
     191        say 'Unknown parameter "'command'" - aborting...'
     192        exit 1
     193    end
     194end
     195
     196/* cleanup the mess */
     197error:
     198
     199if qRC = 0 & mRC = 0 then do
     200    ok = SysFileDelete(mOutFile)
     201    ok = SysFileDelete(mErrorFile)
     202    ok = SysFileDelete(qOutFile)
     203    ok = SysFileDelete(qErrorFile)
     204end
     205else do
     206    if mRC <> 0 then do
     207        say "Alarm! Make errors occured! Look at "mOutFile" and "mErrorFile
     208    end
     209    if qRC <> 0 then do
     210        say "Alarm! qMake errors occured! Look at "qOutFile" and "qErrorFile
     211    end
     212end
     213
     214exit 0
     215
     216qmake:
     217    sourceFile = sourceDir || '/qpdfview.pro'
     218    address cmd 'qmake "CONFIG+=without_pkgconfig" "CONFIG+=without_dbus" "CONFIG+=without_magic" ' sourceFile ' 2>'qErrorFile' 1>'qOutFile
     219
     220    qRC = RC
     221    if qRC <> 0 then do
     222        call beep 880, 20
     223        say "Alarm! qmake RC="RC
     224    end
     225return
     226
     227make:
     228    makeparm = arg(1)
     229    address cmd 'make 'makeparm' 2>'mErrorFile' 1>'mOutFile
     230    mRC = RC
     231    if mRC <> 0 then do
     232        call beep 880, 20
     233        say "Alarm! make RC="RC
     234    end
     235return
     236
     237
     238deleteall: /* delete installDir (including subdirs) except zip files */
     239
     240    say "Delete all files except *zip in " installDir
     241    ok = SysFileTree(installDir||'\*', rm.,'FOS')
     242    do i = 1 to rm.0
     243       if translate(right(rm.i, 3)) \== 'ZIP' then do
     244          ok = SysFileDelete(rm.i)
     245       end
     246    end
     247
     248    say "Delete zip file " zipFile
     249    ok = SysFileDelete(zipFile)
     250
     251    say "Removing subdirs from " || installDir
     252    ok = SysFileTree(installDir||'\*', rm.,'OS')
     253    do i = 1 to rm.0
     254       ok = SysRmDir(rm.i)
     255    end
     256
     257    call SysSleep(5)
     258return
     259
     260/**
     261 *  Fixes the directory path by a) converting all slashes to back
     262 *  slashes and b) ensuring that the trailing slash is present if
     263 *  the directory is the root directory, and absent otherwise.
     264 *
     265 *  @param dir      the directory path
     266 *  @param noslash
     267 *      optional argument. If 1, the path returned will not have a
     268 *      trailing slash anyway. Useful for concatenating it with a
     269 *      file name.
     270 */
     271FixDir: procedure expose (Globals)
     272    parse arg dir, noslash
     273    noslash = (noslash = 1)
     274    dir = translate(dir, '\', '/')
     275    if (right(dir, 1) == '\' &,
     276        (noslash | \(length(dir) == 3 & (substr(dir, 2, 1) == ':')))) then
     277        dir = substr(dir, 1, length(dir) - 1)
     278    return dir
     279
     280/**
     281 *  reads the version.cpp and gets the Qpdfview version from there
     282 */
     283version: procedure expose Qpdfview_version Qpdfview_build srcDir
     284
     285    QpdfviewVer = ' '
     286    /* Qpdfview Version file */
     287    Version = srcDir || "\qpdfview.pri"
     288
     289    do until lines(Version) = 0
     290        verline = linein(Version)
     291        if substr(Verline,30,19) = "APPLICATION_VERSION" then do
     292            parse var verline . ' '. ' ' QpdfviewVer
     293        end
     294    end
     295
     296    ok = stream(Version,'c','close')
     297    if QpdfviewVer \== ' ' then do
     298        QpdfviewVer = strip(QpdfviewVer,,'"')
     299        parse var QpdfviewVer ver '.' maj '.' min '.' Qpdfview_build
     300        Qpdfview_version = ver || '.'|| maj || '.' || min
     301    end
     302
     303    if Qpdfview_build == '' then do
     304        Qpdfview_build = 'GA'
     305    end
     306
     307    return
     308
     309/**
     310 *  reads the qpdfview_os2.pri and some values from there
     311 */
     312getpri: procedure expose djvuDir psDir srcDir
     313
     314    /* Qpdfview_os2.pri file */
     315    priFile = srcDir || "\qpdfview_os2.pri"
     316
     317    do until lines(priFile) = 0
     318        verline = linein(priFile)
     319        verline = strip(verline,,' ')
     320        if substr(Verline,1,9) = "DJVU_ROOT" then do
     321            parse var verline . ' '. ' ' djvuDir
     322        end
     323        if substr(Verline,1,7) = "PS_ROOT" then do
     324            parse var verline . ' '. ' ' psDir
     325        end
     326    end
     327
     328    ok = stream(priFile,'c','close')
     329    djvuDir = FixDir(djvuDir)
     330    psDir = FixDir(psDir)
     331    return
     332
     333help:
     334    say "Parameters:"
     335    say "    make"
     336    say "    make debug"
     337    say "    make clean"
     338    say "    install build (build overwrites what this script finds)"
     339    say "    uninstall"
     340    say "    diff (creates a diff from vendor to trunk)"
     341exit 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----------------------
     41If some packets are already installed, please see if updates for those are
     42available with "yum update xyz". Where xyz is the package name.
     43
     44kLIBC
     45-----
     46
     47  1. yum install libc
     48
     49GCC4Core
     50--------
     51
     52  1. yum install libgcc1 libgcc-fwd
     53  2. yum install libssp
     54  3. yum install libstdc++ libstdc++6
     55  4. yum install libsupc++ libsupc++6
     56
     57Qt4 dll
     58-------
     59
     60  1. yum install libqt4
     61
     62Zlib
     63----
     64
     65  1. yum install zlib
     66
     67Jpeg, Tiff, Png
     68---------------
     69
     70  1. yum install libjpeg libtiff libpng
     71
     72poppler
     73-------
     74
     75  1. yum install poppler-qt
     76
     77djvulibre
     78---------
     79
     80  not available as a rpm at this time of writing (use the zip install instruction below)
     81
     82cups
     83----
     84
     85  not available as a rpm at this time of writing (use the zip install instruction below)
     86
     87freetype/fontconfig
     88-------------------
     89
     90  yum install freetype fontconfig
     91
     92ghostscript
     93-----------
     94
     95  not available as a rpm at this time of writing (use the zip install instruction below)
     96
     97pthread
     98-------
     99
     100  1. yum install pthread
     101
     102poppler-data
     103------------
     104(already installed by the poppler rpm)
     105
     106
     1072.1.b ZIP Installation
     108----------------------
     109
     110kLIBC
     111-----
     112
     113  1. Download kLIBC 0.6.6 or better (see http://svn.netlabs.org/libc for more
     114     information)
     115  2. Install the files to your libpath eg x:\ecs\dll
     116
     117GCC4Core
     118--------
     119
     120  1. Download GCC4Core 1.3.0 or better from ftp://ftp.netlabs.org/pub/gcc
     121  2. Install the files to your libpath eg. x:\ecs\dll
     122
     123Qt4 dll
     124-------
     125
     126  1. Download Qt4 4.7.3 or better (see http://svn.netlabs.org/qt4 for more
     127     information)
     128  2. Install the files according to the readme
     129
     130Zlib
     131----
     132
     133  1. Download zlib from http://rpm.netlabs.org/release/00/zip
     134  2. Unpack and install z.dll to your libpath eg. x:\ecs\dll
     135
     136Jpeg, Tiff, Png
     137---------------
     138
     139  1. Download libjpeg, libtiff and libpng from http://rpm.netlabs.org/release/00/zip
     140  2. Unpack and install the dll to your libpath eg. x:\ecs\dll
     141
     142poppler
     143-------
     144
     145  1. Download poppler and poppler-qt from http://rpm.netlabs.org/release/00/zip
     146  2. Unpack and install the dll to your libpath eg. x:\ecs\dll
     147
     148djvulibre
     149---------
     150
     151  1. Download djvulibre from ftp://ftp.netlabs.org/pub/unixos2/djvulibre-3_5_25.zip
     152  2. Unpack and install djvu.dll to your libpath eg. x:\ecs\dll
     153
     154cups
     155----
     156
     157  1. Go to eCUPS wiki to see how to install eCUPS (http://svn.netlabs.org/ecups)
     158  2. Install eCUPS according to the above wiki
     159
     160freetype/fontconfig
     161-------------------
     162
     163  1. Download freetype and fontconfig from http://rpm.netlabs.org/release/00/zip
     164  2. Unpack and install freetyp6.dll and fntcfg2.dll to your libpath eg. x:\ecs\dll
     165
     166ghostscript
     167-----------
     168
     169  1. Download ghostscript as zip from ftp://ftp.netlabs.org/pub/unixos2/gs910os2.zip
     170  2. Unpack and install the gsdll2.dll to your libpath eg. x:\ecs\dll
     171     (note this ghostscript should be compatible with P. Smedley's 9.10 port, but his ports lack
     172     some features needed for qpdfview)
     173
     174pthread
     175-------
     176
     177  1. Download pthread from http://rpm.netlabs.org/release/00/zip
     178  2. Unpack and install pthr01.dll to your libpath eg. x:\ecs\dll
     179 
     180
     181poppler-data
     182------------
     183Optional: to have special fonts working you need poppler-data pack.
     184
     185  1. extract the 4 directories from the package found on http://poppler.freedesktop.org
     186     to your %unixroot%/usr/share/poppler or to the dir where qpdfview.exe is installed
     187
     188
     1893. INSTALLATION
     190===============
     191         
     192To install qpdfview, do the following:
     193
     194  1. Create a directory for qpdfview.
     195  2. Extract the qpdfview package to the new directory.
     196  3. Create a WPS object for qdpfview.exe.
     197  4. Start qdpfview
     198  5. Happy using it
     199
     200If you also want japanese fonts working, take care that the "Times New Roman WT J"
     201font is installed. This font is used as a fallback in poppler.
     202
     203If you have tried to open a file and not all requirements have been there at
     204this try, Qt screwed his plugin cache.
     205To overcome that delete %HOME%/.config/Trolltech.ini. It will be created again
     206when a Qt app starts.
     207 
     208
     2094. BUGREPORTS
     210=============
     211
     212Please create bugreports at http://svn.netlabs.org/qtapps
     213Only bug reports with a reproducable bug are accepted. :-)
     214
     215
     2165. CREDITS
     217==========
     218
     219The port was done by:
     220
     221Silvan Scherrer aka _diver
     222
     223Thanks go to:
     224
     225  * Dmitriy Kuminov
     226
     227They either helped me when I had some nasty questions or did some testing for
     228me.
     229
     230
     2316. SUPPORT AND DONATIONS
     232========================
     233
     234qpdfview port is based on volunteer work. If you would like to support further
     235development, you can do so in one of the following ways:
     236
     237
     238  * Donate to the Qt4 project: see qt.netlabs.org for more information
     239
     240  * Contribute to the project: Besides actual development, this also includes
     241    maintaining the documentation and the project web site as well as help
     242    for users.
     243
     244
     2457. HISTORY
     246==========
     247
     2482015-06-11
     249  * updated to latest qpdfview 0.4.15 source
     250
     2512015-03-09
     252  * updated install.os2 (rephrased the installation instructions)
     253
     2542015-02-24
     255  * updated to latest qpdfview 0.4.14 source
     256
     2572014-12-16
     258  * updated to latest qpdfview 0.4.13 source
     259  * updated install.os2 (poppler-data as rpm available)
     260
     2612014-10-10
     262  * updated install.os2 (some more dll as rpm available)
     263  * updated to latest qpdfview 0.4.12 source
     264
     2652014-05-15
     266  * updated to latest qpdfview 0.4.10 source
     267
     2682014-04-30
     269  * updated to latest poppler 0.26.0
     270
     2712014-04-02
     272  * updated to latest qpdfview 0.4.9 source
     273
     2742014-02-18
     275  * updated to latest qpdfview 0.4.8 source
     276
     2772013-12-03
     278  * updated to latest qpdfview 0.4.7 source
     279
     2802013-11-29
     281  * updated to latest poppler 0.24.4
     282
     2832013-10-15
     284  * updated to latest qpdfview 0.4.6 source
     285
     2862013-08-14
     287  * updated to latest qpdfview 0.4.4.99 source
     288  * updated to latest poppler 0.24.0
     289
     2902013-06-17
     291  * added .ps and .eps file support
     292
     2932013-05-27
     294  * updated to latest qpdfview 0.4.3 source
     295
     2962013-05-14
     297  * updated to latest qpdfview 0.4.3 beta source
     298
     2992013-04-25
     300  * updated to latest poppler 0.22.3
     301
     3022013-04-19
     303  * updated to latest qpdfview 0.4.2 beta source
     304
     3052013-03-25
     306  * updated to latest qpdfview 0.4.1 source
     307
     3082013-03-20
     309  * updated to latest qpdfview 0.4.1 beta source
     310
     3112013-02-19
     312  * updated to latest qpdfview 0.4.0 source
     313
     3142013-02-12
     315  * updated to latest qpdfview 0.4.0 beta1 source
     316
     3172013-02-06
     318  * updated to latest qpdfview 0.3.7 source
     319
     3202013-01-14
     321  * updated to latest poppler 0.22.0
     322
     3232012-12-13
     324  * updated to latest qpdfview 0.3.7 beta 1 source
     325
     3262012-11-27
     327  * updated to latest qpdfview source
     328
     3292012-10-29
     330  * created install.os2
     331  * updated qpdfview to contain a icon (thx Herwig)
     332
     3332012-10-24
     334  * first public port
  • 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"
     11DJVULIBRE_VERSION=3.5.25
     12
     13# define the poppler part
     14PDF_ROOT = e:/trees/poppler/trunk
     15PDF_PLUGIN_DEFINES += HAS_POPPLER_14 HAS_POPPLER_18 HAS_POPPLER_20 HAS_POPPLER_22 HAS_POPPLER_24 HAS_POPPLER_26 HAS_POPPLER_31
     16PDF_PLUGIN_LIBS += -L$$PDF_ROOT/qt4/src/.libs
     17PDF_PLUGIN_LIBS += poppler-qt4
     18PDF_PLUGIN_INCLUDEPATH += $$PDF_ROOT/qt4/src
     19PDF_PLUGIN = qpdfpdf
     20PDF_PLUGIN_NAME = $$PDF_PLUGIN".dll"
     21POPPLER_VERSION=0.33.0
     22
     23# define the ps part
     24PS_ROOT = e:/trees/libspectre/trunk
     25PS_PLUGIN_LIBS += -L$$PS_ROOT/libspectre/.libs -Le:/trees/ghostscript/trunk/obj
     26PS_PLUGIN_LIBS += spectre.a gs
     27PS_PLUGIN_INCLUDEPATH += $$PS_ROOT
     28PS_PLUGIN = qpdfps
     29PS_PLUGIN_NAME = $$PS_PLUGIN".dll"
     30LIBSPECTRE_VERSION=0.2.7
     31
     32# define the cups part
     33CUPS_LIBS += cups
     34CUPS_VERSION=1.4.8
     35
     36# define the vendor part
     37DEF_FILE_VENDOR = bww bitwise works GmbH
     38DEF_FILE_VERSION = $$APPLICATION_VERSION
     39DEF_FILE_DESCRIPTION = eCS (OS/2) port of qpdfview by Adam Reichold
  • 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.