head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.20 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.18 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.16 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.14 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.12 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.10 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.8 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.6 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.4 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.2 pkgsrc-2023Q4-base:1.2; locks; strict; comment @// @; 1.2 date 2023.11.02.12.04.02; author nros; state Exp; branches; next 1.1; commitid YShDt8wUPrPZX1LE; 1.1 date 2023.10.26.10.46.58; author nros; state Exp; branches; next ; commitid thx8OoGhyjuvL7KE; desc @@ 1.2 log @codelite: iso C++ patches: put the vars inside yyparse where they are used @ text @$NetBSD: patch-CodeLite_pp.cpp,v 1.1 2023/10/26 10:46:58 nros Exp $ Fix Warning: ISO C++ forbids converting a string constant to char* --- CodeLite/pp.cpp.orig 2023-10-26 10:47:53.400757236 +0000 +++ CodeLite/pp.cpp @@@@ -305,6 +305,8 @@@@ int yyparse() { register int yym, yyn, yystate; + char semsg[] = "syntax error"; + char ysomsg[] = "yacc stack overflow"; #if YYDEBUG register char *yys; extern char *getenv(); @@@@ -370,7 +372,7 @@@@ yyloop: goto yynewerror; #endif yynewerror: - yyerror("syntax error"); + yyerror(semsg); #ifdef lint goto yyerrlab; #endif @@@@ -577,7 +579,7 @@@@ to state %d\n", YYPREFIX, *yyssp, yystat *++yyvsp = yyval; goto yyloop; yyoverflow: - yyerror("yacc stack overflow"); + yyerror(ysomsg); yyabort: return (1); yyaccept: @ 1.1 log @Update codelite to version 17.0.0 Changelog from release notes bug fixes: * codelite-ctags is now built as part of CodeLite sources and is not provided as a prebuilt binary * ctagsd finds the wrong definition of a method * Respect user-supplied/alternate wx-config Alternate wx-config is not respected by ctagsd and codelite-cli subsystems * Filesystem Workspace: Make Build and Run Project and Rebuild Project work with filesystem workspace (rlbxku1r) * restore frame attributes: MAXIMIZE, FULLSCREEN * Editor margin offset with fractional scaling enabled * Fixed: CodeLite crashes when opening the resource dialog when no workspace is opened * Fixed: CodeLite crashes when the LSP command is invalid * Fixed the issue that OpenFileAsync would not trigger the callback function to open soft-linked files * FIX: Git, The first commit failed (liuanlin-mx) * fix:git plugin: show file diff, file path is incorrect * git: add Show file Log (liuanlin-mx) * Fix: Replace All, Regular expressions don't work (liuanlin-mx) * Clicking the "Refresh" button in the FSW toolbar, refreshes the entire tree, unconditionally * Tab control navigation: use the same keyboard on all major platforms * Tab control navigation dialog: show the dialog when using WSL2 on Windows * Fix issue with "Open Resource..." searches containing :line[:column] When search pattern includes :line[:column] the current search only uses the filename - paths before the filename are ignored (Uffe Jakobsen) * fixed: Outline view is unreadable - bad colors * Add support for Alacritty terminal emulator * wxCrafter: Subclass of wxSpinCtrl crashes wxCrafter Impovements: * Source code formatter: added support for cmake-format * CodeLite startup time improved * Updated the Replace UI to fit the other controls * Preferences dialog has been re-written and now fits better on small screen, as a side bonus, it loads instantly * Reloading a file opened remotely, now loads it from the remote server ( Ctrl+R ) * Language Server plugin: LSP server detection code improvements * Code Formatter plugin: the plugin was re-written. By default CodeLite now configure code formatters for: C++ clang-format JSON jq XML xmllint Rust rustfmt PHP php-cs-fixer & phpcbf Python black * Code Formatter plugin: support "Format On Save": the user can now configure that the editor will be formatted after a save operation * Code Formatter plugin: is now supporting invoking formatting on remote files opened via the Remoty plugin * Hidden folders are now displayed in the UI using gray text and disabled image * Remoty workspace tree view: added an option to copy a remote folder path * File system workspace tree view: the top level folder no longer displays the fullpath, but rather that last dir name * A modified tab now displays a round circle indicating that the file is modified * All template files have been updated to use the dap - Debug Adapter Client by default * Welcome Page has been updated, mainly, the list of Recently opened workspaces now includes list of workspaces opened by other plugins (e.g. Remoty) @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- CodeLite/pp.cpp.orig 2023-10-25 17:36:29.887514094 +0000 d7 9 a15 9 @@@@ -79,6 +79,8 @@@@ extern wxString g_filename; /* Static*/ static std::vector g_tmpMacros; +static char semsg[] = "syntax error"; +static char ysomsg[] = "yacc stack overflow"; /*************** Standard ytab.c continues here *********************/ #define PP_DEFINE 257 @