summaryrefslogtreecommitdiffstats
path: root/glc.c
Commit message (Collapse)AuthorAgeFilesLines
* Use a log handler to modify abort() behaviourMarc-André Lureau2012-03-151-49/+49
| | | | | | | | | | | | | | | Be more library friendly, by not aborting in library errors. spice_common now includes a proper log handler that will abort by default when reaching a warning. SPICE_ABORT_LEVEL can be changed to modify run-time abort level. SPICE_DEBUG_LEVEL can be changed to be more verbose. By default, only log level more importants than WARNING. Only memory-related functions are allowed to abort(), since they are not recoverable errors in the library.
* Remove trailing blank linesDaniel P. Berrange2012-01-131-1/+0
| | | | Remove any blank lines at the end of all source files
* move WARN and WARN_ONCE to spice_common.hChristophe Fergeau2011-05-031-9/+2
|
* common,server: use ASSERT from spice_common.hChristophe Fergeau2011-05-031-2/+0
| | | | | | | spice_common.h provides an ASSERT macro, no need to duplicate it in many places. For now client/debug.h keeps its own copy since debug.h and spice_common.h have clashes on other macros which are trickier to unify.
* add #include <config.h> to all source filesChristophe Fergeau2011-05-031-0/+3
| | | | | | | | When using config.h, it must be the very first include in all source files since it contains #define that may change the compilation process (eg libc structure layout changes when it's used to enable large file support on 32 bit x86 archs). This commit adds it at the beginning of all .c and .cpp files
* common/gl: remove unused variableChristophe Fergeau2011-03-231-3/+2
| | | | | | | clang static analyzer warned that 'len' was computed but never used in glc_vertex2d. glc_stroke_line_dash has side effects so we have to call it, but we don't need to save its return value since it's not used.
* Fix spelling errors in comments and stringsAlexander Larsson2010-05-211-1/+1
|
* Use the spice allocator in common/Alexander Larsson2010-03-111-93/+35
|
* Define GL_GLEXT_PROTOTYPES in CFLAGS not in random places in the sourceAlexander Larsson2010-03-101-2/+0
|
* Use macros from <spice/macros.h> rather than duplicate themAlexander Larsson2010-03-091-3/+1
|
* Add emacs settings for indent according to spice styleguideAlexander Larsson2010-02-231-0/+1
|
* fresh startYaniv Kamay2009-10-141-0/+1582