~ubuntu-branches/ubuntu/karmic/iterm/karmic

« back to all changes in this revision

Viewing changes to lib/src/tabs.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Fok
  • Date: 2004-02-27 04:13:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040227041316-q0jn37sia8mt0t9u
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This software is subject to the terms of the Common Public License
 
2
   You must accept the terms of this license to use this software.
 
3
 
 
4
   Copyright (C) 2002, International Business Machines Corporation
 
5
   and others.  All Rights Reserved.
 
6
 
 
7
   Further information about Common Public License Version 0.5 is obtained
 
8
   from url http://oss.software.ibm.com/developer/opensource/license-cpl.html */
 
9
 
 
10
/**
 
11
 * @file tabs.h
 
12
 */     
 
13
 
 
14
#ifndef __TABS_H__
 
15
#define __TABS_H__
 
16
 
 
17
enum {
 
18
    BYTE = 8,
 
19
    MAX_TAB_BYTES = 40,
 
20
        /**< MAX Tab bytes */
 
21
    MAX_TAB_BITS = BYTE * MAX_TAB_BYTES
 
22
        /**< Max Tab bits, means max column size this class can handle */
 
23
};
 
24
 
 
25
 
 
26
typedef unsigned char TABS[MAX_TAB_BYTES];
 
27
/**< tabulation class */
 
28
 
 
29
void TABS_clear_all_tabs(TABS tabstop);
 
30
void TABS_clear_tab(TABS tabstop,int col);
 
31
void TABS_set_tab(TABS tabstop,int col);
 
32
void TABS_init_tabs(TABS tabstop);
 
33
int  TABS_get_next_tab(TABS tabstop, int col);
 
34
int TABS_get_prev_tab(TABS tabstop, int col);
 
35
 
 
36
#endif