~ubuntu-branches/ubuntu/utopic/geany/utopic

« back to all changes in this revision

Viewing changes to tagmanager/tm_symbol.c

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-12-10 07:43:26 UTC
  • mfrom: (3.3.7 sid)
  • Revision ID: package-import@ubuntu.com-20111210074326-s8yqbew5i20h33tf
Tags: 0.21-1ubuntu1
* Merge from Debian Unstable, remaining changes:
  - debian/patches/20_use_evince_viewer.patch:
     + use evince as viewer for pdf and dvi files
  - debian/patches/20_use_x_terminal_emulator.patch:
     + use x-terminal-emulator as terminal
  - debian/control
     + Add breaks on geany-plugins-common << 0.20
* Also fixes bugs:
  - Filter for MATLAB/Octave files filters everythign (LP: 885505)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include "tm_symbol.h"
14
14
 
15
15
 
16
 
#if GLIB_CHECK_VERSION (2, 10, 0)
17
 
/* Use GSlices if present */
18
 
 
19
16
#define SYM_NEW(T)      ((T) = g_slice_new0(TMSymbol))
20
17
#define SYM_FREE(T)     g_slice_free(TMSymbol, (T))
21
18
 
22
 
#else /* GLib < 2.10 */
23
 
 
24
 
static GMemChunk *sym_mem_chunk = NULL;
25
 
 
26
 
#define SYM_NEW(T) {\
27
 
        if (!sym_mem_chunk) \
28
 
                sym_mem_chunk = g_mem_chunk_new("TMSymbol MemChunk", sizeof(TMSymbol), 1024 \
29
 
                  , G_ALLOC_AND_FREE); \
30
 
        (T) = g_chunk_new0(TMSymbol, sym_mem_chunk);}
31
 
 
32
 
#define SYM_FREE(T) g_mem_chunk_free(sym_mem_chunk, (T))
33
 
 
34
 
#endif /* GLib version check */
35
 
 
36
19
 
37
20
void tm_symbol_print(TMSymbol *sym, guint level)
38
21
{