4
I Use This!
Very Low Activity

News

Analyzed 1 day ago. based on code collected 2 days ago.
Posted almost 8 years ago by Agar-SVN via Agar-Commits
Author: vedge Date: 2016-07-08 08:00:48 -0400 (Fri, 08 Jul 2016) New Revision: 9878 Modified: trunk/core/Makefile Log: + missing AG_Db.3 Modified: trunk/core/Makefile =================================================================== --- ... [More] trunk/core/Makefile2016-04-02 02:18:33 UTC (rev 9877) +++ trunk/core/Makefile2016-07-08 12:00:48 UTC (rev 9878) < at >< at > -21,7 +21,7 < at >< at > time.c time_dummy.c db.c tbl.c getopt.c exec.c text.c user.c \ user_dummy.c -MAN3=AG_Intro.3 AG_Core.3 AG_Event.3 AG_Object.3 AG_Timer.3 \ +MAN3=AG_Intro.3 AG_Core.3 AG_Db.3 AG_Event.3 AG_Object.3 AG_Timer.3 \ AG_Config.3 AG_Version.3 AG_DataSource.3 AG_Error.3 AG_Threads.3 \ AG_CPUInfo.3 AG_ByteSwap.3 AG_Queue.3 AG_Limits.3 AG_DSO.3 AG_File.3 \ AG_List.3 AG_Variable.3 AG_Time.3 AG_Tbl.3 AG_Getopt.3 AG_Execute.3 \ [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-04-01 22:18:33 -0400 (Fri, 01 Apr 2016) New Revision: 9877 Removed: trunk/tools/agar-bench/ Modified: trunk/tools/Makefile Log: moved to tests/ Modified: trunk/tools/Makefile ... [More] =================================================================== --- trunk/tools/Makefile2016-04-01 03:37:56 UTC (rev 9876) +++ trunk/tools/Makefile2016-04-02 02:18:33 UTC (rev 9877) < at >< at > -1,8 +1,7 < at >< at > TOP=.. include ${TOP}/Makefile.config -SUBDIR=agar-bench \ -agar-disasm +SUBDIR=agar-disasm # For regenerating gui/*_data.h. #SUBDIR+=bundlefont bundlecss [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-03-29 07:41:38 -0400 (Tue, 29 Mar 2016) New Revision: 9875 Modified: trunk/au/Makefile trunk/configure trunk/configure.in trunk/dev/Makefile trunk/math/Makefile trunk/vg/Makefile Log: ag_math can be ... [More] compiled without GUI Modified: trunk/au/Makefile =================================================================== --- trunk/au/Makefile2016-03-29 08:14:28 UTC (rev 9874) +++ trunk/au/Makefile2016-03-29 11:41:38 UTC (rev 9875) < at >< at > -16,7 +16,7 < at >< at > LIB_LINKS=${CORE_LINKS_STATIC} ${GUI_LINKS_STATIC} \ ${AGMATH_LINKS_STATIC} ${AU_LIBS} -LIBS=-L../gui -lag_gui +LIBS=${ENABLE_GUI_LIBS} CFLAGS+=-D_AGAR_AU_INTERNAL \ ${CORE_CFLAGS} ${GUI_CFLAGS} \ Modified: trunk/configure =================================================================== --- trunk/configure2016-03-29 08:14:28 UTC (rev 9874) +++ trunk/configure2016-03-29 11:41:38 UTC (rev 9875) < at >< at > -3862,6 +3862,7 < at >< at > echo "#define ENABLE_GUI \"$ENABLE_GUI\"" >> $BLD/include/agar/config/enable_gui.h echo "#endif" >> $BLD/include/agar/config/enable_gui.h echo "hdefs[\"ENABLE_GUI\"] = \"$ENABLE_GUI\"" >>configure.lua +ENABLE_GUI_LIBS="-L../gui -lag_gui" SUBDIR_gui="gui" if [ "${with_sdl}" != "no" ] then < at >< at > -6569,6 +6570,7 < at >< at > else echo "#undef ENABLE_GUI" >$BLD/include/agar/config/enable_gui.h echo "hdefs[\"ENABLE_GUI\"] = nil" >>configure.lua +ENABLE_GUI_LIBS="" SUBDIR_gui="" echo "#undef HAVE_SDL" >$BLD/include/agar/config/have_sdl.h echo "hdefs[\"HAVE_SDL\"] = nil" >>configure.lua < at >< at > -10372,6 +10374,8 < at >< at > echo "mdefs[\"DSO_CFLAGS\"] = \"$DSO_CFLAGS\"" >>configure.lua echo "DSO_LIBS=$DSO_LIBS" >>Makefile.config echo "mdefs[\"DSO_LIBS\"] = \"$DSO_LIBS\"" >>configure.lua +echo "ENABLE_GUI_LIBS=$ENABLE_GUI_LIBS" >>Makefile.config +echo "mdefs[\"ENABLE_GUI_LIBS\"] = \"$ENABLE_GUI_LIBS\"" >>configure.lua echo "ENABLE_NLS=$ENABLE_NLS" >>Makefile.config echo "mdefs[\"ENABLE_NLS\"] = \"$ENABLE_NLS\"" >>configure.lua echo "EXECSUFFIX=$EXECSUFFIX" >>Makefile.config Modified: trunk/configure.in =================================================================== --- trunk/configure.in2016-03-29 08:14:28 UTC (rev 9874) +++ trunk/configure.in2016-03-29 11:41:38 UTC (rev 9875) < at >< at > -150,6 +150,7 < at >< at > # if [ "${enable_gui}" != "no" ]; then HDEFINE(ENABLE_GUI, "yes") +MDEFINE(ENABLE_GUI_LIBS, "-L../gui -lag_gui") MDEFINE(SUBDIR_gui, "gui") # Enable SDL support if the SDL library is found. < at >< at > -352,6 +353,7 < at >< at > else HUNDEF(ENABLE_GUI) +MDEFINE(ENABLE_GUI_LIBS, "") MDEFINE(SUBDIR_gui, "") HUNDEF(HAVE_SDL, SDL_CFLAGS, SDL_LIBS) Modified: trunk/dev/Makefile =================================================================== --- trunk/dev/Makefile2016-03-29 08:14:28 UTC (rev 9874) +++ trunk/dev/Makefile2016-03-29 11:41:38 UTC (rev 9875) < at >< at > -13,7 +13,7 < at >< at > LIB_GUID="e0baea2d-5cb8-4a7a-9120-8352f36109e7" LIB_LINKS=${CORE_LINKS_STATIC} ${GUI_LINKS_STATIC} ${DEV_LIBS} -LIBS=-L../gui -lag_gui +LIBS=${ENABLE_GUI_LIBS} CFLAGS+=-D_AGAR_DEV_INTERNAL \ ${CORE_CFLAGS} ${GUI_CFLAGS} ${DEV_CFLAGS} Modified: trunk/math/Makefile =================================================================== --- trunk/math/Makefile2016-03-29 08:14:28 UTC (rev 9874) +++ trunk/math/Makefile2016-03-29 11:41:38 UTC (rev 9875) < at >< at > -14,7 +14,7 < at >< at > LIB_GUID="ba35a553-bd88-4e5e-8c4b-d17f60ae7439" LIB_LINKS=${CORE_LINKS_STATIC} ${GUI_LINKS_STATIC} ${AGMATH_LIBS} -LIBS=-L../gui -lag_gui +LIBS=${ENABLE_GUI_LIBS} CFLAGS+=-D_AGAR_MATH_INTERNAL \ ${CORE_CFLAGS} ${GUI_CFLAGS} ${AGMATH_CFLAGS} Modified: trunk/vg/Makefile =================================================================== --- trunk/vg/Makefile2016-03-29 08:14:28 UTC (rev 9874) +++ trunk/vg/Makefile2016-03-29 11:41:38 UTC (rev 9875) < at >< at > -14,7 +14,7 < at >< at > LIB_GUID="6d009edb-c66a-46e8-a1dd-b6f653db6327" LIB_LINKS=${CORE_LINKS_STATIC} ${GUI_LINKS_STATIC} ${VG_LIBS} -LIBS=-L../gui -lag_gui +LIBS=${ENABLE_GUI_LIBS} CFLAGS+=-D_AGAR_VG_INTERNAL \ ${CORE_CFLAGS} ${GUI_CFLAGS} ${VG_CFLAGS} [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-03-29 04:14:24 -0400 (Tue, 29 Mar 2016) New Revision: 9873 Modified: trunk/configure.in Log: try to produce the same set of includes regardless of build options Modified: trunk/configure.in ... [More] =================================================================== --- trunk/configure.in2016-03-29 07:17:45 UTC (rev 9872) +++ trunk/configure.in2016-03-29 08:14:24 UTC (rev 9873) < at >< at > -163,11 +163,11 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_SDL) +HUNDEF(HAVE_SDL, SDL_CFLAGS, SDL_LIBS) fi fi else -HUNDEF(HAVE_SDL) +HUNDEF(HAVE_SDL, SDL_CFLAGS, SDL_LIBS) fi # Enable OpenGL support if an OpenGL library is found. < at >< at > -183,11 +183,11 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_OPENGL) +HUNDEF(HAVE_OPENGL, OPENGL_CFLAGS, OPENGL_LIBS) fi fi else -HUNDEF(HAVE_OPENGL) +HUNDEF(HAVE_OPENGL, OPENGL_CFLAGS, OPENGL_LIBS) fi # Enable X Windows support if Xlib is found. < at >< at > -201,7 +201,7 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_X11) +HUNDEF(HAVE_X11, X11_CFLAGS, X11_LIBS) fi fi if [ "${with_xinerama}" != "no" ]; then < at >< at > -214,14 +214,15 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_XINERAMA) +HUNDEF(HAVE_XINERAMA, XINERAMA_CFLAGS, XINERAMA_LIBS) fi fi else -HUNDEF(HAVE_XINERAMA) +HUNDEF(HAVE_XINERAMA, XINERAMA_CFLAGS, XINERAMA_LIBS) fi else -HUNDEF(HAVE_X11) +HUNDEF(HAVE_X11, X11_CFLAGS, X11_LIBS) +HUNDEF(HAVE_XINERAMA, XINERAMA_CFLAGS, XINERAMA_LIBS) fi # Enable MacOS X / Cocoa support if Cocoa is found. < at >< at > -235,11 +236,11 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_COCOA) +HUNDEF(HAVE_COCOA, COCOA_CFLAGS, COCOA_LIBS) fi fi else -HUNDEF(HAVE_COCOA) +HUNDEF(HAVE_COCOA, COCOA_CFLAGS, COCOA_LIBS) fi # < at >< at > -257,11 +258,11 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_GLX) +HUNDEF(HAVE_GLX, GLX_CFLAGS, GLX_LIBS) fi fi else -HUNDEF(HAVE_GLX) +HUNDEF(HAVE_GLX, GLX_CFLAGS, GLX_LIBS) fi # Enable WGL support on Windows. < at >< at > -282,8 +283,7 < at >< at > HUNDEF(HAVE_WGL) fi else -HUNDEF(HAVE_WGL) -HUNDEF(HAVE_GLX) +HUNDEF(HAVE_WGL, HAVE_GLX, GLX_CFLAGS, GLX_LIBS) fi # Enable Freetype support if the Freetype library is found. Otherwise < at >< at > -304,7 +304,7 < at >< at > exit 1 fi else -HUNDEF(HAVE_FREETYPE) +HUNDEF(HAVE_FREETYPE, FREETYPE_CFLAGS, FREETYPE_LIBS) fi # Use fontconfig if available. < at >< at > -311,7 +311,7 < at >< at > if [ "${with_fontconfig}" != "no" ]; then CHECK(fontconfig, 2.6.0, ${prefix_fontconfig}) else -HUNDEF(HAVE_FONTCONFIG) +HUNDEF(HAVE_FONTCONFIG, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS) fi # Enable JPEG format support if libjpeg is found. < at >< at > -325,11 +325,11 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_JPEG) +HUNDEF(HAVE_JPEG, JPEG_CFLAGS, JPEG_LIBS) fi fi else -HUNDEF(HAVE_JPEG) +HUNDEF(HAVE_JPEG, JPEG_CFLAGS, JPEG_LIBS) fi # Enable PNG format support if libpng is found. < at >< at > -343,13 +343,11 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_PNG) -HUNDEF(HAVE_LIBPNG14) +HUNDEF(HAVE_PNG, HAVE_LIBPNG14, PNG_CFLAGS, PNG_LIBS) fi fi else -HUNDEF(HAVE_PNG) -HUNDEF(HAVE_LIBPNG14) +HUNDEF(HAVE_PNG, HAVE_LIBPNG14, PNG_CFLAGS, PNG_LIBS) fi else < at >< at > -356,17 +354,17 < at >< at > HUNDEF(ENABLE_GUI) MDEFINE(SUBDIR_gui, "") -HUNDEF(HAVE_SDL) -HUNDEF(HAVE_X11) -HUNDEF(HAVE_COCOA) -HUNDEF(HAVE_OPENGL) -HUNDEF(HAVE_GLX) +HUNDEF(HAVE_SDL, SDL_CFLAGS, SDL_LIBS) +HUNDEF(HAVE_X11, X11_CFLAGS, X11_LIBS) +HUNDEF(HAVE_XINERAMA, XINERAMA_CFLAGS, XINERAMA_LIBS) +HUNDEF(HAVE_COCOA, COCOA_CFLAGS, COCOA_LIBS) +HUNDEF(HAVE_OPENGL, OPENGL_CFLAGS, OPENGL_LIBS) +HUNDEF(HAVE_GLX, GLX_CFLAGS, GLX_LIBS) HUNDEF(HAVE_WGL) -HUNDEF(HAVE_FREETYPE) -HUNDEF(HAVE_FONTCONFIG) -HUNDEF(HAVE_JPEG) -HUNDEF(HAVE_PNG) -HUNDEF(HAVE_LIBPNG14) +HUNDEF(HAVE_FREETYPE, FREETYPE_CFLAGS, FREETYPE_LIBS) +HUNDEF(HAVE_FONTCONFIG, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS) +HUNDEF(HAVE_JPEG, JPEG_CFLAGS, JPEG_LIBS) +HUNDEF(HAVE_PNG, HAVE_LIBPNG14, PNG_CFLAGS, PNG_LIBS) fi # Enable network interface unless requested otherwise. < at >< at > -380,17 +378,10 < at >< at > else MDEFINE(HAVE_NETWORK, "no") HUNDEF(AG_NETWORK) -HUNDEF(HAVE_GETADDRINFO) -HUNDEF(HAVE_SETSOCKOPT) - HUNDEF(HAVE_SO_OOBINLINE) - HUNDEF(HAVE_SO_REUSEPORT) - HUNDEF(HAVE_SO_TIMESTAMP) - HUNDEF(HAVE_SO_NOSIGPIPE) - HUNDEF(HAVE_SO_LINGER) - HUNDEF(HAVE_SO_ACCEPTFILTER) -HUNDEF(HAVE_WINSOCK1) -HUNDEF(HAVE_WINSOCK2) -HUNDEF(HAVE_SIOCGIFCONF) +HUNDEF(HAVE_GETADDRINFO, HAVE_SETSOCKOPT, HAVE_SO_OOBINLINE) +HUNDEF(HAVE_SO_REUSEPORT, HAVE_SO_TIMESTAMP, HAVE_SO_NOSIGPIPE) +HUNDEF(HAVE_SO_LINGER, HAVE_SO_ACCEPTFILTER, HAVE_SIOCGIFCONF) +HUNDEF(HAVE_WINSOCK1, HAVE_WINSOCK2) fi # Enable Berkeley DB backend for AG_Db if available. < at >< at > -461,9 +452,7 < at >< at > fi fi else -HUNDEF(AG_THREADS) -HUNDEF(HAVE_PTHREADS) -HUNDEF(HAVE_PTHREADS_XOPEN) +HUNDEF(AG_THREADS, HAVE_PTHREADS, HAVE_PTHREADS_XOPEN) # # Lock macros expand to no-ops when compiled !AG_THREADS, which may # result in unused variables in some places. < at >< at > -484,11 +473,11 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_UIM) +HUNDEF(HAVE_UIM, UIM_CFLAGS, UIM_LIBS) fi fi else -HUNDEF(HAVE_UIM) +HUNDEF(HAVE_UIM, UIM_CFLAGS, UIM_LIBS) fi # Enable NLS if requested explicitely. < at >< at > -502,8 +491,8 < at >< at > exit 1 fi else -HUNDEF(HAVE_ICONV) -HUNDEF(HAVE_GETTEXT) +HUNDEF(HAVE_ICONV, ICONV_CFLAGS, ICONV_LIBS) +HUNDEF(HAVE_GETTEXT, GETTEXT_CFLAGS, GETTEXT_LIBS) fi # < at >< at > -528,9 +517,7 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_ALTIVEC) -HUNDEF(HAVE_ALTIVEC_H) -HUNDEF(INLINE_ALTIVEC) +HUNDEF(HAVE_ALTIVEC, HAVE_ALTIVEC_H, INLINE_ALTIVEC) fi else if [ "${with_altivec_inline}" = "yes" ]; then < at >< at > -540,9 +527,7 < at >< at > fi fi else -HUNDEF(HAVE_ALTIVEC) -HUNDEF(HAVE_ALTIVEC_H) -HUNDEF(INLINE_ALTIVEC) +HUNDEF(HAVE_ALTIVEC, HAVE_ALTIVEC_H, INLINE_ALTIVEC) fi # < at >< at > -561,8 +546,7 < at >< at > echo "*" exit 1 else -HUNDEF(HAVE_SSE) -HUNDEF(INLINE_SSE) +HUNDEF(HAVE_SSE, INLINE_SSE) fi else if [ "${with_sse_inline}" = "yes" ]; then < at >< at > -578,10 +562,7 < at >< at > fi fi else -HUNDEF(HAVE_SSE) -HUNDEF(HAVE_SSE2) -HUNDEF(HAVE_SSE3) -HUNDEF(INLINE_SSE) +HUNDEF(HAVE_SSE, HAVE_SSE2, HAVE_SSE3, INLINE_SSE) fi # Specify floating-point precision to use. < at >< at > -661,16 +642,12 < at >< at > echo "*" exit 1 fi -HUNDEF(ENABLE_AU) MDEFINE(SUBDIR_au, "") -HUNDEF(HAVE_SNDFILE) -HUNDEF(HAVE_PORTAUDIO) +HUNDEF(ENABLE_AU, HAVE_SNDFILE, HAVE_PORTAUDIO) fi else -HUNDEF(ENABLE_AU) MDEFINE(SUBDIR_au, "") -HUNDEF(HAVE_SNDFILE) -HUNDEF(HAVE_PORTAUDIO) +HUNDEF(ENABLE_AU, HAVE_SNDFILE, HAVE_PORTAUDIO) fi # [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-03-29 03:17:45 -0400 (Tue, 29 Mar 2016) New Revision: 9872 Modified: trunk/math/m_math.c Log: fix compilation under --disable-gui Modified: trunk/math/m_math.c ... [More] =================================================================== --- trunk/math/m_math.c2016-03-29 05:05:47 UTC (rev 9871) trunk/math/m_math.c2016-03-29 07:17:45 UTC (rev 9872) < at >< at > -61,7 61,14 < at >< at > PrintTime(AG_FmtString *fs, char *dst, size_t dstSize) { M_Time *t = AG_FMTSTRING_ARG(fs); -return AG_UnitFormat((double)(*t), agTimeUnits, dst, dstSize); #ifdef ENABLE_GUI if (agGUI) { return AG_UnitFormat((double)(*t), agTimeUnits, dst, dstSize); } else #endif { return Snprintf(dst, dstSize, "%f", (double)(*t)); } } static size_t PrintComplex(AG_FmtString *fs, char *dst, size_t dstSize) [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-03-29 01:05:47 -0400 (Tue, 29 Mar 2016) New Revision: 9871 Modified: trunk/core/dso.c Log: Fix missing <dlfcn.h> on 32-bit MSYS build. Thanks varialus! Modified: trunk/core/dso.c ... [More] =================================================================== --- trunk/core/dso.c2016-03-28 08:27:27 UTC (rev 9870) +++ trunk/core/dso.c2016-03-29 05:05:47 UTC (rev 9871) < at >< at > -1,5 +1,5 < at >< at > /* - * Copyright (c) 2008 Hypertriton, Inc. <http://hypertriton.com/> + * Copyright (c) 2008-2016 Hypertriton, Inc. <http://hypertriton.com/> * All rights reserved. * * Redistribution and use in source and binary forms, with or without < at >< at > -50,6 +50,9 < at >< at > # include <xtl.h> #else # include <windows.h> +# if !defined(__CYGWIN__) && defined(__MINGW32__) && !defined(__MINGW64__) +# include <dlfcn.h>/* bug #219 */ +# endif #endif # include <agar/core/queue_close.h> # include <agar/core/queue.h> [Less]
Posted about 8 years ago by Agar Announcements
I'm pleased to announce the release of Agar-1.5.0. The source code and binary packages are available for download at: http://libagar.org/download.html This release preserves backward compatibility with Agar 1.4.x, but it is recommended to ... [More] compile Agar with the "--disable-legacy" configure option, ensuring that existing applications are not using deprecated API calls. I'd like to thank everyone who has provided feedback and contributions, as well as our sponsors: Csoft.net Hosting and ElectronTubeStore.com. Release Notes for Agar 1.5.0 (A Mild Breeze Upon The Brow Of The Dead) ---------------------------------------------------------------------- Here are some of the most notable changes since Agar 1.4.1, in no particular order. - A new Agar testsuite, "agartest", available from tests/ in the source distribution. Code previously in demos/ was moved to tests/. - Numerous fixes and improvements to the documentation; added some example code and images for the web and printable versions of the manual. - Build system upgraded to BSDBuild 3.2. Note the `agar-config` and `agar-foo-config` scripts are now auto-generated by configure. - The "rg" library has been moved over to the FreeSG distribution (http://freesg.org). - Major changes to low-level event handling logic of the standard event loop. Event handling was originally done in a driver-specific fashion. This was replaced by a generic ag_core based interface which is able to utilize a whichever most efficient kernel event-notifications mechanism (such as kqueue(2) or select(2) / timerfd). Agar can now handle multiple event loops running under separate threads; see AG_EventLoop(3). - GUI: Redesign of the styling interface. AG_Style calls are no longer used. By loading a style sheet (see gui/style.css), or calling AG_SetStyle(), style attributes (such as "font-size" or "color") may be set on a global, per-widget, or per-window basis. Default attributes are inherited from the parent widgets. - GUI: Font sizes may now be set dynamically (application-wide or on specific windows). See AG_WindowSetZoom(3), AG_ZoomIn(3) and AG_ZoomOut(3). - GUI: Implement AG_BindStdGlobalKeys(). It is recommended for setting up standard shortcuts for zoom controls and application exit. - GUI: Implement native MacOS X Cocoa driver "cocoa"; see AG_DriverCOCOA(3). - GUI: Significant improvements in CPU usage and rendering efficiency of standard GUI widgets. Eliminated unnecessary redraws and periodic tests in many instances where exclusive access to binding data can be guaranteed. - CORE: Introduce new AG_Timer(3) API, replacing the old AG_Timeout(3). The AG_Timer(3) code is integrated with the new AG_EventLoop(3) such that safe free-threaded timer operation can be guaranteed on all platforms. Unless --disable-legacy is used, old AG_Timeout() calls are defined as wrappers around the new API. - CORE: Introduce basic AG_Db(3) interface with included backends "hash", "btree" and "mysql". - CORE: Introduce the AG_TextElement(3) for easier handling of dynamically allocated, multilingual text buffers. - AG_Pane: Clean up division/expansion code, replace confusing flags with simpler AG_PaneResizeAction() interface. - AG_Surface: Remove unused AG_PixelFormat argument to AG_ReadSurface(). - AG_Surface: Enforce alignment on 4-byte boundary. - AG_Surface: Honor source x-offset (thanks pi31415!). - AG_Combo: Pin popup menus to parent window; set WM_COMBO hint so that popup menus interact correctly with most window managers. - AG_Keyboard: Implement keysym database functions AG_LookupKeyName(), AG_LookupKeySym(). Provide AG_CompareKeyMods() for comparing modifier states in a simpler way. - AG_Console: Improve scrolling and selection behavior; make autoscrolling the default. Add export to txt and select/copy operations. - AG_Console: Remove AG_ConsoleSetFont(), since fonts are now handled generically by AG_SetStyle(). - AG_Console: AG_ConsoleAppendLine() may now fail returning NULL. - AG_Console: Add AG_ConsoleMsgEdit() for updating an existing line. The "benchmark" in agartest demonstrates this feature nicely. - AG_Console: Implement AG_ConsoleExportText(). - AG_Window: Add AG_WINDOW_MAIN flag. An automatic break out of AG_EventLoop() is done whenever the (last) window with the MAIN flag is destroyed. - AG_Window: Implement AG_WindowSetOpacity() and FADEIN/FADEOUT option (requires a compositing WM). - AG_Window: Add AG_WindowNewSw(), for creating windows under specific instances of single-window drivers. - AG_Window: Use queues to guarantee safe free-threaded operation of AG_WindowShow() and AG_WindowHide() with all drivers. - AG_Window: Implement auto-tiling behavior with TILING option. - AG_Window: Implement pinning; see AG_WindowPin(), AG_WindowMakeTransient(). - GUI: Implement stereographic 3D display mode. To request a stereographic visual, the Agar driver should be initialized with "stereo" option. - GUI: In single-window mode, auto-tile minimized window icons correctly. - GUI: Move standard clipping and texture management code for OpenGL drivers to drv_gl_common.c. - GUI: Avoid redundant surface conversions to native GL format. - WGL Driver: Rewrite of keyboard handling code. - WGL Driver: Honor AG_WINDOW_KEEPABOVE. - GLX Driver: If Xinerama extension is available, have GetDisplaySize() query Xinerama and return the dimensions of the first screen only. - GLX Driver: Always specify an EWMH-compliant window type; set precise Motif functions / decorations / input hints. - GUI: Improve efficiency of text areas embedded into widgets (such as AG_Numerical(3)) by enabling exclusive buffer access (EXCL option). - GUI: Implement AG_ColorFromString(). - AG_Scrollbar: Provide EXCL and AUTOSIZE options. New "inc" binding for setting the scrolling increment. - AG_Scrollbar: Now handles clicks outside of control bar by seeking progressively to match the behavior of most other GUIs. - AG_Text: Add AG_TextTabWidth() for setting rendering tab width (subject to AG_PushTextState() attribute stack). - AG_Text: Add AG_UnusedFont() for decrementing reference count on a font. - AG_Button: Provide an EXCL option. Remove MOUSEOVER code since mouseover style is now handled generically. - AG_Text: Add fontconfig support to AG_FetchFont(), if available. - AG_Text: Fix multithread behavior of AG_TextTmsg(). - AG_ProgressBar: Add EXCL option. - AG_Text: AG_TextRender() may now fail and return NULL. - AG_Menu: Fix modal behavior of AG_MenuExpand()-generated popup windows. - AG_Menu: Implement AG_MenuCollapseAll(). - AG_Widget: Added USE_MOUSEOVER option and MOUSEOVER flag. - AG_Widget: Added USE_TEXT option and 'font-changed' event, so we can effectively deal with dynamic font changes required by zooming. Widgets which map surfaces generated by AG_TextRender() are expected to enable USE_TEXT and implement a 'font-changed' handler. - AG_File: Implement AG_RegisterFileExtMappings(3). - AG_FileDlg: Implement user-settable "mask hidden files" (MASK_HIDDEN) and "filter by extension" (MASK_EXT) options. - AG_FileDlg: Use the ag_core AG_User(3) interface to determine home directory. - AG_FileDlg: Avoid a duplicate refresh when widget initially appears. - AG_FileDlg: Cosmetic fixes; add flags to hide specific elements. - AG_Editable: Implement buffer access and control interfaces (see manual page, "BUFFER ACCESS ROUTINES" section). - AG_Editable: Textboxes may now bind to AG_Text(3) elements; added MULTILINGUAL option and AG_TextboxSetLang(). - AG_Editable: Implement new clipboard interface. - AG_Editable: Improve scrolling behavior, allow pixel-based as well as line and character-based scrolling queries. - AG_Editable: With the word-wrapping feature, consider all possible Unicode space characters, not only isspace(). - AG_Textbox: Inherits the above changes to AG_Editable(3); added EXCL option. - AG_Tlist: Add AG_TlistSetIconWidth(), `tlist-return' event. - AG_Slider: Add EXCL option. - GUI: Implement AG_Color(3) interface; add "color" binding to AG_HSVPal(3). - GUI: Handle top-down encoded images correctly in AG_SurfaceFromBMP(). - GUI: Implement AG_DirDlg(3) widget as an alternative to AG_FileDlg(3) for selecting directories only. - GUI: Store tunable GUI settings in agConfig. - GUI: Process driver options passed to AG_InitGraphics() - GUI: Implement AG_SetFont() and AG_SetStyle() functions, for setting style attributes on a per-widget basis. - GUI: Added globally-inheritable widget style attributes "font-family", "font-size", "font-weight" and "color" (see STYLE PROPERTIES section in AG_Widget(3)). - GUI: Implement AG_RedrawOnChange(), AG_RedrawOnTick() - GUI: Implement AG_SetVideoSurfaceSDL() operation for changing the video context at runtime with sdl* drivers. - GUI: The "polled label" feature of AG_Label(3) is now implemented using the more general AG_PrintfP() (see the new AG_String(3) interface). - GUI: Fix MacOS X build if _USE_SDL_FRAMEWORK is set. - AG_Table: Don't compare cells across columns when restoring selection state in AG_TableBegin() / AG_TableEnd(). - AG_DriverMw: Create a windowless "root" driver instance, so we can handle things like X server connections more efficiently. - New built-in conversion units: EnergyPerSubstanceAmount, MolarHeatCapacity, Resistivity, ThermalConductivity, ThermalExpansion, Density. - AG_Notebook: Fix memory leak of container widgets on detach. - AG_Notebook: Use an embedded AG_Label to display text labels. - AG_GLView: Implement background fill (BGFILL) and underlay options. - GUI: Added AG_UsingGL() and AG_UsingSDL() test functions. - GUI: In AG_TextCache(3), use a more efficient expiration policy which does not require timestamps. - CORE: Document all routines related to C strings in AG_String(3). - CORE: Implement a formatting engine built into Agar, AG_Printf(3). This extends the standard printf(3) functionality with support for custom modifiers and formatting routines. The AG_PrintfP(3) interface also provide a generalized, non-GUI version of "polled labels" of AG_Label(3). - MATH: Implement AG_Printf(3) modifiers; see M_String(3). - CORE: Introduce AG_User(3) user information access routines. - CORE: Introduce AG_Net(3) cross-platform network API. - CORE: Implement AG_BindVariable(), AG_DerefVariable(), AG_CompareVariables(). - CORE: AG_InitCore() now allows NULL as progname argument. - AG_DataSource(3): Implement AG_OpenNetSocket() and AG_DataSourceRealloc(). Document the internal API to allow user-defined sources. - Prevent binary structure differences when compiling threaded vs. non-threaded and debug vs. non-debug (thanks reinoud!). - Define the global GUI variables (agKbdDelay, agText*, etc.) in ag_gui. agConfig is no longer auto-loaded in AG_InitCore(), so libraries such as ag_gui have an opportunity to create variable bindings before loading. - In AG_ObjectFind(), recognize pathnames terminating in "/". - CORE: Implement AG_ObjectGetName() variant to AG_ObjectCopyName(). - CORE: Implement AG_ObjectLoadFromDB(), AG_ObjectSaveToDB(). - CORE: Implement AG_GetStringP() variant to AG_GetString(). - CORE: Implement AG_ObjectGetInheritHier(), AG_ObjectGetInheritHierString(). - AU: Introduce AU(3) audio interface. - MATH: When compiling for SSE, ignore the configure-specified precision and force M_Vector[34], M_Matrix44 and M_Color into single-precision. - MATH: Implement M_Polyhedron(3); document M_PointSet(3) interface. - MATH: Implement SSE versions of additional M_Matrix(3)/M_Vector(3) operations. [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-03-28 04:20:14 -0400 (Mon, 28 Mar 2016) New Revision: 9869 Modified: trunk/core/net.c Log: agNetOps->destroy can be NULL Modified: trunk/core/net.c =================================================================== ... [More] --- trunk/core/net.c2016-03-28 06:11:19 UTC (rev 9868) +++ trunk/core/net.c2016-03-28 08:20:14 UTC (rev 9869) < at >< at > -500,7 +500,7 < at >< at > void AG_DestroyNetworkSubsystem(void) { -if (agNetOps != NULL) { +if (agNetOps != NULL && agNetOps->destroy != NULL) { agNetOps->destroy(); } agNetOps = NULL; [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-03-25 11:39:31 -0400 (Fri, 25 Mar 2016) New Revision: 9859 Modified: trunk/core/event.c trunk/core/net.c trunk/core/net_bsd.c trunk/core/object.c trunk/core/prop.c trunk/core/variable.c trunk/gui/box.c ... [More] trunk/gui/button.c trunk/gui/checkbox.c trunk/gui/drv_glx.c trunk/gui/drv_sdl_common.c trunk/gui/drv_sdlgl.c trunk/gui/drv_sw.c trunk/gui/fspinbutton.c trunk/gui/hsvpal.c trunk/gui/keyboard.c trunk/gui/menu_view.c trunk/gui/mfspinbutton.c trunk/gui/mpane.c trunk/gui/mspinbutton.c trunk/gui/numerical.c trunk/gui/scrollbar.c trunk/gui/slider.c trunk/gui/socket.c trunk/gui/spinbutton.c trunk/gui/table.c trunk/gui/treetbl.c trunk/gui/widget_legacy.c trunk/math/m_plotter.c Log: silence -Wswitch warnings Modified: trunk/core/event.c =================================================================== --- trunk/core/event.c2016-03-25 15:39:11 UTC (rev 9858) trunk/core/event.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -1513,6 1513,8 < at >< at > FD_SET(es->ident, &wrFds); if (es->ident > nFds) { nFds = es->ident; } break; default: break; } } Modified: trunk/core/net.c =================================================================== --- trunk/core/net.c2016-03-25 15:39:11 UTC (rev 9858) trunk/core/net.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -200,6 200,8 < at >< at > case AG_NET_INET6: memcpy(naDup->na_inet6.addr, na->na_inet6.addr, sizeof(naDup->na_inet6..addr)); break; default: break; } if (na->sNum != NULL) { naDup->sNum = TryStrdup(na->sNum); } if (na->sName != NULL) { naDup->sName = TryStrdup(na->sName); } < at >< at > -230,6 232,8 < at >< at > case AG_NET_INET6: diff = (b->na_inet6.addr - a->na_inet6.addr); if (diff != 0) { return (diff); } default: break; } return (0); } Modified: trunk/core/net_bsd.c =================================================================== --- trunk/core/net_bsd.c2016-03-25 15:39:11 UTC (rev 9858) trunk/core/net_bsd.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -128,6 128,8 < at >< at > *saLen = sizeof(struct sockaddr_un); } break; default: break; } } < at >< at > -168,6 170,8 < at >< at > } break; #endif /* AF_INET6 */ default: break; } AG_SetError("Bad address family"); return (NULL); Modified: trunk/core/object.c =================================================================== --- trunk/core/object.c2016-03-25 15:39:11 UTC (rev 9858) trunk/core/object.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -1263,6 1263,7 < at >< at > case AG_VARIABLE_LONG_DOUBLE: AG_WriteLongDouble(ds, *(long double *)p); break; #endif case AG_VARIABLE_STRING: AG_WriteString(ds, V->data.s);break; default: break; } AG_UnlockVariable(V); Modified: trunk/core/prop.c =================================================================== --- trunk/core/prop.c2016-03-25 15:39:11 UTC (rev 9858) trunk/core/prop.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -80,6 80,7 < at >< at > case AG_PROP_SINT16:AG_SetSint16(obj, key, (Sint16)va_arg(ap,int));break; case AG_PROP_UINT32:AG_SetUint32(obj, key, va_arg(ap,Uint32));break; case AG_PROP_SINT32:AG_SetSint32(obj, key, va_arg(ap,Sint32));break; default:break; } va_end(ap); AG_ObjectUnlock(obj); Modified: trunk/core/variable.c =================================================================== --- trunk/core/variable.c2016-03-25 15:39:11 UTC (rev 9858) trunk/core/variable.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -134,6 134,8 < at >< at > } Vdst->info.size = 0; break; default: break; } return (0); } < at >< at > -201,6 203,8 < at >< at > case AG_VARIABLE_CONST_STRING: V->fn.fnString(ev, V->data.s, V->info.size); break; default: break; } return (0); } Modified: trunk/gui/box.c =================================================================== --- trunk/gui/box.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/box.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -273,10 273,12 < at >< at > switch (box->hAlign) { case AG_BOX_CENTER:x = wAvail/2 - totFixed/2;break; case AG_BOX_RIGHT:x = wAvail - totFixed;break; default:break; } switch (box->vAlign) { case AG_BOX_CENTER:y = hAvail/2 - totFixed/2;break; case AG_BOX_BOTTOM:y = hAvail - totFixed;break; default:break; } } OBJECT_FOREACH_CHILD(chld, box, ag_widget) { Modified: trunk/gui/button.c =================================================================== --- trunk/gui/button.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/button.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -410,7 410,7 < at >< at > static int GetState(AG_Button *bu, AG_Variable *binding, void *p) { -int v = 0; int v; switch (AG_VARIABLE_TYPE(binding)) { case AG_VARIABLE_INT: < at >< at > -437,6 437,9 < at >< at > case AG_VARIABLE_P_FLAG32: v = (int)(*(Uint32 *)p & (Uint32)binding->info.bitmask); break; default: v = 0; break; } if (bu->flags & AG_BUTTON_INVSTATE) { v = !v; < at >< at > -472,6 475,8 < at >< at > case AG_VARIABLE_P_FLAG32: AG_SETFLAGS(*(Uint32 *)p, (Uint32)binding->info.bitmask, v); break; default: break; } AG_Redraw(bu); } Modified: trunk/gui/checkbox.c =================================================================== --- trunk/gui/checkbox.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/checkbox.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -389,6 389,8 < at >< at > (int)*state); } break; default: break; } AG_UnlockVariable(stateb); AG_ObjectUnlock(cb); Modified: trunk/gui/drv_glx.c =================================================================== --- trunk/gui/drv_glx.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/drv_glx.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -470,6 470,7 < at >< at > case AG_KEY_RALT: ms |= AG_KEYMOD_RALT; break; case AG_KEY_LMETA: ms |= AG_KEYMOD_LMETA; break; case AG_KEY_RMETA: ms |= AG_KEYMOD_RMETA; break; default: break; } } } < at >< at > -1996,6 1997,8 < at >< at > a->y -= 100; if (a->y < 0) { a->y = 0; } break; default: break; } } Modified: trunk/gui/drv_sdl_common.c =================================================================== --- trunk/gui/drv_sdl_common.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/drv_sdl_common.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -767,13 767,10 < at >< at > AG_DriverSw *dsw = (AG_DriverSw *)drv; AG_Window *win, *winTop = NULL; -switch (dev->type) { -case AG_DRIVER_MOUSE_BUTTON_UP: if (dev->type == AG_DRIVER_MOUSE_BUTTON_UP) { dsw->winop = AG_WINOP_NONE; dsw->winSelected = NULL; -break; } - AG_FOREACH_WINDOW_REVERSE(win, dsw) { AG_ObjectLock(win); < at >< at > -858,15 855,14 < at >< at > AG_ProcessKey(drv->kbd, win, AG_KEY_PRESSED, dev->data.key.ks, dev->data.key.ucs); break; default: break; } AG_ObjectUnlock(win); } -switch (dev->type) { -case AG_DRIVER_MOUSE_MOTION: -if (winTop == NULL) { -AGDRIVER_CLASS(drv)->unsetCursor(drv); -} -break; if (dev->type == AG_DRIVER_MOUSE_MOTION && winTop == NULL) { AGDRIVER_CLASS(drv)->unsetCursor(drv); } return (0); } Modified: trunk/gui/drv_sdlgl.c =================================================================== --- trunk/gui/drv_sdlgl.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/drv_sdlgl.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -249,6 249,8 < at >< at > goto fail; } break; default: break; } if ( sgl->outFrame == sgl->outLast) { Modified: trunk/gui/drv_sw.c =================================================================== --- trunk/gui/drv_sw.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/drv_sw.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -376,6 376,8 < at >< at > case AG_WINOP_HRESIZE: WM_Resize(AG_WINOP_HRESIZE, win, xRel, yRel); break; default: break; } } < at >< at > -488,12 490,13 < at >< at > case AG_WINDOW_TC:xd = dsw->w/2 - w/2;yd = 0;break; case AG_WINDOW_TR:xd = dsw->w - w;yd = 0;break; case AG_WINDOW_ML:xd = 0;yd = dsw->h/2 - h/2;break; -case AG_WINDOW_ALIGNMENT_NONE: -case AG_WINDOW_MC:xd = dsw->w/2 - w/2;yd = dsw->h/2 - h/2;break; case AG_WINDOW_MR:xd = dsw->w - w;yd = dsw->h/2 - h/2;break; case AG_WINDOW_BL:xd = 0;yd = dsw->h - h;break; case AG_WINDOW_BC:xd = dsw->w/2 - w/2;yd = dsw->h - h;break; case AG_WINDOW_BR:xd = dsw->w - w;yd = dsw->h - h;break; default: case AG_WINDOW_ALIGNMENT_NONE: case AG_WINDOW_MC:xd = dsw->w/2 - w/2;yd = dsw->h/2 - h/2;break; } x = xd; y = yd; < at >< at > -515,6 518,7 < at >< at > case AG_WINDOW_TC: case AG_WINDOW_ML: case AG_WINDOW_MC: default: x = dx; if (x w > dsw->w) { x = 0; < at >< at > -600,6 604,7 < at >< at > *x = xOffs; *y = dsw->h/2 - h/2 yOffs; break; default: case AG_WINDOW_ALIGNMENT_NONE: case AG_WINDOW_MC: *x = dsw->w/2 - w/2 xOffs; Modified: trunk/gui/fspinbutton.c =================================================================== --- trunk/gui/fspinbutton.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/fspinbutton.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -121,6 121,8 < at >< at > fsu->max = 0x7fffffff-1; AG_TextboxSetIntOnly(fsu->input, 1); break; default: break; } } AG_Redraw(fsu); < at >< at > -170,6 172,8 < at >< at > case AG_VARIABLE_SINT32: AG_FSpinbuttonSetValue(fsu, (double)strtol(fsu->inTxt, NULL, 10)); break; default: break; } AG_UnlockVariable(valueb); < at >< at > -427,6 431,8 < at >< at > case AG_VARIABLE_SINT32: AG_TextboxPrintf(fsu->input, "%d", *(Sint32 *)value); break; default: break; } AG_UnlockVariable(valueb); } < at >< at > -468,6 474,7 < at >< at > case AG_VARIABLE_SINT16:ADD_CONVERTED(Sint16);break; case AG_VARIABLE_UINT32:ADD_CONVERTED(Uint32);break; case AG_VARIABLE_SINT32:ADD_CONVERTED(Sint32);break; default:break; } AG_PostEvent(NULL, fsu, "fspinbutton-changed", NULL); < at >< at > -509,6 516,7 < at >< at > case AG_VARIABLE_SINT16:CONV_VALUE(Sint16);break; case AG_VARIABLE_UINT32:CONV_VALUE(Uint32);break; case AG_VARIABLE_SINT32:CONV_VALUE(Sint32);break; default:break; } AG_PostEvent(NULL, fsu, "fspinbutton-changed", NULL); < at >< at > -536,6 544,8 < at >< at > case AG_VARIABLE_FLOAT: *(float *)min = (float)nmin; break; default: break; } AG_UnlockVariable(minb); } < at >< at > -555,6 565,8 < at >< at > case AG_VARIABLE_FLOAT: *(float *)max = (float)nmax; break; default: break; } AG_UnlockVariable(maxb); } Modified: trunk/gui/hsvpal.c =================================================================== --- trunk/gui/hsvpal.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/hsvpal.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -77,6 77,8 < at >< at > case AG_VARIABLE_UINT8: a = (int)((*(Uint8 *)p)); break; default: break; } AG_UnlockVariable(bAlpha); return (a); < at >< at > -102,6 104,8 < at >< at > case AG_VARIABLE_UINT8: *(Uint8 *)pAlpha = (Uint8)a; break; default: break; } AG_UnlockVariable(bAlpha); AG_Redraw(pal); < at >< at > -143,6 147,8 < at >< at > ((Uint8 *)v)[1] = g; ((Uint8 *)v)[2] = b; break; default: break; } AG_UnlockVariable(bv); } < at >< at > -172,6 178,8 < at >< at > ((Uint8 *)v)[2] = b; ((Uint8 *)v)[3] = a; break; default: break; } AG_UnlockVariable(bv); } < at >< at > -391,6 399,8 < at >< at > case AG_VARIABLE_UINT8: *(Uint8 *)pAlpha = (Uint8)(x/pal->rAlpha.w); break; default: break; } AG_UnlockVariable(bAlpha); < at >< at > -474,6 484,8 < at >< at > AG_NumericalSetIncrement(num, 1.0); AG_NumericalSetPrecision(num, "f", 0); break; default: break; } AG_UnlockVariable(bAlpha); } < at >< at > -636,6 648,8 < at >< at > case AG_HSVPAL_SEL_A: UpdateAlpha(pal, x); break; default: break; } } Modified: trunk/gui/keyboard.c =================================================================== --- trunk/gui/keyboard.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/keyboard.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -303,6 303,7 < at >< at > case AG_KEY_LMETA:ms |= AG_KEYMOD_LMETA;break; case AG_KEY_RMETA:ms |= AG_KEYMOD_RMETA;break; case AG_KEY_MODE:ms |= AG_KEYMOD_MODE;break; default:break; } break; case AG_KEY_RELEASED: < at >< at > -320,6 321,7 < at >< at > case AG_KEY_LMETA:ms &= ~AG_KEYMOD_LMETA;break; case AG_KEY_RMETA:ms &= ~AG_KEYMOD_RMETA;break; case AG_KEY_MODE:ms &= ~AG_KEYMOD_MODE;break; default:break; } break; default: < at >< at > -421,6 423,8 < at >< at > case AG_KEY_LCTRL: case AG_KEY_RCTRL: return (0); default: break; } } Modified: trunk/gui/menu_view.c =================================================================== --- trunk/gui/menu_view.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/menu_view.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -136,6 136,8 < at >< at > case AG_MENU_INT32_FLAGS: val = *(Uint32 *)mi->bind_p & mi->bind_flags; break; default: break; } return (mi->bind_invert ? !val : val); } < at >< at > -144,8 146,6 < at >< at > SetItemBoolValue(AG_MenuItem *mi) { switch (mi->bind_type) { -case AG_MENU_NO_BINDING: -break; case AG_MENU_INT_BOOL: { int *boolp = (int *)mi->bind_p; < at >< at > -182,6 182,9 < at >< at > AG_INVFLAGS(*flags, mi->bind_flags); } break; case AG_MENU_NO_BINDING: default: break; } } Modified: trunk/gui/mfspinbutton.c =================================================================== --- trunk/gui/mfspinbutton.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/mfspinbutton.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -120,6 120,8 < at >< at > AG_BindDouble(fsu, "max", &fsu->max); } break; default: break; } AG_MFSpinbuttonUpdate(fsu); } < at >< at > -167,6 169,8 < at >< at > case AG_VARIABLE_SINT32: StrlcpyInt(sx, (int)(*(Sint32 *)value), sizeof(sx)); break; default: break; } AG_UnlockVariable(valueb); < at >< at > -205,6 209,8 < at >< at > case AG_VARIABLE_SINT32: StrlcpyInt(sy, (int)(*(Sint32 *)value), sizeof(sy)); break; default: break; } Strlcpy(s, sx, sizeof(s)); Strlcat(s, fsu->sep, sizeof(s)); < at >< at > -234,6 240,8 < at >< at > case AG_KEY_DOWN: AG_MFSpinbuttonAddValue(fsu, "yvalue", fsu->inc); break; default: break; } } < at >< at > -530,6 538,8 < at >< at > *(float *)value inc > *max ? *max : *(float *)value inc; break; default: break; } AG_PostEvent(NULL, fsu, "mfspinbutton-changed", "%s", which); < at >< at > -566,6 576,8 < at >< at > nvalue > *max ? *max : (float)nvalue; break; default: break; } AG_PostEvent(NULL, fsu, "mfspinbutton-changed", "%s", which); < at >< at > -592,6 604,8 < at >< at > case AG_VARIABLE_FLOAT: *(float *)min = (float)nmin; break; default: break; } AG_UnlockVariable(minb); AG_ObjectUnlock(fsu); < at >< at > -612,6 626,8 < at >< at > case AG_VARIABLE_FLOAT: *(float *)max = (float)nmax; break; default: break; } AG_UnlockVariable(maxb); AG_ObjectUnlock(fsu); Modified: trunk/gui/mpane.c =================================================================== --- trunk/gui/mpane.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/mpane.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -75,6 75,7 < at >< at > switch (layout) { case AG_MPANE1: default: AG_ObjectAttach(mp, mp->panes[0]); WIDGET(mp->panes[0])->flags |= AG_WIDGET_EXPAND; mp->npanes = 1; Modified: trunk/gui/mspinbutton.c =================================================================== --- trunk/gui/mspinbutton.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/mspinbutton.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -90,6 90,8 < at >< at > sbu->min = -0x7fffffff 1; sbu->max = 0x7fffffff-1; break; default: break; } } AG_Redraw(sbu); < at >< at > -114,6 116,8 < at >< at > case AG_KEY_DOWN: AG_MSpinbuttonAddValue(sbu, "yvalue", sbu->inc); break; default: break; } } < at >< at > -350,6 354,8 < at >< at > Snprintf(sbu->inTxt, sizeof(sbu->inTxt), "%d%s%d", (int)*(Sint32 *)xvalue, sbu->sep, (int)*(Sint32 *)yvalue); break; default: break; } AG_UnlockVariable(xvalueb); AG_UnlockVariable(yvalueb); < at >< at > -408,6 414,8 < at >< at > *(Sint32 *)value inc <= *max) *(Sint32 *)value = inc; break; default: break; } AG_PostEvent(NULL, sbu, "mspinbutton-changed", "%s", which); < at >< at > -538,6 546,8 < at >< at > } } break; default: break; } va_end(ap); Modified: trunk/gui/numerical.c =================================================================== --- trunk/gui/numerical.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/numerical.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -347,6 347,7 < at >< at > case AG_VARIABLE_UINT64: SET_DEF(AG_SetUint64, 0ULL, 0xffffffffffffffffULL, 1ULL); break; case AG_VARIABLE_SINT64: SET_DEF(AG_SetSint64, -0x7fffffffffffffffLL, 0x7fffffffffffffffLL, 1LL); break; #endif default: break; } switch (AG_VARIABLE_TYPE(V)) { case AG_VARIABLE_FLOAT: < at >< at > -375,6 376,8 < at >< at > case AG_KEY_DOWN: AG_NumericalDecrement(num); break; default: break; } } < at >< at > -438,6 441,8 < at >< at > # endif break; #endif default: break; } AG_PostEvent(NULL, num, "numerical-changed", NULL); < at >< at > -583,6 588,7 < at >< at > case AG_VARIABLE_UINT64: Snprintf(s, sizeof(s), "%llu", (unsigned long long)*(Uint64 *)value); break; case AG_VARIABLE_SINT64: Snprintf(s, sizeof(s), "%lld", (long long)*(Sint64 *)value); break; #endif default: break; } if (strcmp(num->inTxt, s) != 0) { AG_TextboxSetString(num->input, s); < at >< at > -776,6 782,7 < at >< at > case AG_VARIABLE_UINT64:ADD_INT(Uint64);break; case AG_VARIABLE_SINT64:ADD_INT(Sint64);break; #endif default:break; } AG_PostEvent(NULL, num, "numerical-changed", NULL); < at >< at > -849,6 856,7 < at >< at > case AG_VARIABLE_UINT64:SUB_INT(Uint64);break; case AG_VARIABLE_SINT64:SUB_INT(Sint64);break; #endif default:break; } AG_PostEvent(NULL, num, "numerical-changed", NULL); Modified: trunk/gui/scrollbar.c =================================================================== --- trunk/gui/scrollbar.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/scrollbar.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -145,6 145,7 < at >< at > case AG_VARIABLE_UINT64:GET_PX_COORDS(Uint64);break; case AG_VARIABLE_SINT64:GET_PX_COORDS(Sint64);break; #endif default:break; } AG_UnlockVariable(bVis); < at >< at > -212,6 213,7 < at >< at > case AG_VARIABLE_UINT64:MAP_PX_COORDS(Uint64);break; case AG_VARIABLE_SINT64:MAP_PX_COORDS(Sint64);break; #endif default:break; } AG_PostEvent(NULL, sb, "scrollbar-changed", NULL); < at >< at > -280,6 282,7 < at >< at > case AG_VARIABLE_UINT64:INCREMENT(Uint64);break; case AG_VARIABLE_SINT64:INCREMENT(Sint64);break; #endif default:break; } AG_PostEvent(NULL, sb, "scrollbar-changed", NULL); < at >< at > -322,6 325,7 < at >< at > case AG_VARIABLE_UINT64:DECREMENT(Uint64);break; case AG_VARIABLE_SINT64:DECREMENT(Sint64);break; #endif default:break; } AG_PostEvent(NULL, sb, "scrollbar-changed", NULL); < at >< at > -616,6 620,7 < at >< at > case AG_VARIABLE_UINT64: SET_DEF(AG_SetUint64, 0ULL, 0xffffffffffffffffULL, 1ULL); break; case AG_VARIABLE_SINT64: SET_DEF(AG_SetSint64, 0LL, 0x7fffffffffffffffLL, 1LL); break; #endif default: break; } AG_UnlockVariable(V); Modified: trunk/gui/slider.c =================================================================== --- trunk/gui/slider.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/slider.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -250,6 250,7 < at >< at > case AG_VARIABLE_UINT64:SEEK_TO_POSITION(Uint64);break; case AG_VARIABLE_SINT64:SEEK_TO_POSITION(Sint64);break; #endif default:break; } AG_PostEvent(NULL, sl, "slider-changed", NULL); < at >< at > -304,6 305,7 < at >< at > case AG_VARIABLE_UINT64:INCREMENT(Uint64);break; case AG_VARIABLE_SINT64:INCREMENT(Sint64);break; #endif default:break; } AG_PostEvent(NULL, sl, "slider-changed", NULL); < at >< at > -342,6 344,7 < at >< at > case AG_VARIABLE_UINT64:DECREMENT(Uint64);break; case AG_VARIABLE_SINT64:DECREMENT(Sint64);break; #endif default:break; } AG_PostEvent(NULL, sl, "slider-changed", NULL); < at >< at > -511,6 514,7 < at >< at > case AG_VARIABLE_UINT64: SET_DEF(AG_SetUint64, 0ULL, 0xffffffffffffffffULL, 1ULL); break; case AG_VARIABLE_SINT64: SET_DEF(AG_SetSint64, -0x7fffffffffffffffLL, 0x7fffffffffffffffLL, 1LL); break; #endif default: break; } AG_UnlockVariable(V); Modified: trunk/gui/socket.c =================================================================== --- trunk/gui/socket.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/socket.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -194,8 194,10 < at >< at > return (int)(*(Uint16 *)p & (Uint16)binding->info.bitmask); case AG_VARIABLE_P_FLAG32: return (int)(*(Uint32 *)p & (Uint32)binding->info.bitmask); default: return (0); } -return (-1); return (0); } #if 0 < at >< at > -211,6 213,7 < at >< at > case AG_VARIABLE_SINT16:return (int)(*(Sint16 *)p); case AG_VARIABLE_UINT32:return (int)(*(Uint32 *)p); case AG_VARIABLE_SINT32:return (int)(*(Sint32 *)p); default: } return (-1); } < at >< at > -311,6 314,8 < at >< at > case AG_VARIABLE_P_FLAG32: AG_SETFLAGS(*(Uint32 *)p, (Uint32)binding->info.bitmask, v); break; default: break; } AG_Redraw(sock); } Modified: trunk/gui/spinbutton.c =================================================================== --- trunk/gui/spinbutton.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/spinbutton.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -93,6 93,8 < at >< at > sbu->min = -0x7fffffff 1; sbu->max = 0x7fffffff-1; break; default: break; } } AG_Redraw(sbu); < at >< at > -111,6 113,8 < at >< at > case AG_KEY_DOWN: AG_SpinbuttonAddValue(sbu, -sbu->incr); break; default: break; } } < at >< at > -243,6 247,8 < at >< at > case AG_VARIABLE_SINT32: AG_TextboxPrintf(sbu->input, "%d", *(Sint32 *)p); break; default: break; } AG_UnlockVariable(value); } < at >< at > -348,6 354,8 < at >< at > *(Sint32 *)value inc > *max ? *max : *(Sint32 *)value inc; break; default: break; } AG_PostEvent(NULL, sbu, "spinbutton-changed", NULL); < at >< at > -446,6 454,8 < at >< at > i; } break; default: break; } va_end(ap); Modified: trunk/gui/table.c =================================================================== --- trunk/gui/table.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/table.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -973,6 973,7 < at >< at > /* XXX TODO hooks */ return (1); case AG_CELL_NULL: default: return (0); } return (1); < at >< at > -1963,6 1964,8 < at >< at > case AG_WIDGET_FILL: tc->flags |= AG_TABLE_COL_FILL; break; default: break; } } else { tc->flags |= AG_TABLE_COL_FILL; Modified: trunk/gui/treetbl.c =================================================================== --- trunk/gui/treetbl.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/treetbl.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -657,11 657,8 < at >< at > /* Set the default column width. */ if (width != NULL) { -switch (AG_WidgetParseSizeSpec(width, &col->w)) { -case AG_WIDGET_PERCENT: if (AG_WidgetParseSizeSpec(width, &col->w) == AG_WIDGET_PERCENT) col->w = col->w*WIDTH(tt)/100; -break; -} } else { col->w = 6; col->flags |= AG_TREETBL_COL_FILL; Modified: trunk/gui/widget_legacy.c =================================================================== --- trunk/gui/widget_legacy.c2016-03-25 15:39:11 UTC (rev 9858) trunk/gui/widget_legacy.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -55,6 55,8 < at >< at > case AG_VARIABLE_P_FLAG32: Vdst->info.bitmask = Vsrc->info.bitmask; break; default: break; } if (AG_VARIABLE_TYPE(Vdst) == AG_VARIABLE_STRING) { Vdst->info.size = Vsrc->info.size; Modified: trunk/math/m_plotter.c =================================================================== --- trunk/math/m_plotter.c2016-03-25 15:39:11 UTC (rev 9858) trunk/math/m_plotter.c2016-03-25 15:39:31 UTC (rev 9859) < at >< at > -554,6 554,8 < at >< at > if (x > ptr->r.w) { break; } } break; default: break; } } /* Second pass */ [Less]
Posted about 8 years ago by Agar-SVN
Author: vedge Date: 2016-03-25 02:19:09 -0400 (Fri, 25 Mar 2016) New Revision: 9856 Modified: trunk/ChangeLogs/Release-1.5.0.txt trunk/Makefile trunk/configure.in Log: add missing hundef() Modified: trunk/ChangeLogs/Release-1.5.0.txt ... [More] =================================================================== --- trunk/ChangeLogs/Release-1.5.0.txt2016-03-25 06:17:49 UTC (rev 9855) +++ trunk/ChangeLogs/Release-1.5.0.txt2016-03-25 06:19:09 UTC (rev 9856) < at >< at > -13,7 +13,7 < at >< at > distribution. Code previously in demos/ was moved to tests/. - Numerous fixes and improvements to the documentation; added some example code and images for the web and printable versions of the manual. [Less]