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

« back to all changes in this revision

Viewing changes to include/ncurses_dll.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-2007,2009 Free Software Foundation, Inc.              *
 
2
 * Copyright (c) 1998-2006,2007 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            *
25
25
 * sale, use or other dealings in this Software without prior written       *
26
26
 * authorization.                                                           *
27
27
 ****************************************************************************/
28
 
/* $Id: ncurses_dll.h,v 1.8 2009/04/04 22:26:27 tom Exp $ */
 
28
/* $Id: ncurses_dll.h,v 1.6 2007/03/10 19:21:49 tom Exp $ */
29
29
 
30
30
#ifndef NCURSES_DLL_H_incl
31
31
#define NCURSES_DLL_H_incl 1
37
37
#undef NCURSES_DLL
38
38
#define NCURSES_STATIC
39
39
 
40
 
#if defined(__CYGWIN__) || defined(__MINGW32__)
 
40
#if defined(__CYGWIN__)
41
41
#  if defined(NCURSES_DLL)
42
42
#    if defined(NCURSES_STATIC)
43
43
#      undef NCURSES_STATIC
76
76
#  define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
77
77
#endif
78
78
 
 
79
/*
 
80
 * For reentrant code, we map the various global variables into SCREEN by
 
81
 * using functions to access them.
 
82
 */
 
83
#define NCURSES_PUBLIC_VAR(name) _nc_##name
 
84
#define NCURSES_WRAPPED_VAR(type,name) extern type NCURSES_PUBLIC_VAR(name)(void)
 
85
 
79
86
#endif /* NCURSES_DLL_H_incl */