~ubuntu-branches/ubuntu/trusty/htop/trusty-proposed

« back to all changes in this revision

Viewing changes to Vector.c

  • Committer: Package Import Robot
  • Author(s): Eugene V. Lyubimkin
  • Date: 2012-02-19 10:24:46 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120219102446-3uor37shuh5qch7n
Tags: 1.0.1-1
* New upstream release.
  - Don't crash when trying to kill already finished process.
    (Closes: #652563, 657675)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
htop
 
2
htop - Vector.c
3
3
(C) 2004-2011 Hisham H. Muhammad
4
4
Released under the GNU GPL, see the COPYING file
5
5
in the source distribution for its full text.
6
6
*/
7
7
 
8
8
#include "Vector.h"
9
 
#include "Object.h"
 
9
 
 
10
#include <assert.h>
10
11
#include <stdlib.h>
11
12
#include <string.h>
12
13
#include <stdbool.h>
13
14
 
14
 
#include "debug.h"
15
 
#include <assert.h>
16
 
 
17
15
/*{
 
16
#include "Object.h"
18
17
 
19
18
#define swap(a_,x_,y_) do{ void* tmp_ = a_[x_]; a_[x_] = a_[y_]; a_[y_] = tmp_; }while(0)
20
19