Changeset f15cb3c4 in mainline


Ignore:
Timestamp:
2008-12-04T19:14:29Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0258e67
Parents:
405e13a
Message:

cstyle

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/libc.h

    r405e13a rf15cb3c4  
    4040#include <libarch/syscall.h>
    4141
    42 #define __SYSCALL0(id) __syscall0(0, 0, 0, 0, 0, 0, id)
    43 #define __SYSCALL1(id, p1) __syscall1(p1, 0, 0, 0, 0, 0, id)
    44 #define __SYSCALL2(id, p1, p2) __syscall2(p1, p2, 0, 0, 0, 0, id)
    45 #define __SYSCALL3(id, p1, p2, p3) __syscall3(p1, p2, p3, 0, 0, 0, id)
    46 #define __SYSCALL4(id, p1, p2, p3, p4) __syscall4(p1, p2, p3, p4, 0, 0, id)
    47 #define __SYSCALL5(id, p1, p2, p3, p4, p5) __syscall5(p1, p2, p3, p4, p5, 0, id)
     42#define __SYSCALL0(id) \
     43        __syscall0(0, 0, 0, 0, 0, 0, id)
     44#define __SYSCALL1(id, p1) \
     45        __syscall1(p1, 0, 0, 0, 0, 0, id)
     46#define __SYSCALL2(id, p1, p2) \
     47        __syscall2(p1, p2, 0, 0, 0, 0, id)
     48#define __SYSCALL3(id, p1, p2, p3) \
     49        __syscall3(p1, p2, p3, 0, 0, 0, id)
     50#define __SYSCALL4(id, p1, p2, p3, p4) \
     51        __syscall4(p1, p2, p3, p4, 0, 0, id)
     52#define __SYSCALL5(id, p1, p2, p3, p4, p5) \
     53        __syscall5(p1, p2, p3, p4, p5, 0, id)
    4854#define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \
    4955    __syscall6(p1, p2, p3, p4, p5, p6, id)
  • uspace/srv/console/gcons.c

    r405e13a rf15cb3c4  
    251251void gcons_mouse_move(int dx, int dy)
    252252{
    253         mouse_x = limit(mouse_x+dx, 0, xres);
    254         mouse_y = limit(mouse_y+dy, 0, yres);
     253        mouse_x = limit(mouse_x + dx, 0, xres);
     254        mouse_y = limit(mouse_y + dy, 0, yres);
    255255
    256256        async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y);
     
    259259static int gcons_find_conbut(int x, int y)
    260260{
    261         int status_start = STATUS_START + (xres - 800) / 2;;
     261        int status_start = STATUS_START + (xres - 800) / 2;
    262262
    263263        if (y < STATUS_TOP || y >= STATUS_TOP + STATUS_HEIGHT)
     
    269269        if (x >= status_start + (STATUS_WIDTH + STATUS_SPACE) * CONSOLE_COUNT)
    270270                return -1;
    271         if (((x - status_start) % (STATUS_WIDTH+STATUS_SPACE)) < STATUS_SPACE)
    272                 return -1;
    273        
    274         return (x - status_start) / (STATUS_WIDTH+STATUS_SPACE);
     271        if (((x - status_start) % (STATUS_WIDTH + STATUS_SPACE)) < STATUS_SPACE)
     272                return -1;
     273       
     274        return (x - status_start) / (STATUS_WIDTH + STATUS_SPACE);
    275275}
    276276
Note: See TracChangeset for help on using the changeset viewer.