summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-13 02:58:57 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-13 02:58:57 +0000
commit6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch)
tree0ed465592509105fdbeab27fc12ddbb2e3590aa5 /osdep
parenteafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff)
downloadmpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2
mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep')
-rw-r--r--osdep/getch2-win.c34
-rw-r--r--osdep/glob-win.c8
-rw-r--r--osdep/keycodes.h2
-rw-r--r--osdep/macosx_finder_args.c6
-rw-r--r--osdep/mmap_anon.c6
-rw-r--r--osdep/mplayer.rc8
-rw-r--r--osdep/strsep.c2
-rw-r--r--osdep/timer-darwin.c14
-rw-r--r--osdep/timer-win2.c4
9 files changed, 42 insertions, 42 deletions
diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c
index 2fc8c0f446..b201a9d6df 100644
--- a/osdep/getch2-win.c
+++ b/osdep/getch2-win.c
@@ -59,7 +59,7 @@ static int getch2_internal(void)
INPUT_RECORD eventbuffer[128];
DWORD retval;
int i=0;
- if(!getch2_status)return -1;
+ if(!getch2_status)return -1;
/*check if there are input events*/
if(!GetNumberOfConsoleInputEvents(stdin,&retval))
{
@@ -67,18 +67,18 @@ static int getch2_internal(void)
return -1;
}
if(retval<=0)return -1;
-
- /*read all events*/
+
+ /*read all events*/
if(!ReadConsoleInput(stdin,eventbuffer,128,&retval))
{
printf("getch: can't read input events\n");
return -1;
}
-
+
/*filter out keyevents*/
- for (i = 0; i < retval; i++)
+ for (i = 0; i < retval; i++)
{
- switch(eventbuffer[i].EventType)
+ switch(eventbuffer[i].EventType)
{
case KEY_EVENT:
/*only a pressed key is interresting for us*/
@@ -114,26 +114,26 @@ static int getch2_internal(void)
case VK_DOWN:
return KEY_DOWN;
case VK_SHIFT:
- continue;
+ continue;
}
/*check for function keys*/
if(0x87 >= eventbuffer[i].Event.KeyEvent.wVirtualKeyCode && eventbuffer[i].Event.KeyEvent.wVirtualKeyCode >= 0x70)
return KEY_F + 1 + eventbuffer[i].Event.KeyEvent.wVirtualKeyCode - 0x70;
-
+
/*only characters should be remaining*/
- //printf("getch2: YOU PRESSED \"%c\" \n",eventbuffer[i].Event.KeyEvent.uChar.AsciiChar);
+ //printf("getch2: YOU PRESSED \"%c\" \n",eventbuffer[i].Event.KeyEvent.uChar.AsciiChar);
return eventbuffer[i].Event.KeyEvent.uChar.AsciiChar;
}
- break;
-
+ break;
+
case MOUSE_EVENT:
- case WINDOW_BUFFER_SIZE_EVENT:
- case FOCUS_EVENT:
+ case WINDOW_BUFFER_SIZE_EVENT:
+ case FOCUS_EVENT:
case MENU_EVENT:
default:
- //printf("getch2: unsupported event type");
- break;
- }
+ //printf("getch2: unsupported event type");
+ break;
+ }
}
return -1;
}
@@ -184,7 +184,7 @@ static const struct {
{ 65001, "UTF-8" },
{ 0, NULL }
};
-
+
char* get_term_charset(void)
{
static char codepage[10];
diff --git a/osdep/glob-win.c b/osdep/glob-win.c
index 427a30e7b0..6cf29efd5f 100644
--- a/osdep/glob-win.c
+++ b/osdep/glob-win.c
@@ -42,7 +42,7 @@ int glob(const char *pattern, int flags,
//printf("could not find a file matching your search criteria\n");
return 1;
}
- else
+ else
{
//printf("glob():ERROR:FindFirstFile: %i\n",GetLastError());
return 1;
@@ -69,9 +69,9 @@ int glob(const char *pattern, int flags,
else
{
//printf("glob: found file %s\n",found_file.cFileName);
- pglob->gl_pathc++;
+ pglob->gl_pathc++;
pglob->gl_pathv = realloc(pglob->gl_pathv,pglob->gl_pathc * sizeof(char*));
- pglob->gl_pathv[pglob->gl_pathc-1] = strdup(found_file.cFileName);
+ pglob->gl_pathv[pglob->gl_pathc-1] = strdup(found_file.cFileName);
}
}
FindClose(searchhndl);
@@ -98,7 +98,7 @@ int main(void){
for(i=0;i<gg.gl_pathc;i++)printf("GLOBED:%i %s\n",i,gg.gl_pathv[i]);
}
globfree(&gg);
-
+
return 0;
}
#endif
diff --git a/osdep/keycodes.h b/osdep/keycodes.h
index fd5a7f22b2..4d153a24aa 100644
--- a/osdep/keycodes.h
+++ b/osdep/keycodes.h
@@ -72,7 +72,7 @@
#define KEY_VOLUME_UP (KEY_MM_BASE+10)
#define KEY_VOLUME_DOWN (KEY_MM_BASE+11)
#define KEY_MUTE (KEY_MM_BASE+12)
-
+
/* Keypad keys */
#define KEY_KEYPAD (KEY_BASE+32)
#define KEY_KP0 (KEY_KEYPAD+0)
diff --git a/osdep/macosx_finder_args.c b/osdep/macosx_finder_args.c
index f784db0e61..81c1959894 100644
--- a/osdep/macosx_finder_args.c
+++ b/osdep/macosx_finder_args.c
@@ -29,8 +29,8 @@ static play_tree_t *files=NULL;
static inline void add_entry(play_tree_t **last_parentp, play_tree_t **last_entryp, play_tree_t *entry) {
if(*last_entryp==NULL)
- play_tree_set_child(*last_parentp, entry);
- else
+ play_tree_set_child(*last_parentp, entry);
+ else
play_tree_append_entry(*last_entryp, entry);
*last_entryp=entry;
@@ -97,7 +97,7 @@ long itemsInList;
}
else
mp_msg(MSGT_CFGPARSER, MSGL_ERR, "AECountItems() error %d\n", res);
-
+
AEDisposeDesc(&docList);
}
else
diff --git a/osdep/mmap_anon.c b/osdep/mmap_anon.c
index 1de85030f4..727761cb6c 100644
--- a/osdep/mmap_anon.c
+++ b/osdep/mmap_anon.c
@@ -34,9 +34,9 @@
/*
* mmap() anonymous space, depending on the system's mmap() style. On systems
* that use the /dev/zero mapping idiom, zerofd will be set to the file descriptor
- * of the opened /dev/zero.
+ * of the opened /dev/zero.
*/
-
+
/**
* \brief mmap() anonymous space, depending on the system's mmap() style. On systems
* that use the /dev/zero mapping idiom, zerofd will be set to the file descriptor
@@ -47,7 +47,7 @@
* \param prot protections (region accessibility).
* \param flags specifies the type of the mapped object.
* \param offset start mapping at byte offset.
- * \param zerofd
+ * \param zerofd
* \return a pointer to the mapped region upon successful completion, -1 otherwise.
*/
void *mmap_anon(void *addr, size_t len, int prot, int flags, off_t offset)
diff --git a/osdep/mplayer.rc b/osdep/mplayer.rc
index 82c5fbb317..0df832f830 100644
--- a/osdep/mplayer.rc
+++ b/osdep/mplayer.rc
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <winver.h>
+#include <winver.h>
#include "version.h"
1 VERSIONINFO
@@ -27,8 +27,8 @@ PRODUCTVERSION 0,0,9,0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
{
- BLOCK "StringFileInfo"
- {
+ BLOCK "StringFileInfo"
+ {
BLOCK "000004b0" // LANG_NEUTRAL,UNICODE_CP
{
VALUE "Comments","MPlayer is distributed under the terms of the GNU General Public License Version 2. Source code is available at http://www.mplayerhq.hu\000"
@@ -44,7 +44,7 @@ FILETYPE VFT_APP
//VALUE "SpecialBuild","\000"
}
}
- BLOCK "VarFileInfo"
+ BLOCK "VarFileInfo"
{
VALUE "Translation",0,0x04b0
}
diff --git a/osdep/strsep.c b/osdep/strsep.c
index 21552907a5..a5ffa7054d 100644
--- a/osdep/strsep.c
+++ b/osdep/strsep.c
@@ -53,6 +53,6 @@ char *strsep(char **stringp, const char *delim) {
}
else
*stringp = NULL;
-
+
return begin;
}
diff --git a/osdep/timer-darwin.c b/osdep/timer-darwin.c
index 9c49cd0fc8..c292852c27 100644
--- a/osdep/timer-darwin.c
+++ b/osdep/timer-darwin.c
@@ -38,9 +38,9 @@ const char *timer_name = "Darwin accurate";
float sleep_accurate(float time_frame)
{
uint64_t deadline = time_frame / timebase_ratio + mach_absolute_time();
-
+
mach_wait_until(deadline);
-
+
return (mach_absolute_time() - deadline) * timebase_ratio;
}
@@ -67,10 +67,10 @@ unsigned int GetTimerMS(void)
float GetRelativeTime(void)
{
double last_time = relative_time;
-
+
if (!relative_time)
InitTimer();
-
+
relative_time = mach_absolute_time() * timebase_ratio;
return (float)(relative_time-last_time);
@@ -82,9 +82,9 @@ void InitTimer(void)
struct mach_timebase_info timebase;
mach_timebase_info(&timebase);
- timebase_ratio = (double)timebase.numer / (double)timebase.denom
+ timebase_ratio = (double)timebase.numer / (double)timebase.denom
* (double)1e-9;
-
+
relative_time = (double)(mach_absolute_time() * timebase_ratio);
}
@@ -94,7 +94,7 @@ void InitTimer(void)
int main(void) {
int i,j, r, c = 200;
long long t = 0;
-
+
InitTimer();
for (i = 0; i < c; i++) {
diff --git a/osdep/timer-win2.c b/osdep/timer-win2.c
index a22de330fa..100a3b6868 100644
--- a/osdep/timer-win2.c
+++ b/osdep/timer-win2.c
@@ -37,10 +37,10 @@ unsigned int GetTimerMS(void)
}
int usec_sleep(int usec_delay){
- // Sleep(0) won't sleep for one clocktick as the unix usleep
+ // Sleep(0) won't sleep for one clocktick as the unix usleep
// instead it will only make the thread ready
// it may take some time until it actually starts to run again
- if(usec_delay<1000)usec_delay=1000;
+ if(usec_delay<1000)usec_delay=1000;
Sleep( usec_delay/1000);
return 0;
}