Changeset 1673 for trunk/dll/eas.c


Ignore:
Timestamp:
Dec 30, 2012, 7:51:01 PM (13 years ago)
Author:
Gregg Young
Message:

Update to Doxygen comment style Ticket 55. Also some minor code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/eas.c

    r1628 r1673  
    8787HOLDFEA *CheckEA(HOLDFEA * head, CHAR * eaname)
    8888{
    89   /* return pointer to ea named eaname if found in linked list */
     89  // return pointer to ea named eaname if found in linked list
    9090
    9191  register HOLDFEA *info = NULL;
     
    196196            }
    197197          }
    198           /* if we get here, create dummy ea */
     198          // if we get here, create dummy ea
    199199          {
    200200            PFEA2LIST pfealist = NULL;
     
    215215              eaval += sizeof(USHORT);
    216216              if (type == EAT_MVST || type == EAT_MVMT) {
    217                 *(USHORT *) eaval = (USHORT) 0; /* codepage */
     217                *(USHORT *) eaval = (USHORT) 0; // codepage
    218218                eaval += sizeof(USHORT);
    219                 *(USHORT *) eaval = (USHORT) 1; /* number */
     219                *(USHORT *) eaval = (USHORT) 1; // number
    220220                eaval += sizeof(USHORT);
    221                 *(USHORT *) eaval = (USHORT) EAT_ASCII; /* type */
     221                *(USHORT *) eaval = (USHORT) EAT_ASCII; // type
    222222                eaval += sizeof(USHORT);
    223223              }
     
    263263VOID HexDump(HWND hwnd, CHAR * value, ULONG cbValue)
    264264{
    265   /* display a hexdump of a binary 'string' in listbox hwnd */
     265  // display a hexdump of a binary 'string' in listbox hwnd
    266266
    267267  CHAR s[132];
     
    10591059             BOOL silentfail)
    10601060{
    1061   /* save an ea to disk */
     1061  // save an ea to disk
    10621062
    10631063  PFEA2LIST pfealist = NULL;
     
    11541154      }
    11551155      break;
    1156 /*
    1157    cbList      nextoffset fea cb cbval name.......
    1158    000000  3C 00 00 00 00 00 00 00 6F 0B 24 00 2E 4B 45 59  <       o
     1156/**
     1157 * cbList      nextoffset fea cb cbval name.......
     1158 * 000000  3C 00 00 00 00 00 00 00 6F 0B 24 00 2E 4B 45 59  <       o
    11591159$ .KEY
    1160    ....................    eat   code  num   eat
    1161    000010  50 48 52 41 53 45 53 00 DF FF 00 00 02 00 FD FF  PHRASES ßÿ  ýÿ
    1162    len.. phrase1............................ eat
    1163    000020  0C 00 4B 65 79 20 70 68 72 61 73 65 20 31 FD FF 
     1160 * ....................    eat   code  num   eat
     1161 * 000010  50 48 52 41 53 45 53 00 DF FF 00 00 02 00 FD FF  PHRASES ßÿ  ýÿ
     1162 * len.. phrase1............................ eat
     1163 * 000020  0C 00 4B 65 79 20 70 68 72 61 73 65 20 31 FD FF 
    11641164 Key phrase 1ýÿ
    1165    len.. phrase2......................
    1166    000030  0A 00 4B 65 79 20 70 68 72 61 73 65               Key phrase
     1165 * len.. phrase2......................
     1166 * 000030  0A 00 4B 65 79 20 70 68 72 61 73 65               Key phrase
    11671167 */
    11681168    case EAT_MVMT:
     
    12011201      break;
    12021202    }
    1203     pfealist->list[0].cbValue = /*(ULONG)*/ (eaval -
    1204                                          (pfealist->list[0].szName +
    1205                                           pfealist->list[0].cbName + 1));
     1203    pfealist->list[0].cbValue = eaval - (pfealist->list[0].szName + pfealist->list[0].cbName + 1);
    12061204    eaop.fpGEA2List = (PGEA2LIST) 0;
    12071205    eaop.fpFEA2List = pfealist;
     
    12391237HOLDFEA *GetFileEAs(CHAR * filename, BOOL ishandle, BOOL silentfail)
    12401238{
    1241   /* load eas from disk into HOLDFEA linked list */
     1239  // load eas from disk into HOLDFEA linked list
    12421240
    12431241  HOLDFEA *head = NULL, *info, *last = NULL;
     
    13421340  }
    13431341  else {
    1344     /* try it without opening it */
     1342    // try it without opening it
    13451343    if (!DosQueryPathInfo(filename, FIL_QUERYEASIZE, (PVOID) & fsa4,
    13461344                          (ULONG) sizeof(fsa4)) &&
     
    14411439VOID Free_FEAList(HOLDFEA * pFEA)
    14421440{
    1443   /* free a linked list of HOLDFEAs */
     1441  // free a linked list of HOLDFEAs
    14441442
    14451443  register HOLDFEA *next;
    14461444
    14471445  while (pFEA) {
    1448     /* Free linked list */
     1446    // Free linked list
    14491447    next = pFEA->next;
    14501448    xfree(pFEA->pfea, pszSrcFile, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.