Reformat .h files.
I did my best to exempt some of the bigger aligned blocks from the reformatting using the /* clang-format off */ and /* clang-format on */ tags. Probably some that shouldn't have been formatted were anyway; if you encounter them, please fix. The clang-format tags were left in on the basis that it's much easier to prune those out later than to put them back in, and it means that, modulo my custom version of clang-format, I should be able to run clang-format on the source tree again without changing anything, now that Pat has fixed the VA_DECL issues.
This commit is contained in:
@@ -11,52 +11,54 @@
|
||||
*/
|
||||
|
||||
#ifndef _H_tty_private
|
||||
# define _H_tty_private
|
||||
#define _H_tty_private
|
||||
|
||||
# ifndef _H_tty_public
|
||||
#ifndef _H_tty_public
|
||||
#include "mactty.h"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !TARGET_API_MAC_CARBON
|
||||
# include <QDOffscreen.h>
|
||||
# include <Gestalt.h>
|
||||
# include <Errors.h>
|
||||
#include <QDOffscreen.h>
|
||||
#include <Gestalt.h>
|
||||
#include <Errors.h>
|
||||
#endif
|
||||
|
||||
#define TA_TO_RGB(ta,rgb) (((rgb).red=(((ta)>>16)&0xff)*257),((rgb).green=(((ta)>>8)&0xff)*257),\
|
||||
((rgb).blue=((ta)&0xff)*257)),rgb
|
||||
#define TA_TO_RGB(ta, rgb) \
|
||||
(((rgb).red = (((ta) >> 16) & 0xff) * 257), \
|
||||
((rgb).green = (((ta) >> 8) & 0xff) * 257), \
|
||||
((rgb).blue = ((ta) &0xff) * 257)), \
|
||||
rgb
|
||||
|
||||
typedef struct tty_record {
|
||||
WindowPtr its_window ;
|
||||
WindowPtr its_window;
|
||||
|
||||
short font_number ;
|
||||
short font_size ;
|
||||
short char_width ;
|
||||
short row_height ;
|
||||
short ascent_height ;
|
||||
short font_number;
|
||||
short font_size;
|
||||
short char_width;
|
||||
short row_height;
|
||||
short ascent_height;
|
||||
|
||||
short x_size ;
|
||||
short y_size ;
|
||||
short x_curs ;
|
||||
short y_curs ;
|
||||
short x_size;
|
||||
short y_size;
|
||||
short x_curs;
|
||||
short y_curs;
|
||||
|
||||
GWorldPtr its_window_world ;
|
||||
BitMap its_bits ;
|
||||
GrafPtr offscreen_port ;
|
||||
GWorldPtr offscreen_world ;
|
||||
GWorldPtr its_window_world;
|
||||
BitMap its_bits;
|
||||
GrafPtr offscreen_port;
|
||||
GWorldPtr offscreen_world;
|
||||
#if CLIP_RECT_ONLY
|
||||
Rect invalid_rect ;
|
||||
Rect invalid_rect;
|
||||
#else
|
||||
RgnHandle invalid_part ;
|
||||
RgnHandle invalid_part;
|
||||
#endif
|
||||
|
||||
long attribute [ TTY_NUMBER_ATTRIBUTES ] ;
|
||||
long last_cursor ;
|
||||
long attribute[TTY_NUMBER_ATTRIBUTES];
|
||||
long last_cursor;
|
||||
|
||||
Boolean was_allocated ;
|
||||
Boolean curs_state ;
|
||||
Boolean uses_gworld ;
|
||||
} tty_record ;
|
||||
Boolean was_allocated;
|
||||
Boolean curs_state;
|
||||
Boolean uses_gworld;
|
||||
} tty_record;
|
||||
|
||||
|
||||
#endif /* _H_tty_private */
|
||||
#endif /* _H_tty_private */
|
||||
|
||||
Reference in New Issue
Block a user