File: xspect.c

package info (click to toggle)
spectemu 0.94a-11
  • links: PTS
  • area: contrib
  • in suites: squeeze
  • size: 1,456 kB
  • ctags: 3,161
  • sloc: ansic: 15,419; asm: 5,160; sh: 2,942; cpp: 377; makefile: 190
file content (58 lines) | stat: -rw-r--r-- 1,541 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* 
 * Copyright (C) 1996-1998 Szeredi Miklos
 * Email: mszeredi@inf.bme.hu
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. See the file COPYING. 
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#include "spmain.h"
#include "spperif.h"
#include "misc.h"
#include "xscr.h"
#include "spconf.h"

#include "ax.h"

int main(int argc, char *argv[])
{
  aX_default_resources defres;
  
  spcf_pre_check_options(argc, argv);
  
  defres.width = 0;
  defres.height = 0;
  defres.x = 0;
  defres.y = 0;
  defres.border_width = 10;
  defres.foreground = 0;
  defres.background = 1;
  defres.font_name = "7x14";
  defres.fallback_font_name = NULL;
  defres.prog_name = get_base_name(argv[0]);
  defres.class_name = "XSpscreen";

  aX_open_disp(NULL, 0, &argc, argv, &defres);

  check_params(argc, argv);
  sp_init();

  init_x_scr(&defres, &argc, argv);
  
  start_spectemu(argc, argv);
  /* This function DOES NOT return */

  return 0;
}