source: diffs/qpdfview_0.4.10_GA.diff@ 162

Last change on this file since 162 was 162, checked in by Silvan Scherrer, 11 years ago

Qpdfview version 0.4.10

File size: 20.6 KB
  • TabularUnified 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
     13/* init the version string (don't forget to change) */
     14version = "0.2.1"
     15version_date = "03.12.2013"
     16'@echo off'
     17
     18parse arg command option
     19parse source . . scriptFile
     20
     21/* init the required vars */
     22qRC = 0
     23mRC = 0
     24buildDir    = strip(directory(),'T','\') /* Make sure we have no trailing backslash */
     25sourceDir = FixDir(filespec('D', scriptFile) || filespec('P', scriptFile))
     26vendorDir  = sourceDir || '\..\vendor\current'
     27diffDir    = sourceDir || '\..\'
     28srcDir     = sourceDir
     29OS2Dir     = sourceDir
     30installDir = buildDir || '\install'
     31installDirT= installDir || '\data'
     32qErrorFile = buildDir||'\qmake.err'
     33qOutFile   = buildDir||'\qmake.out'
     34mErrorFile = buildDir||'\make.err'
     35mOutFile   = buildDir||'\make.out'
     36
     37/* get the Qpdfview version */
     38Qpdfview_version = '0.0.0'
     39Qpdfview_build = ' '
     40call version
     41internal_build = translate(Qpdfview_version, '_', '.')
     42
     43/* get some info from qpdfview_os2.pri */
     44popplerDir = ' '
     45psDir = ' '
     46djvuDir = ' '
     47tiffDir = ' '
     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 poppler from:" popplerDir
     60say "      djvu from   :" djvuDir
     61say "      ps from     :" psDir
     62say "      tiff from   :" tiffDir
     63say
     64
     65/* translate command to all upercase */
     66command = translate(command)
     67
     68if command = "" then signal help
     69
     70
     71if command = "INSTALL" then do
     72    if option \== "" then do
     73        Qpdfview_build = option
     74    end
     75    select
     76        when Qpdfview_build \== "" then do
     77          zipFile = installDir || '\qpdfview-' || internal_build || '-' || Qpdfview_build || '.zip'
     78        end
     79        otherwise do
     80          signal help
     81        end
     82    end
     83end
     84
     85/* now we translate also the option */
     86option = translate(option)
     87
     88if sourceDir \== buildDir then do
     89    say "Shadow build in progress ..."
     90    say
     91end
     92
     93say "Executing command: "command option
     94
     95select
     96    when command = "MAKE" & option = "CLEAN" then do
     97
     98        say "cleaning the tree"
     99        call make 'distclean'
     100
     101        say "please execute this script again with 'make' to build Qpdfview"
     102
     103    end
     104    when command = "MAKE" then do
     105
     106        say "creating Qpdfview makefile"
     107        call qmake
     108
     109        if qRC = 0 then do
     110            say "building Qpdfview"
     111            if option = "" then do
     112                call make
     113            end
     114            else do
     115                call make 'debug'
     116            end
     117        end
     118
     119    end
     120
     121    when command = "INSTALL" then do
     122
     123/* first delete everything */
     124        call deleteall
     125
     126/* create the installDir,and the translation subdir */
     127        ok = SysMkDir(installDir)
     128        ok = SysMkDir(installDirT)
     129
     130/* copy the exe */
     131        ok = SysCopyObject(buildDir||'\Qpdfview.exe',installDir)
     132
     133/* copy all dll */
     134        ok = SysFileTree(buildDir||'\*.dll', rm.,'FOS')
     135        do i = 1 to rm.0
     136          ok = SysCopyObject(rm.i, installDir)
     137        end
     138
     139/* copy the readme */
     140        rm.0 = 1
     141        rm.1 = 'install.os2'
     142        do i = 1 to rm.0
     143        cmdtorun = 'sed "s;_VERSION_;' || Qpdfview_version || ';g" ' || os2Dir || '\' || rm.i || ' | sed "s;_BUILD_;' || Qpdfview_build || ';g" >' || installDir || '\' || rm.i
     144        address cmd cmdtorun
     145        end
     146
     147/* copy different stuff */
     148        rm.0 = 5
     149        rm.1 = 'CHANGES'
     150        frmDir.1 = os2Dir
     151        toDir.1 = installDir
     152        rm.2 = 'help*.html'
     153        frmDir.2 = os2Dir || '\help'
     154        toDir.2 = installDirT
     155        rm.3 = '*.dll'
     156        frmDir.3 = popplerDir || '\poppler\.libs'
     157        toDir.3 = installDir
     158        rm.4 = '*.dll'
     159        frmDir.4 = popplerDir || '\qt4\src\.libs'
     160        toDir.4 = installDir
     161        rm.5 = '*.dll'
     162        frmDir.5 = tiffDir || '\libtiff\.libs'
     163        toDir.5 = installDir
     164        do i = 1 to rm.0
     165        cmdtorun = 'copy ' || frmDir.i || '\' || rm.i || ' ' || toDir.i
     166        address cmd cmdtorun
     167        end
     168
     169/* create the qm files from ts files */
     170        ok = SysFileTree(srcDir||'\translations\*.ts', rm.,'FO')
     171        do i = 1 to rm.0
     172            fileName = filespec('N',rm.i)
     173            fileName = left(fileName,lastpos('.', fileName)-1) || '.qm'
     174            cmdtorun = 'lrelease ' || rm.i || ' -qm ' || installDirT || '\' || fileName
     175            address cmd cmdtorun
     176        end
     177
     178/* zip all dynamic stuff */
     179        ok = directory(installDir)
     180        cmdtorun = 'zip -r ' || zipFile || ' * -x *.zip'
     181        address cmd cmdtorun
     182        ok = directory(buildDir)
     183
     184/* zip all icons */
     185
     186    end
     187
     188    when command = "UNINSTALL" then do
     189
     190        call deleteall
     191       
     192    end
     193
     194    when command = "DIFF" then do
     195
     196        address cmd 'diff -Naur ' || vendorDir || ' ' || sourceDir || ' -x qpdfview.desktop >' || diffDir || 'qpdfview_' || Qpdfview_version || '_' || Qpdfview_build || '.diff'
     197       
     198    end
     199
     200    otherwise do
     201        say 'Unknown parameter "'command'" - aborting...'
     202        exit 1
     203    end
     204end
     205
     206/* cleanup the mess */
     207error:
     208
     209if qRC = 0 & mRC = 0 then do
     210    ok = SysFileDelete(mOutFile)
     211    ok = SysFileDelete(mErrorFile)
     212    ok = SysFileDelete(qOutFile)
     213    ok = SysFileDelete(qErrorFile)
     214end
     215else do
     216    if mRC <> 0 then do
     217        say "Alarm! Make errors occured! Look at "mOutFile" and "mErrorFile
     218    end
     219    if qRC <> 0 then do
     220        say "Alarm! qMake errors occured! Look at "qOutFile" and "qErrorFile
     221    end
     222end
     223
     224exit 0
     225
     226qmake:
     227    sourceFile = sourceDir || '/qpdfview.pro'
     228    address cmd 'qmake "CONFIG+=without_pkgconfig" "CONFIG+=without_dbus" "CONFIG+=without_magic" ' sourceFile ' 2>'qErrorFile' 1>'qOutFile
     229
     230    qRC = RC
     231    if qRC <> 0 then do
     232        call beep 880, 20
     233        say "Alarm! qmake RC="RC
     234    end
     235return
     236
     237make:
     238    makeparm = arg(1)
     239    address cmd 'make 'makeparm' 2>'mErrorFile' 1>'mOutFile
     240    mRC = RC
     241    if mRC <> 0 then do
     242        call beep 880, 20
     243        say "Alarm! make RC="RC
     244    end
     245return
     246
     247
     248deleteall: /* delete installDir (including subdirs) except zip files */
     249
     250    say "Delete all files except *zip in " installDir
     251    ok = SysFileTree(installDir||'\*', rm.,'FOS')
     252    do i = 1 to rm.0
     253       if translate(right(rm.i, 3)) \== 'ZIP' then do
     254          ok = SysFileDelete(rm.i)
     255       end
     256    end
     257
     258    say "Delete zip file " zipFile
     259    ok = SysFileDelete(zipFile)
     260
     261    say "Removing subdirs from " || installDir
     262    ok = SysFileTree(installDir||'\*', rm.,'OS')
     263    do i = 1 to rm.0
     264       ok = SysRmDir(rm.i)
     265    end
     266
     267    call SysSleep(5)
     268return
     269
     270/**
     271 *  Fixes the directory path by a) converting all slashes to back
     272 *  slashes and b) ensuring that the trailing slash is present if
     273 *  the directory is the root directory, and absent otherwise.
     274 *
     275 *  @param dir      the directory path
     276 *  @param noslash
     277 *      optional argument. If 1, the path returned will not have a
     278 *      trailing slash anyway. Useful for concatenating it with a
     279 *      file name.
     280 */
     281FixDir: procedure expose (Globals)
     282    parse arg dir, noslash
     283    noslash = (noslash = 1)
     284    dir = translate(dir, '\', '/')
     285    if (right(dir, 1) == '\' &,
     286        (noslash | \(length(dir) == 3 & (substr(dir, 2, 1) == ':')))) then
     287        dir = substr(dir, 1, length(dir) - 1)
     288    return dir
     289
     290/**
     291 *  reads the version.cpp and gets the Qpdfview version from there
     292 */
     293version: procedure expose Qpdfview_version Qpdfview_build srcDir
     294
     295    QpdfviewVer = ' '
     296    /* Qpdfview Version file */
     297    Version = srcDir || "\qpdfview.pri"
     298
     299    do until lines(Version) = 0
     300        verline = linein(Version)
     301        if substr(Verline,30,19) = "APPLICATION_VERSION" then do
     302            parse var verline . ' '. ' ' QpdfviewVer
     303        end
     304    end
     305
     306    ok = stream(Version,'c','close')
     307    if QpdfviewVer \== ' ' then do
     308        QpdfviewVer = strip(QpdfviewVer,,'"')
     309        parse var QpdfviewVer ver '.' maj '.' min '.' Qpdfview_build
     310        Qpdfview_version = ver || '.'|| maj || '.' || min
     311    end
     312
     313    if Qpdfview_build == '' then do
     314        Qpdfview_build = 'GA'
     315    end
     316
     317    return
     318
     319/**
     320 *  reads the qpdfview_os2.pri and some values from there
     321 */
     322getpri: procedure expose popplerDir djvuDir psDir tiffDir srcDir
     323
     324    /* Qpdfview_os2.pri file */
     325    priFile = srcDir || "\qpdfview_os2.pri"
     326
     327    do until lines(priFile) = 0
     328        verline = linein(priFile)
     329        verline = strip(verline,,' ')
     330        if substr(Verline,1,8) = "PDF_ROOT" then do
     331            parse var verline . ' '. ' ' popplerDir
     332        end
     333        if substr(Verline,1,9) = "DJVU_ROOT" then do
     334            parse var verline . ' '. ' ' djvuDir
     335        end
     336        if substr(Verline,1,7) = "PS_ROOT" then do
     337            parse var verline . ' '. ' ' psDir
     338        end
     339        if substr(Verline,1,9) = "TIFF_ROOT" then do
     340            parse var verline . ' '. ' ' tiffDir
     341        end
     342    end
     343
     344    ok = stream(priFile,'c','close')
     345    popplerDir = FixDir(popplerDir)
     346    djvuDir = FixDir(djvuDir)
     347    psDir = FixDir(psDir)
     348    tiffDir = FixDir(tiffDir)
     349    return
     350
     351help:
     352    say "Parameters:"
     353    say "    make"
     354    say "    make debug"
     355    say "    make clean"
     356    say "    install build (build overwrites what this script finds)"
     357    say "    uninstall"
     358    say "    diff (creates a diff from vendor to trunk)"
     359exit 255
  • TabularUnified 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 libssp
     52  3. yum install libstdc++ libstdc++6
     53  4. yum install libsupc++ libsupc++6
     54
     55Qt4 dll
     56-------
     57
     58  1. yum install libqt4
     59
     60Zlib
     61----
     62
     63  1. yum install zlib
     64
     65Jpeg
     66----
     67
     68  1. yum install libjpeg
     69
     70djvulibre
     71---------
     72
     73  not available as a rpm at this time of writing
     74
     75cups
     76----
     77
     78  not available as a rpm at this time of writing
     79
     80freetype/fontconfig
     81-------------------
     82
     83  not available as a rpm at this time of writing
     84
     85ghstscript
     86----------
     87
     88  not available as a rpm at this time of writing
     89
     90pthread
     91-------
     92
     93  1. yum install pthread
     94
     95
     962.1.b ZIP Installation
     97----------------------
     98
     99kLIBC
     100-----
     101
     102  1. Download kLIBC 0.6.5 or better (see http://svn.netlabs.org/libc for more
     103     information)
     104  2. Install the files to your libpath eg x:\ecs\dll
     105
     106GCC4Core
     107--------
     108
     109  1. Download GCC4Core 1.2.2 or better from http://ftp.netlabs.org/pub/gcc
     110  2. Install the files to your libpath eg. x:\ecs\dll
     111
     112Qt4 dll
     113-------
     114
     115  1. Download Qt4 4.7.3 or better (see http://svn.netlabs.org/qt4 for more
     116     information)
     117  2. Install the files according to the readme
     118
     119Zlib
     120----
     121
     122  1. Download zlib from http://rpm.netlabs.org/release/00/zip
     123  2. Unpack and install z.dll to your libpath eg. x:\ecs\dll
     124
     125Jpeg
     126----
     127
     128  1. Download jpeg from http://rpm.netlabs.org/release/00/zip
     129  2. Unpack and install jpeg.dll to your libpath eg. x:\ecs\dll
     130
     131djvulibre
     132---------
     133
     134  1. Download djvulibre from ftp://ftp.netlabs.org/pub/unixos2/djvulibre-3_5_25.zip
     135  2. Unpack and install djvu.dll to your libpath eg. x:\ecs\dll
     136
     137cups
     138----
     139
     140  1. Go to eCUPS wiki to see how to install eCUPS (http://svn.netlabs.org/ecups)
     141  2. Install eCUPS according to the above wiki
     142
     143freetype/fontconfig
     144-------------------
     145
     146  1. Download MZFNTCFGFT_RUNTIME as zip or wpi from
     147     ftp://ftp.netlabs.org/incoming/mozilla
     148  2. Unpack and install it to your libpath eg. x:\ecs\dll
     149
     150ghostscript
     151-----------
     152
     153  1. Download ghostscript as zip from ftp://ftp.netlabs.org/pub/unixos2/gs910os2.zip
     154  2. Unpack and install the gsdll2.dll to your libpath eg. x:\ecs\dll
     155     (note this ghostscript should be compatible with P. Smedley's 9.10 port, but his ports lack
     156     some features needed for qpdfview)
     157
     158pthread
     159-------
     160
     161  1. Download pthread from http://rpm.netlabs.org/release/00/zip
     162  2. Unpack and install pthr01.dll to your libpath eg. x:\ecs\dll
     163 
     164
     1653. INSTALLATION
     166===============
     167         
     168To install qpdfview, do the following:
     169
     170  1. Create a directory for qpdfview.
     171  2. Extract the qpdfview package to the new directory.
     172  3. Create a WPS object for qdpfview.exe.
     173  4. Start qdpfview
     174  5. Happy using it
     175  6. If you want to use qpdfview from within a browser, you have to copy
     176     popp*.dll and tiff.dll to the libpath eg. x:\ecs\dll
     177
     178If you have tried to open a file and not all requirements have been there at
     179this try, Qt screwed his plugin cache.
     180To overcome that delete %HOME%/.config/Trolltech.ini. It will be created again
     181when a Qt app starts.
     182
     183Optional: to have special fonts working you need poppler-data pack.
     184
     185  - extract the 4 directories from the package found on http://poppler.freedesktop.org
     186    to your %unixroot%/usr/local/share/poppler or to the dir where qpdfview.exe is installed
     187  - if you also want japanese fonts working, take care that the "Times New Roman WT J" font
     188    is installed. This font is used as a fallback
     189 
     190
     1914. BUGREPORTS
     192=============
     193
     194Please create bugreports at http://svn.netlabs.org/qtapps
     195Only bug reports with a reproducable bug are accepted. :-)
     196
     197
     1985. CREDITS
     199==========
     200
     201The port was done by:
     202
     203Silvan Scherrer aka _diver
     204
     205Thanks go to:
     206
     207  * Dmitriy Kuminov
     208
     209They either helped me when I had some nasty questions or did some testing for
     210me.
     211
     212
     2136. SUPPORT AND DONATIONS
     214========================
     215
     216qpdfview port is based on volunteer work. If you would like to support further
     217development, you can do so in one of the following ways:
     218
     219
     220  * Donate to the Qt4 project: see qt.netlabs.org for more information
     221
     222  * Contribute to the project: Besides actual development, this also includes
     223    maintaining the documentation and the project web site as well as help
     224    for users.
     225
     226
     2277. HISTORY
     228==========
     229
     2302014-04-30
     231
     232  * updated to latest poppler 0.26.0
     233
     2342014-04-02
     235
     236  * updated to latest qpdfview 0.4.9 source
     237
     2382014-02-18
     239
     240  * updated to latest qpdfview 0.4.8 source
     241
     2422013-12-03
     243
     244  * updated to latest qpdfview 0.4.7 source
     245
     2462013-11-29
     247
     248  * updated to latest poppler 0.24.4
     249
     2502013-10-15
     251
     252  * updated to latest qpdfview 0.4.6 source
     253
     2542013-08-14
     255
     256  * updated to latest qpdfview 0.4.4.99 source
     257  * updated to latest poppler 0.24.0
     258
     2592013-06-17
     260
     261  * added .ps and .eps file support
     262
     2632013-05-27
     264
     265  * updated to latest qpdfview 0.4.3 source
     266
     2672013-05-14
     268
     269  * updated to latest qpdfview 0.4.3 beta source
     270
     2712013-04-25
     272
     273  * updated to latest poppler 0.22.3
     274
     2752013-04-19
     276
     277  * updated to latest qpdfview 0.4.2 beta source
     278
     2792013-03-25
     280
     281  * updated to latest qpdfview 0.4.1 source
     282
     2832013-03-20
     284
     285  * updated to latest qpdfview 0.4.1 beta source
     286
     2872013-02-19
     288
     289  * updated to latest qpdfview 0.4.0 source
     290
     2912013-02-12
     292
     293  * updated to latest qpdfview 0.4.0 beta1 source
     294
     2952013-02-06
     296
     297  * updated to latest qpdfview 0.3.7 source
     298
     2992013-01-14
     300
     301  * updated to latest poppler 0.22.0
     302
     3032012-12-13
     304
     305  * updated to latest qpdfview 0.3.7 beta 1 source
     306
     3072012-11-27
     308
     309  * updated to latest qpdfview source
     310
     3112012-10-29
     312
     313  * created install.os2
     314  * updated qpdfview to contain a icon (thx Herwig)
     315
     3162012-10-24
     317
     318  * first public port
     319
     320
  • TabularUnified 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 HAS_POPPLER_26
     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/obj
     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
  • TabularUnified 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        }
  • TabularUnified 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.