| Age | Commit message (Collapse) | Author |
|
Use platform-appropriate temp file creation:
- _tempnam() on Windows (Microsoft-recommended)
- mkstemp() on Unix-like systems
Fixes #110, addresses #316
Supersedes #235
|
|
Support the newer UCRT64 MSYS2 environment (recommended default per msys2.org).
- Add UCRT64 detection to server/autobuild
- Fix vasprintf implicit declaration error on Windows (synctex_parser.c)
- Update configure.ac for Windows compatibility
Fixes #282, #286
Supersedes #295
Tested by multiple users on Windows 10/11 with MSYS2.
Co-authored-by: legends2k
|
|
(#134)"
This reverts commit bea5ddb9fc234b48db6df3dcb66d75e76bec00c8 because
`pdf-tools` compilation is broken.
Closes: #141
Reopens: #134
|
|
The vasprintf() is a GNU extension function, missed in non-GNU build environment, so we define it.
Without this change, there will have error message when we build with clang:
```
./autogen.sh
./configure CC=clang
make
```
We will get errors:
```
synctex_parser.c:8448:13: error: call to undeclared function 'vasprintf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (vasprintf(&buffer, format, va) < 0) {
```
This change fixes the problem.
|
|
This commit also removes C++ entirely, as it is not needed anymore for
correct compilation of `epdfinfo`. The following changes are made:
- Remove private headers from all the server code. This involves:
- Replace private header functionality with the correct public
functions provided by poppler.
- Remove unneeded headers around date checks
- Delete dead-code (headers, m4 macros)
- Remove C++, g++ and similar aliases from all the code. Also:
- Remove related information from the README
- Remove related information from CI and Dockerfiles
Work done by: @Pi-Cla
Closes: #105, #103, #109, #114
|
|
Typos found with codespell.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Recent poppler versions seem to require it, on the other hand llvm c++
defaults to some ancient standard.
|
|
|
|
|
|
Added some functions missing in Windows. Switch to binary mode
on stdin and stdout to avoid line ending issues.
|
|
|
|
* server/configure.ac: Use proper CFLAGS when checking for error.h .
|
|
|
|
* server/configure.ac: Check for error.h
* server/epdfinfo.h:
* server/epdfinfo.c: Use result of above check.
* server/autogen.sh: Use /bin/sh instead of bash.
|
|
* server/configure.ac: Use AM_PROG_CC_C_O, which is required for
automake < 1.14, when using per-target flags.
|
|
* server/configure.ac: Added silent-rules option.
* lisp/pdf-tools.el (pdf-tools--melpa-build-server): Use V=0 flag.
|
|
* lisp/pdf-tools.el: (pdf-tools--melpa-build-server): Function for
building the server.
(pdf-tools-install): Offer to build the server.
* Makefile (PACKAGE_VERSION): Hard-code duplicate version here (mh).
* server/configure.ac: Dito (grh).
|
|
* server/configure.ac:
|
|
* server/configure.ac: Add -s flag.
|
|
* test/run-tests.el (file-name-directory): Run tests on the installed package.
* server/configure.ac: Get the version from the toplevel Makefile.
* README.org: Adjust installation instructions.
* Makefile: Don't require cask anymore.
* Cask: Adjust dependencies.
* .gitignore: Add package files.
|
|
* server/configure.ac:
|
|
* server/configure.ac: Change packagename and adopt config-files
* server/Makefile.am: Make distclean git-clean.
|
|
|