From 70efbd5024defc51574195a61aa4cac9ba0f70f0 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 21 Oct 2012 19:35:49 +0200 Subject: [PATCH] PhotoRec: txt file recovery code cleanup --- src/file_txt.c | 146 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 100 insertions(+), 46 deletions(-) diff --git a/src/file_txt.c b/src/file_txt.c index 361b3484..370deed3 100644 --- a/src/file_txt.c +++ b/src/file_txt.c @@ -102,11 +102,13 @@ typedef struct } txt_header_t; static const txt_header_t fasttxt_headers[] = { + /* Unix shell */ { "#!/bin/bash", 11, "sh"}, { "#!/bin/ksh", 10, "sh"}, { "#!/bin/sh", 9, "sh"}, /* Opera Hotlist bookmark/contact list/notes */ { "Opera Hotlist version 2.0", 25, "adr"}, + /* Microsoft VB Class module */ { "VERSION 1.0 CLASS\r\nBEGIN", 24, "cls"}, /* Cue sheet often begins by the music genre * or by the filename @@ -142,16 +144,24 @@ static const txt_header_t fasttxt_headers[] = { { "--- Mnemosyne Data Base --- Format Version 2 ---", 48, "mem"}, /* Mozilla, firefox, thunderbird msf (Mail Summary File) */ { "//