Skip to content

Commit

Permalink
qboolean --> qbool
Browse files Browse the repository at this point in the history
  • Loading branch information
disconn3ct committed Sep 9, 2005
1 parent 0682e15 commit 1cd2c78
Show file tree
Hide file tree
Showing 157 changed files with 865 additions and 865 deletions.
4 changes: 2 additions & 2 deletions Ctrl_EditBox.c
@@ -1,7 +1,7 @@
/*
* EditBox functions
*
* $Id: Ctrl_EditBox.c,v 1.3 2005-08-12 15:57:21 vvd0 Exp $
* $Id: Ctrl_EditBox.c,v 1.4 2005-09-09 11:00:26 disconn3ct Exp $
*/


Expand All @@ -27,7 +27,7 @@ void CEditBox_Init(CEditBox *e, int width, int max)
e->text[0] = 0;
}

void CEditBox_Draw(CEditBox *e, int x, int y, qboolean active)
void CEditBox_Draw(CEditBox *e, int x, int y, qbool active)
{
while (e->pos > e->disp + e->width - 1)
e->disp ++;
Expand Down
2 changes: 1 addition & 1 deletion Ctrl_EditBox.h
Expand Up @@ -19,7 +19,7 @@ typedef struct CEditBox_s

void CEditBox_Init(CEditBox *e, int width, int max)
;
void CEditBox_Draw(CEditBox *e, int x, int y, qboolean active)
void CEditBox_Draw(CEditBox *e, int x, int y, qbool active)
;
void CEditBox_Key(CEditBox *e, int key)
;
Expand Down
4 changes: 2 additions & 2 deletions Ctrl_PageViewer.c
Expand Up @@ -316,9 +316,9 @@ void CPageViewer_Draw(CPageViewer_t *viewer, int x, int y, int w, int h)
viewer->page->last_height = sh;
}

qboolean CPageViewer_Key(CPageViewer_t *viewer, int key)
qbool CPageViewer_Key(CPageViewer_t *viewer, int key)
{
qboolean ret = false;
qbool ret = false;

if (viewer->page == NULL)
return 0;
Expand Down
10 changes: 5 additions & 5 deletions Ctrl_PageViewer.h
Expand Up @@ -18,7 +18,7 @@ typedef struct CPageViewer_page_s

int current_line;
int width;
qboolean should_render;
qbool should_render;

// current settings
int last_height;
Expand All @@ -33,11 +33,11 @@ typedef struct CPageViewer_s
CPageViewer_page_t *page;

// options
qboolean show_title;
qboolean show_status;
qbool show_title;
qbool show_status;

// navigation mode
qboolean navigation_mode;
qbool navigation_mode;
document_rendered_link_t **current_links;
int current_link_index;
int current_links_total;
Expand All @@ -63,7 +63,7 @@ void CPageViewer_Back(CPageViewer_t *viewer, int level);
void CPageViewer_Draw(CPageViewer_t *viewer, int x, int y, int w, int h);

// handle keyboard
qboolean CPageViewer_Key(CPageViewer_t *viewer, int key);
qbool CPageViewer_Key(CPageViewer_t *viewer, int key);

// clear control
void CPageViewer_Clear(CPageViewer_t *viewer);
Expand Down
6 changes: 3 additions & 3 deletions EX_FileList.c
Expand Up @@ -168,7 +168,7 @@ extern void cvar_toggle (cvar_t *var);
//
// is current entry a dir ?
//
qboolean FL_IsCurrentDir(filelist_t *fl)
qbool FL_IsCurrentDir(filelist_t *fl)
{
if (fl->num_entries <= 0)
return true; // we can handle that
Expand Down Expand Up @@ -472,7 +472,7 @@ void FL_ReadDir(filelist_t *fl)
//
// search by name for next item
//
qboolean FL_Search(filelist_t *fl)
qbool FL_Search(filelist_t *fl)
{
int i;
char tmp[512];
Expand Down Expand Up @@ -573,7 +573,7 @@ void FL_CheckDisplayPosition(filelist_t *fl, int lines)
// keys handling
// returns: true if processed, false if ignored
//
qboolean FL_Key(filelist_t *fl, int key)
qbool FL_Key(filelist_t *fl, int key)
{
// check for search
if ((key >= ' ' && key <= '~') &&
Expand Down
20 changes: 10 additions & 10 deletions EX_FileList.h
Expand Up @@ -47,7 +47,7 @@ filetype_t;
//
typedef struct filedesc_s
{
qboolean is_directory;
qbool is_directory;
char name[_MAX_PATH+1];
char display[MAX_FILELIST_DISPLAY+1];
unsigned long size;
Expand All @@ -62,9 +62,9 @@ filedesc_t;
typedef struct filelist_s
{
char current_dir[_MAX_PATH+1];
qboolean error; // error reading dir
qboolean need_refresh; // dir is reread in draw func
qboolean need_resort; // dir is sorted in draw func
qbool error; // error reading dir
qbool need_refresh; // dir is reread in draw func
qbool need_resort; // dir is sorted in draw func

filedesc_t entries[MAX_FILELIST_ENTRIES];
int num_entries;
Expand All @@ -88,13 +88,13 @@ typedef struct filelist_s

// for searching
char search_string[MAX_SEARCH_STRING+1];
qboolean search_valid; // if is in search mode
qboolean search_dirty; // if should research
qboolean search_error; // not found
qbool search_valid; // if is in search mode
qbool search_dirty; // if should research
qbool search_error; // not found

// for cd ..
char cdup_name[_MAX_PATH+1];
qboolean cdup_find;
qbool cdup_find;
}
filelist_t;

Expand All @@ -109,7 +109,7 @@ void FL_Draw(filelist_t *, int x, int y, int w, int h);
// send key to list
// returns: true if processed, false if ignored
//
qboolean FL_Key(filelist_t *, int key);
qbool FL_Key(filelist_t *, int key);


//
Expand Down Expand Up @@ -170,7 +170,7 @@ int FL_GetCurrentEntryType(filelist_t *);
//
// is current entry a dir ?
//
qboolean FL_IsCurrentDir(filelist_t *);
qbool FL_IsCurrentDir(filelist_t *);


#endif // __EX_FILELIST_H__
12 changes: 6 additions & 6 deletions EX_browser.c
@@ -1,5 +1,5 @@
/*
$Id: EX_browser.c,v 1.7 2005-08-12 15:57:21 vvd0 Exp $
$Id: EX_browser.c,v 1.8 2005-09-09 11:00:26 disconn3ct Exp $
*/

#include "quakedef.h"
Expand Down Expand Up @@ -298,7 +298,7 @@ void Delete_Server(server_data *s)


char confirm_text[64];
qboolean confirmation;
qbool confirmation;
void (*confirm_func)(void);

void SB_Confirmation(const char *text, void (*func)(void))
Expand Down Expand Up @@ -502,11 +502,11 @@ void Serverinfo_Change(server_data *s)

// --

qboolean AddUnboundServer(char *addr)
qbool AddUnboundServer(char *addr)
{
int i;
server_data *s;
qboolean existed = false;
qbool existed = false;

if (sources[0]->serversn >= MAX_UNBOUND)
return false;
Expand Down Expand Up @@ -1874,7 +1874,7 @@ void Browser_Key(int key)
Browser_pos = (Browser_pos + 4)%4;
}

qboolean SearchNextServer(int pos)
qbool SearchNextServer(int pos)
{
int i;
char tmp[1024];
Expand Down Expand Up @@ -2402,7 +2402,7 @@ void Sources_Key(int key)
return;
}

qboolean SearchNextPlayer(int pos)
qbool SearchNextPlayer(int pos)
{
int i;
char tmp[1024];
Expand Down
2 changes: 1 addition & 1 deletion EX_browser_net.c
Expand Up @@ -21,7 +21,7 @@
#include "keys.h"
#include "menu.h"

extern qboolean useNewPing;
extern qbool useNewPing;

static int Sbar_ColorForMap (int m) {
m = bound(0, m, 13);
Expand Down
2 changes: 1 addition & 1 deletion EX_browser_ping.c
Expand Up @@ -38,7 +38,7 @@ typedef unsigned int socklen_t;

#define ICMP_MIN 8 // minimum 8 byte icmp packet (just header)

qboolean useNewPing = false;
qbool useNewPing = false;

int sock;

Expand Down
6 changes: 3 additions & 3 deletions EX_browser_sources.c
Expand Up @@ -59,11 +59,11 @@ void Delete_Source(source_data *s)

// returns true, if there were some problems (like domain-name addresses)
// which require the source to be dumped to file in corrected form
qboolean Update_Source_From_File(source_data *s, char *fname, server_data **servers, int *pserversn)
qbool Update_Source_From_File(source_data *s, char *fname, server_data **servers, int *pserversn)
{
FILE *f;
int length;
qboolean should_dump = false;
qbool should_dump = false;

//length = COM_FileOpenRead (fname, &f);
length = FS_FOpenFile(fname, &f);
Expand Down Expand Up @@ -142,7 +142,7 @@ void Precache_Source(source_data *s)
void Update_Source(source_data *s)
{
int i;
qboolean should_dump = false;
qbool should_dump = false;
server_data *servers[MAX_SERVERS];
int serversn = 0;

Expand Down
6 changes: 3 additions & 3 deletions EX_misc.c
Expand Up @@ -403,12 +403,12 @@ void StripName(char *namebuf)


// get float value of string, false on error
qboolean getFloatValue(char *string, float *val)
qbool getFloatValue(char *string, float *val)
{
// [sign] [digits] [.digits] [ {d | D | e | E }[sign]digits]

char *s;
qboolean percent = false;
qbool percent = false;

s = string;

Expand Down Expand Up @@ -494,7 +494,7 @@ qboolean getFloatValue(char *string, float *val)
}

// get integer value of string, false on error
qboolean getIntegerValue(char *string, int *val)
qbool getIntegerValue(char *string, int *val)
{
// [sign]digits || "0x" hex-digits

Expand Down
4 changes: 2 additions & 2 deletions EX_misc.h
Expand Up @@ -42,10 +42,10 @@ int GetUserNum(char *t);
void StripName(char *);

// get float value of string, false on error
qboolean getFloatValue(char *string, float *val);
qbool getFloatValue(char *string, float *val);

// get integer value of string, false on error
qboolean getIntegerValue(char *string, int *val);
qbool getIntegerValue(char *string, int *val);


#endif // __EX_MISC__H__
4 changes: 2 additions & 2 deletions auth.c
Expand Up @@ -55,10 +55,10 @@ char *Auth_Generate_Crc(void) {
return hash;
}

static qboolean verify_response(int index, unsigned char *hash) {
static qbool verify_response(int index, unsigned char *hash) {
int *n;
signed_buffer_t *p;
qboolean retval, failsafe = false;
qbool retval, failsafe = false;

if (!Modules_SecurityLoaded())
return failsafe;
Expand Down
14 changes: 7 additions & 7 deletions cd_linux.c
Expand Up @@ -35,12 +35,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "cdaudio.h"
#include "sound.h"

static qboolean cdValid = false;
static qboolean playing = false;
static qboolean wasPlaying = false;
static qboolean initialized = false;
static qboolean enabled = true;
static qboolean playLooping = false;
static qbool cdValid = false;
static qbool playing = false;
static qbool wasPlaying = false;
static qbool initialized = false;
static qbool enabled = true;
static qbool playLooping = false;
static float cdvolume;
static byte remap[100];
static byte playTrack;
Expand Down Expand Up @@ -93,7 +93,7 @@ static int CDAudio_GetAudioDiskInfo(void)
}


void CDAudio_Play(byte track, qboolean looping)
void CDAudio_Play(byte track, qbool looping)
{
struct cdrom_tocentry entry;
struct cdrom_ti ti;
Expand Down
14 changes: 7 additions & 7 deletions cd_win.c
Expand Up @@ -27,12 +27,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
extern HWND mainwindow;
extern cvar_t bgmvolume;

static qboolean cdValid = false;
static qboolean playing = false;
static qboolean wasPlaying = false;
static qboolean initialized = false;
static qboolean enabled = false;
static qboolean playLooping = false;
static qbool cdValid = false;
static qbool playing = false;
static qbool wasPlaying = false;
static qbool initialized = false;
static qbool enabled = false;
static qbool playLooping = false;
static float cdvolume;
static byte remap[100];
static byte cdrom;
Expand Down Expand Up @@ -101,7 +101,7 @@ static int CDAudio_GetAudioDiskInfo(void)
}


void CDAudio_Play(byte track, qboolean looping)
void CDAudio_Play(byte track, qbool looping)
{
DWORD dwReturn;
MCI_PLAY_PARMS mciPlayParms;
Expand Down
2 changes: 1 addition & 1 deletion cdaudio.h
Expand Up @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

int CDAudio_Init(void);
void CDAudio_Play(byte track, qboolean looping);
void CDAudio_Play(byte track, qbool looping);
void CDAudio_Stop(void);
void CDAudio_Pause(void);
void CDAudio_Resume(void);
Expand Down

0 comments on commit 1cd2c78

Please sign in to comment.