gcc45.
- avoid implicit int, declare void functions void
- return values from non-void functions
- put most external declarations properly in header files
- use some static and const
- fix up a big mess with function pointer casting
- use standard includes, don't provide own decls of standard functions
- use types matching libc when providing own malloc, printf, and putchar
- use <ctype.h> functions correctly
- silence assorted compiler warnings
- fix some bugs exposed by compiler warnings
- don't intentionally exercise signed overflow
- remove some unused items
- add patch comments to other patch (patch-aa)
As this includes several fixes and removes some undefined behavior on
a commonly reachable code path, bump PKGREVISION.
Now passes gcc -Wall -Wextra -Wmissing-declarations -Wwrite-strings on gcc45.
May build with clang now too.
Changes:
- use standard headers
- don't declare own errno, fopen(), getenv(), or malloc()
- declare own functions
- declare void functions void
- avoid implicit int
- use C89
- use some const
- use some static
- fix signed/unsigned mismatches
- call execl() properly
- don't cast return value of malloc
- initialize struct sigaction correctly
- use <ctype.h> functions correctly
- don't index arrays with (signed) char
- don't put function declarations inside function bodies
- patch up two uninitialized variables
- silence some compiler warnings that are not bugs
- remove some unused objects
and:
- add patch comments for preexisting patches
- correct some minor pkglint
As a couple of these things fixed bugs (e.g. the execl calls), bump
PKGREVISION.
DragonFly Release 3.2.x doesn't have gcc 4.1 anymore, but gcc 4.4 is
still around and also available on many prior releases. Note that emacs
24 determines the CRT path dynamically but hardcoding on this obsolete
emacs package is fine.
Incidently, this doesn't fix emacs21 which still core dumps during
installation phase, regardless of which system compiler builds it.
The previous commit used openpty on all platforms, yet failed to ensure
it was made available for them.
Add DragonFly to the string of *BSD that require libutil for openpty.
Fixes regression caused by previous commit.
While here, do some pkglint cleanup.
from Changelog:
a) "mark" was changed like GNU Emacs from Ng 1.5alpha3.
b) fix canna bug for UNIX.
c) fix compile problem when libc was used for Human68K.
from Officail Web page:
patch) fix query-replace bug.
Changelog:
Sigil 0.6.1 2012.12.02
- Implement issue 1801: Audio and Video tags and files should be supported by Sigil.
- Implement issue 1797: Clean Source should have preference options to set when it should run.
- Implement issue 1768: Add non-destructive pretty printer as an option in addition to the Tidy provided one.
- Implement issue 1770: Change Clean Source to no longer warn about restarting Sigil.
- Implement issue 1767: Change default file extension from html to xhtml.
- Implement issue 1695: Add tooltips to show counts of files in Book Browser and headings in Generate TOC.
- Implement issue 1731: Delete files, Unused Images and Styles dialog should be scrollable and allow unselecting entries.
- Implement issue 1735: Print stylesheets and other non-HTML files.
- Implement issue 1758: Handle importing invalid files with duplicate IDs in OPF file.
- Implement issue 1711: Reports should allow saving to comma separated text file.
- Implement issue 1712: Reports should be non-modal and allow editing book while still open.
- Implement issue 1748: Add a Copy Image context menu option for images.
- Implement issue 1738: Move Generate Table of Contents button to toolbar.
- Implement issue 1743: Insert Image should include an alt tag with filename.
- Implement issue 1717: Allow more control of Author field in Metadata Editor.
- Implement issue 1729: Bulk rename should allow changing file extension.
- Implement issue 1728: Open/add invalid HTML files should show line numbers of error.
- Implement issue 1742: Add context menu option in Preview View for Inspect Element.
- Implement issue 1734: Splitting files and new blank HTML files should use existing file extension.
- Implement issue 1732: Index Editor should support opening/importing .txt files.
- Implement issue 1687: Insert ID should warn if invalid ID names are used.
- Fix issue 1791: All are replaced by normal space when switching from Book View to Code View.
- Fix issue 1798: Files, *-tmp.epub, are left in /tmp/Sigil/scratchpad after closing Sigil.
- Fix issue 1785: Split at Cursor in Book View does not always update href links.
- Fix issue 1759: Zipped files get wrong date and time.
- Fix issue 1757: Spellcheck does not handle one letter misspellings properly.
- Fix issue 1750: Loading HTML file should not automatically generate TOC.
- Fix issue 1749: Right click on SVG images should give same options as other images.
- Fix issue 1730: Changing view or using back button should select file in Book Browser.
- Fix issue 1726: Selecting all text and replacing with a Clip causes crash.
- Fix issue 1707: Application may crash when editing files externally.
- Fix issue 1733: Files edited with Open With are not always updated when externally saved.
- Fix issue 1704: Language dropdown entries have blank entries.
- Fix issue 1740: When dockable windows are stacked the program can give error on close.
Changelog:
=== 0.57 - Mon 8 Oct 2012 ===
* Ported zim background process to use the multiprocessing module
- this fixes app-indicator issues under Ubuntu Unity
- adds support for quicknote and other plugins on Windows
* Reworked application framework and "open with" dialog, now also
allows to set applications per URL scheme
* New plugin for using GNU Lilypond to render music scores - Shoban Preeth
* New Zeitgeist plugin - Marcel Stimberg
* Added template method to iterate days of the week for a calendar page
* Added pythonic syntax to access dicts to template modules
* Added tasklist option to take into account a Mon-Fri work week
* Fixed start of week and week number first week of the year for calendar plugin
* Added "untagged" category to task list
* Fixed strike out TODO label showing up in task list
* Added template editor dialog
* Added support for "forward" and "back" mouse buttons
* Added support for exporting to ReST - Yao-Po Wang
* Added new option to create and insert new attachments based on file template
* Added an argument to the quicknote plugin to import attachments
* Added icons per mimetype to the attachmentbrowser
* Added statusbar button for attachment browser
* Added monitors to watch attachment folder for updates
* Fix drag&drop on non-existing folder in attachment browser
* Fix drag&drop for attachment folder on windows
* Made location of plugin widgets in side panes configurable
and reworked key bindings for accessing side panes and toggling them
* Made tags plugin to revert to standard index if no tag is selected
* Page completion now matches anywhere in the basename -- patch by Mat
* Patch to use sourceview in imagegenerator dialog - Kevin Chabowski
* Fix for insert symbol dialog to insert without typing a space
* Made image data pasted as bmp convert to png to make it more compact
* Critical bug fix for version control plugin
* Critical bug fix for xml.etree.TreeBuilder API for python 2.7.3
* Bug fix for exceptions in index - Fabian Moser
* Bug fix for interwiki links
* On windows fix for bug when home folder or user name contain non-ascii characters
* Fixed help manual opens in compiled windows version
* Fixed locale support on windows
* Added translations for Brazilian Portuguese and Romanian
* Remove obsolete SUBST_*
Changelog:
Sigil 0.6.0 2012.10.27
- Implement issue 1664: Improve performance of opening and changing tabs.
- Implement issue 1665: Attempt to recover EPUB if it is missing an ncx file.
- Implement issue 1643: Change Clean Source default to Pretty Print instead of Tidy.
- Implement issue 1636: Add shift-click Replace for Replace Current - replace but not find next match.
- Implement issue 1638: Improve performance of Generate TOC.
- Implement issue 1637: Provide more friendly handling of bad EPUBs by not crashing after showing warning.
- Implement issue 1629: Localization of title in contentx.opf semantics.
- Implement issue 1622: Allow Font Obfuscation to work for multiple font files.
- Implement issue 1620: Well-formed check option should be removed and replaced with more appropriate automatic checking.
- Implement issue 1617: Split should split at cursor position not at end of paragraph.
- Implement issue 1619: Generate TOC should show tooltip details for the heading in case title and text is blank.
- Implement issue 1618: Generate TOC should allow changing heading levels in document and TOC.
- Implement issue 1615: Generate TOC should number sigil_toc_id's across all files and delete unused id's before generating.
- Implement issue 1612: Improve performance of merging files.
- Implement issue 1611: Improve performance of switching and closing tabs.
- Implement issue 1610: Use html instead of xhtml as the default extension for new blank HTML files.
- Implement issue 1606: Allow rename of titles in Generate Table Of Contents and show filenames in tooltip.
- Implement issue 1601: Delete unused Images.
- Implement issue 1602: Delete unused Styles.
- Implement issue 1603: Allow formatting buttons to work in Code View.
- Implement issue 1600: Option to delete one line in Code View without selecting text.
- Implement issue 1597: Show HTML tag information for current location in text while in Book View.
- Implement issue 1594: Allow miscellaneous text files to be edited and others to be opened externally.
- Implement issue 1590: Insert image should allow insert from disk.
- Implement issue 1557: Sigil requires Qt 4.8 or above.
- Implement issue 1586: Spellcheck should allow setting a keyboard shortcut for Ignore Word to speed editing.
- Implement issue 1585: Spellcheck should have a menu entry to clear all ignored words.
- Implement issue 1584: Sigil should allow CSS file to be edited while viewing HTML.
- Implement issue 1583: Sigil should remember the current view state when it restarts.
- Implement issue 1573: Improve performance of bulk rename.
- Implement issue 1468: Allow images to be opened externally.
- Implement issue 1571: Display whether classes are used in the HTML or CSS files in a new Reports dialog.
- Implement issue 1572: Add feature to re-format CSS files
- Implement issue 1567: Remove XPGT support.
- Implement issue 755: Support 'code view' for svg images that are loaded as separate files.
- Implement issue 1561: Add Save A Copy option to save file under a different name without renaming current file.
- Implement issue 1559: Add option to insert special characters into document.
- Implement issue 1333: Add Hyperlink editor buttons to select target from existing ids and set id anchor.
- Implement issue 401: Add edit buttons for Uppercase, Lowercase, Propercase, Capitization.
- Implement issue 985: Sigil fonts should be configurable in Preferences.
- Implement issue 1248: Code View/CSS should allow colors to be configurable in Preferences.
- Implement issue 1153: Highlighted Text in Code view Difficult/Impossible to see.
- Implement issue 1511: Prompt to replace an image when adding an image that already exists in the book.
- Implement issue 1542: Add a Go to Style option to jump to the CSS class used by a tag.
- Implement issue 1541: Heading styles should optionally remove/keep attributes in tags.
- Implement issue 1540: Add option to tokenise spaces and numbers in F&R find text.
- Implement issue 1539: Regex should support options for minimal matching, dot includes newlines.
- Implement issue 1535: Add Clipboard History to automatically saved recent cut or copied text.
- Implement issue 1534: Option to toggle Book View or Preview View to Code View and vice versa.
- Implement issue 1528: Shortcut preferences should be simplified.
- Implement issue 1536: Split at Chapter Markers should split all files.
- Implement issue 1530: The heading dropdown should be changed to buttons for quicker selection.
- Implement issue 1529: Code View should support heading/formatting buttons as used in Book View.
- Implement issue 73: External HTML links should be usable but evoke warning dialog.
- Implement issue 1521: Tab headers right click to close other tabs, toggle view state.
- Implement issue 715: Search Editor for saving and executing Find & Replaces searches.
- Implement issue 588: Clip Editor for saving and inserting text.
- Implement issue 1519: Open and go back to links in Code View and Book View.
- Implement issue 167: Index Editor to create a book index.
- Implement issue 1450: View classes used in HTML files.
- Implement issue 102: View details of all HTML files.
- Implement issue 839: Word Count (in View HTML details).
- Implement issue 1392: View details of all images.
- Implement issue 1513: Add progress indicators to various functions.
- Implement issue 1510: Add Existg Files should only open last file not all files.
- Implement issue 1428: Find&Replace should allow Ctrl/Shift key modifiers to set what to search.
- Implement issue 1325: Insert Images support for multiple images, resizing, thumbnails.
- Implode tags from selected text.
- Implement issue 761: Shortcut key to close last open tag (Code View).
- Implement issue 1507: Metadata dialogs should allow double click to select.
- Implement issue 1457: Save should not add heading ids - alreade should save state on restart.
- Implement issue 1416: Don't add selected text to F&R history and increase selected
text limit for being auto loaded into F&R.
- Implement issue 1414: Cover semantic should not be added automatically.
- Ilow more fine-grained control.
- Implement issue 1393: Add Semantics Text should only apply to one file.
- Implement issue 1369: Add support for \xDD as Regex replacement in F&R.
- Implement issue 1285: Display image properties.
- Implement issue 534: Link to Stylesheets option for HTML files.
- Implement issue 1385: Metadata editor should always display fields
- Implement issue 1311: Metadata support for all RfC 639-2 languages.
- Implement issue 1335: Run Save As automatically if saving new html file.
- Implement issue 1366: TOC window tree support for collapse/expand all.
- Implement issue 759: Auto generate inline TOC HTML file.
- Implement issue 32: Metadata custom "date" options.
- Implement issue 33: Metadata options for creators and contributors.
- Implement issue 1374: Split View is now Preview View with code inspector.
- Implement issue 184: Superscript/subscript buttons.
- Implement issue 443: Book View RTL languages support (right to left rtl tag).
- Implement issue 504: Book View button for normal paragraph.
- Implement issue 1265: Preference to manually set UI language.
- Implement issue 1295: Metadata Editor support for translating descriptions.
- Implement issue 77: Metadata support for multiple language elements.
- Implement issue 1180: Spell Check button/menu to find next misspelled word.
- Implement issue 1045: Better highlighting of misspelled words.
- Implement issue 1301: Preferences for User and Additional Dictionary locations.
- Implement issue 1058: Use ini format for settings on all platforms.
- Implement issue 1376: Change organization name and location of settings to sigil-ebook.
- Implement issue 1381: Switch to using Minizip for 1.1 for ZIP support.
- Remove ZipArchive and Zipios++.
- Implement issue 1380: Update zlib to 1.2.7.
- Implement issue 1383: Remove the use of a precompiled header.
- Implement issue 1377: Update PCRE to 8.31.
- Make PCRE 8.31 with UTF-16 support the minimum required version.
- Bundled PCRE uses PCRE's JIT for faster searching.
- Modify Regex search code to use UTF-16 instead of UTF-8 for all
searches. This brings search in line with the view components
being able to display UTF-16 characters.
- Implement issue 1378: Update Hunspell to 1.3.2.
- Implement issue 1379: Update Boost to Boost 1.49.0.
- Implement issue 1283: Spell check should have an ignore option.
- Fix issue 1694: User dictionary shows duplicate entries and doesn't scroll to new entry when adding.
- Fix issue 1693: Words in user dictionary could be lost if blank entries are saved.
- Fix issue 1692: Code View highlighting incorrectly hides spelling issues if an & is used.
- Fix issue 1674: Batch rename changes filename extension.
- Fix issue 1663: Generate TOC gives heading ids for items not in the TOC.
- Fix issue 1642: Replace sometimes leaves a \1 in the text.
- Fix issue 1635: Replace can replace too much text if manual selection includes extra text.
- Fix issue 1639: Ensure Spellcheck treats single quotes as word boundary appropriately.
- Fix issue 1624: Do not close Sigil if an invalid HTML file was added.
- Fix issue 1623: Do not leave Sigil in an invalid state if an invalid book was opened.
- Fix issue 1605: Sigil cannot read epubs missing mimetypes as first file since container.xml might not be found.
- Fix issue 1621: Change sigilNotInTOC to sigil_not_in_toc for consistency but still recognize legacy value in old files.
- Fix issue 1477: Sigil may crash when loading ePubs containing empty (zero-sized) files.
- Fix issue 1589: Clicking on TOC entry the first time does not scroll to a heading at the top of the page.
- Fix issue 1582: Replace All should be single-threaded to avoid certain crashes.
- Fix issue 1581: Caret position in Book View - Code View syncing is not always correct.
- Fix issue 1580: Chapter split starts new files with suffix _002 instead of 001.
- Fix issue 1579: Generate Headings in TOC should select next item after unchecking an item.
- Fix issue 1563: Split Chapter break can create empty page.
- Fix issue 1284: Image and Stylesheet paths not updated for duplicate references when importing.
- Fix issue 1155: Filename removed from href in anchor tag when importing HTML.
- Fix issue 1553: Rename of one html file should keep file selected, allow rename shortcut, link stylesheets.
- Fix issue 1551: Generate TOC include column scrolls offscreen when headings are long.
- Fix issue 1550: Table of Contents window is not emptied if all TOC entries deleted manually.
- Fix issue 1549: Sigil should not modify source by converting shy/ndash/mdash to entities automatically.
- Fix issue 1345: Adding accented words dictionary doesn't work.
- Fix issue 1546: Find&Replace loses focus when changing tabs or going from Book to Code View.
- Fix issue 425: Shift+ PgUp/PgDn does not work in text editor.
- Fix issue 1390: Image is not updated until restart if deleted and re-added.
- Fix issue 1413: Crashes when opening a particular epub.
- Fix issue 1543: Tabs should only do updates when finished loading to improve performance.
- Fix issue 1395: A type of hyphen, when pasted in code view, crashes Sigil.
- Fix issue 1429: Changes to stylesheets are not seen in book and preview views.
- Fix issue 1406: Typing spaces on a word highlighted by spelling crashes Sigil.
- Fix issue 1524: Replace \s does not always match newlines.
- Fix issue 1538: Sigil can save a corrupted epub file if zip fails.
- Fix issue 1517: Delete selected file should not open another file unnecessarily.
- Fix issue 1474: New lines added in every xhtml file after saving.
- Fix issue 1486: Replace replaces even if text doesn't match if manually changed.
- Fix issue 1483: Add Existing Files adds HTML files in reverse order.
- Fix issue 1479: F&R auto-completer preventing searching for same word different case.
- Fix issue 1424: Spell check does not allow paste next to misspelled word.
- Fix issue 1422: Delete file should not update tab if opened file is not deleted.
- Fix issue 1417: OPF meta tags not updated if Cover image renamed or deleted.
- Fix issue 1408: Book Browser should not translate folder names.
- Fix issue 1308: Allow renaming file extensions.
- Fix issue 1363: Open and Save file directory inconsistent.
- Fix issue 1130: Content.opf edits overwritten by save.
- Fix issue 1354: Chapter Split breaks links in second half of document.
- Fix issue 999: Split does not update file references in TOC.
- Fix issue 1277: Meta-editor will not open.
- Fix issue 1281: Semantics information retained for deleted files.
- Fix issue 1338: F&R Replace All can crash using current file with large replaces.
- Fix issue 1296: F&R Search All crashes if HTML file doesn't have focus.
- Fix issue 1382: Settings not saving to disk.
- Fix issue 1272: Tabs should always use the View state set by the View buttons.
Changes:
7.3.654 creating Vim dictionary from Python an empty key might be used
7.3.655 64 bit MingW xpm .a file is missing
7.3.656 internal error in :pyeval
7.3.657 Python bindings silently truncate string values containing NUL
7.3.658 NUL bytes truncate strings when converted from Python
7.3.659 recent Python changes are not tested
7.3.660 ":help !" jumps to help for ":!"
7.3.661 (after 7.3.652) SEGV in Python code
7.3.662 can't build Ruby interface with Ruby 1.9.3
7.3.663 end of color scheme name not clear in E185
7.3.664 buffer overflow in unescaping multi-byte characters
7.3.665 MSVC 11 is not supported
7.3.666 Win32.mak can't be found
7.3.667 unused variables in Perl interface
7.3.668 loading Perl dynamically still uses static library
7.3.669 when building with Cygwin loading Python dynamically fails
7.3.670 tiny memory leak when throwing exception in Python
7.3.671 more Python code can be shared between Python 2 and 3
7.3.672 not possible to lock/unlock lists in Python interface
7.3.673 "gN" while 'selection' is "exclusive" misses one character
7.3.674 can't compile with Lua/dyn on Cygwin
7.3.675 accessing uninitialized memory with a very long file name
7.3.676 Ruby compilation on Windows 32 bit doesn't work
7.3.677 buf_spname() is used inconsistently
7.3.678 Ruby .so name may not be correct
7.3.679 Ruby detection uses Config, newer Ruby versions use RbConfig
7.3.680 some files missing in the list of distributed files
7.3.681 list of distributed files picks up backup files
7.3.682 (after 7.3.677) compiler complains about incompatible types
7.3.683 ":python" may crash when vimbindeval() returns None
7.3.684 "make test" does not delete lua.vim
7.3.685 no test for what patch 7.3.673 fixes
7.3.686 cannot use CTRL-\ e mapping when entering an expression
7.3.687 test 16 fails when $DISPLAY is not set
7.3.688 Python 3.3 is not supported
7.3.689 MzScheme and Lua may use a NULL string
7.3.690 crash with directory name equal to maximum path length
7.3.691 state specific to the Python thread is discarded
7.3.692 can't build GTK version with GTK 2.0
7.3.693 can't make 'softtabstop' follow 'shiftwidth'
7.3.694 'shiftwidth' is not so easy to use in indent files
7.3.695 balloon cannot show multi-byte text
7.3.696 message about added spell language can be wrong
7.3.697 leaking resources when setting GUI font
7.3.698 Python 3 does not preserve state beween commands
7.3.699 manually set 'ttymouse' is overruled by automatic detection
7.3.700 cannot detect URXVT and SGR mouse support
7.3.701 MS-Windows: Crash with stack overflow when setting 'encoding'
7.3.702 nmake from VS6 service pack 6 is not recognized
7.3.703 when 'undofile' is reset the hash is computed unnecessarily
7.3.704 repeating "cgn" does not always work correctly
7.3.705 mouse features are not in alphabetical order
7.3.706 (after 7.3.697) can't build Motif version
7.3.707 (after 7.3.701) library name with non-latin characters fails
7.3.708 filler lines above the first line may be hidden
7.3.709 compiler warning for unused argument
7.3.710 (after 7.3.704) "fn" is broken
7.3.711 (after 7.3.688) vim.current.buffer is not available
7.3.712 nmake from VS2010 SP1 is not recognized
pkgsrc changes:
- take maintainership of package
- switch to single tarball, created from vim's hg, instead of downloading > 700 files
- which resulted in changes in PLIST in vim-share
- some minor changes to DESCR files (add more vim guis)
- reset PKGREVISION on vim-gtk2
- add new files to vim-lang
- File Browser side panel improvements (Ignacio Casal Quinteiro)
- Fix print preview in landscape mode (Adrian Johnson)
- Handle a command line specifying a big line number (Paolo Borelli, David Toton)
mprovements in snippets plugin (Jesse van den Kieboom)
- Use autoreconf instead gnome-autogen (Javier Jardón)
- Extensive snippet collection for docbook
- Improved html snippets (Jaseem Abid)
- Misc bugfixes
- New and updated translations
c.f., http://git.gnome.org/browse/gedit/plain/NEWS?id=3.6.1
Release 0.4.4 (TL'12) [April 2012]
* Fix crash caused by Qt when adding lines at the beginning of a document
* Fix search/replace for multi-line strings
* Work around layout issues which cause lines to disappear
* Fix building with BSD make
* Fix block selection of last paragraph
* Fix overwrite of "Find all occurrences" option
* Improve "Unable to execute..." error dialog
* Rename "Show/Hide Output Panel" to "Show/Hide Console Output" in the menu
and the preferences dialog
* Remove subject and add instructions to body of the "email to mailinglist"
* Bring the window running TeX to the top at the beginning of typesetting to
ensure that the console output is visible
* Allow symlinks and display only folders in "path for programs" in the
preferences dialog
* Add "Clear Recent Files" to "Open Recent" menu
* Add an autocompletion entry to the preferences dialog
* Add Lua(La)TeX to the default tools (and drop LaTeXmk by default)
* Add an option to open log files
* Add CMake support (experimental)
* Update SyncTeX to version 1.17
* Update URLs to http://www.tug.org/texworks/
* Some enhancements to functions available to scripting
* Avoid showing an empty message box for script results
* Resolve symlinks when looking for scripts
* Expose the scripts' titles, authors, filenames, etc. to scripting
* Update/improve scripts: open pdf in default viewer, derive spellchecking
language from babel package, log parser
mg adds the -Werror flag after CFLAGS, so any suppressed warning gets
reenabled. Starting with gcc4.6, unused-but-set-variable warnings are
issued which breaks the build. Passing Wno-unused-but-set-variable by
the package makefile (as a function of compiler version) doesn't work.
The easiest solution is just to disable -Werror. In this case through
the makefile rather than updating a patch.
GCC 4.6+ does not tolerate flags starting with "--" like older versions
of GCC do. These flags were meant to fall to the linker but starting
with GCC 4.6, they must be explicitly prefixed with "-Wl,"
Fixes the gcc 4.7.2 breakage on "--no-undefined".
In order to fix the build on DragonFly, the locations of the crt files
had to be defined. This was tricky as DragonFly has two base compilers
so gcc --print-libgcc-file-name was used to determine the path of the
crt files.
Also patch-iisp_files.el was removed. It was removed from distinfo 5
weeks ago, but the patch itself was left in place causing "patch ignored"
warnings.