Small clarity change

This commit is contained in:
rocky
2003-03-24 21:01:40 +00:00
parent d4d82912da
commit e0afa970fa

View File

@@ -1,5 +1,5 @@
/* /*
$Id: cdinfo.c,v 1.1 2003/03/24 19:01:10 rocky Exp $ $Id: cdinfo.c,v 1.2 2003/03/24 21:01:40 rocky Exp $
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com> Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
Copyright (C) 1996,1997,1998 Gerd Knorr <kraxel@bytesex.org> Copyright (C) 1996,1997,1998 Gerd Knorr <kraxel@bytesex.org>
@@ -130,19 +130,14 @@ and
#define ROCKRIDGE 2048 #define ROCKRIDGE 2048
#define JOLIET 4096 #define JOLIET 4096
/* Some interesting sector numbers. */ char buffer[6][CDDA_SECTOR_SIZE]; /* for CD-Data */
#define ISO_SUPERBLOCK_SECTOR 16
#define UFS_SUPERBLOCK_SECTOR 4 /* Some interesting sector numbers stored in the above buffer. */
#define BOOT_SECTOR 17 #define ISO_SUPERBLOCK_SECTOR 16 /* buffer[0] */
#define VCD_INFO_SECTOR 150 #define UFS_SUPERBLOCK_SECTOR 4 /* buffer[2] */
#define BOOT_SECTOR 17 /* buffer[3] */
#define VCD_INFO_SECTOR 150 /* buffer[4] */
#if 0
#define STRONG "\033[1m"
#define NORMAL "\033[0m"
#else
#define STRONG "__________________________________\n"
#define NORMAL ""
#endif
typedef struct signature typedef struct signature
{ {
@@ -152,22 +147,9 @@ typedef struct signature
const char *description; const char *description;
} signature_t; } signature_t;
#define IS_ISOFS 0
#define IS_CD_I 1
#define IS_CDTV 2
#define IS_CD_RTOS 3
#define IS_HS 4
#define IS_BRIDGE 5
#define IS_XA 6
#define IS_PHOTO_CD 7
#define IS_EXT2 8
#define IS_UFS 9
#define IS_BOOTABLE 10
#define IS_VIDEO_CD 11
static signature_t sigs[] = static signature_t sigs[] =
{ {
/* Buff off look for description */ /*buffer[x] off look for description */
{0, 1, "CD001", "ISO 9660"}, {0, 1, "CD001", "ISO 9660"},
{0, 1, "CD-I", "CD-I"}, {0, 1, "CD-I", "CD-I"},
{0, 8, "CDTV", "CDTV"}, {0, 8, "CDTV", "CDTV"},
@@ -183,6 +165,28 @@ static signature_t sigs[] =
{ 0 } { 0 }
}; };
#if 0
#define STRONG "\033[1m"
#define NORMAL "\033[0m"
#else
#define STRONG "__________________________________\n"
#define NORMAL ""
#endif
#define IS_ISOFS 0
#define IS_CD_I 1
#define IS_CDTV 2
#define IS_CD_RTOS 3
#define IS_HS 4
#define IS_BRIDGE 5
#define IS_XA 6
#define IS_PHOTO_CD 7
#define IS_EXT2 8
#define IS_UFS 9
#define IS_BOOTABLE 10
#define IS_VIDEO_CD 11
int rc; /* return code */ int rc; /* return code */
int i,j; /* index */ int i,j; /* index */
int isofs_size = 0; /* size of session */ int isofs_size = 0; /* size of session */
@@ -191,8 +195,6 @@ int ms_offset; /* multisession offset found by track-walking */
int data_start; /* start of data area */ int data_start; /* start of data area */
int joliet_level = 0; int joliet_level = 0;
char buffer[6][CDDA_SECTOR_SIZE]; /* for CD-Data */
CdIo *img; CdIo *img;
track_t num_tracks; track_t num_tracks;
track_t first_track_num; track_t first_track_num;