Changeset 2446 for neercs/trunk


Ignore:
Timestamp:
Jun 16, 2008, 5:12:51 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Removed unused variables and added comment to get cool scores on

ohloh

Location:
neercs/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/effects.c

    r2445 r2446  
    213213
    214214
     215/* Close a window by animating it collapsing */
     216/* Total close time */
    215217#define DELAY 500000.0f
    216 
    217218int close_screen_recurrent(struct screen_list* screen_list, struct recurrent* rec, void *user, long long unsigned int t)
    218219{
     
    237238        int h = s->orig_h * r;
    238239
    239 
     240        /* libcucul canvas resize function is bugged, do it by hand  */
    240241        old = s->cv;
    241242        new = cucul_create_canvas(w, h);
  • neercs/trunk/src/neercs.h

    r2445 r2446  
    4040
    4141    /* Other stuff */
    42     int visible;
    43     int fd;
    44     unsigned char *buf;
    45     char *title;
    46     long int total;
    47     int bell;
    48     unsigned int scroll, s1, s2;
    49     int pid;
     42    int visible;                 /* Draw canvas and border flag */
     43    int fd;                      /* pty fd */
     44    unsigned char *buf;          /* text buffer */
     45    long int total;              /* buffer length */
     46    char *title;                 /* tty title */
     47    int bell;                    /* bell occuring */
     48    unsigned int scroll, s1, s2; /* FIXME, ANSI scroll properties */
     49    int pid;                     /* running program pid */
    5050
    51     int kill_time;
     51    int x, y;                    /* Canvas position */
     52    int w, h;                    /* Canvas size */
    5253
    53     int x, y;
    54     int w, h;
    55 
    56     int orig_x, orig_y;
    57     int orig_w, orig_h;
     54    int orig_x, orig_y;          /* Used by recurrents */
     55    int orig_w, orig_h;          /* Used by recurrents */
    5856
    5957};
     
    6159struct screen_list
    6260{
    63     int wm_type;
    64     int in_bell;
    65     int dont_update_coords;
     61    int wm_type;                 /* Window manager type */
     62    int in_bell;                 /* Bell occuring in a window  */
     63    int dont_update_coords;      /* Used by recurrents */
    6664    /* Add-ons*/
    67     int mini;
    68     int status;
    69     int help;
     65    int mini;                    /* Thumbnails */
     66    int status;                  /* Status bar */
     67    int help;                    /* help */
    7068
    71     int pty, prevpty;
    72     int count;
    73     int width, height;
    74     struct screen **screen;
     69    int pty, prevpty;            /* Current and previous window */
     70    int count;                   /* Window count */
     71    int width, height;           /* caca window size */
     72    struct screen **screen;      /* Windows */
    7573};
    7674
  • neercs/trunk/src/recurrent.c

    r2445 r2446  
    3030#include "neercs.h"
    3131
    32 
     32/* Add recurrent function. It will be called at each main loop iteration, unless it is removed */
    3333int add_recurrent(struct recurrent_list *list,
    3434                  int (*func)(struct screen_list*, struct recurrent* rec, void *user, long long unsigned int t),
     
    5656
    5757
     58/* Remove recurrent. Do *NOT* call this from a recurrent function. */
    5859int remove_recurrent(struct recurrent_list *list, int n)
    5960{
Note: See TracChangeset for help on using the changeset viewer.