~ubuntu-branches/debian/sid/ncurses/sid-200908151540

« back to all changes in this revision

Viewing changes to include/nc_alloc.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-30 03:43:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081130034300-lw6qrujyjmv6e32x
Tags: 5.7+20081122-2
Adding patch from Samuel Thibault to ensure that aalib checks the
value returned by Gpm_GetEvent() and only proceeds if value == 1
(Closes: #506717).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
 
 * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc.              *
 
2
 * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
3
3
 *                                                                          *
4
4
 * Permission is hereby granted, free of charge, to any person obtaining a  *
5
5
 * copy of this software and associated documentation files (the            *
29
29
/****************************************************************************
30
30
 *  Author: Thomas E. Dickey                    1996-on                     *
31
31
 ****************************************************************************/
32
 
/* $Id: nc_alloc.h,v 1.17 2009/04/18 20:48:19 tom Exp $ */
 
32
/* $Id: nc_alloc.h,v 1.16 2008/09/27 22:30:33 tom Exp $ */
33
33
 
34
34
#ifndef NC_ALLOC_included
35
35
#define NC_ALLOC_included 1
74
74
extern NCURSES_EXPORT(void) _nc_free_tparm(void);
75
75
extern NCURSES_EXPORT(void) _nc_leaks_dump_entry(void);
76
76
extern NCURSES_EXPORT(void) _nc_leaks_tic(void);
77
 
 
78
 
#if NCURSES_SP_FUNCS
79
 
extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_free_and_exit)(SCREEN*, int) GCC_NORETURN;
80
 
#endif
81
 
 
82
77
#define ExitProgram(code) _nc_free_and_exit(code)
83
 
 
84
 
#endif /* NO_LEAKS, etc */
 
78
#endif
85
79
 
86
80
#ifndef HAVE_NC_FREEALL
87
81
#define HAVE_NC_FREEALL 0