hexsyntax.c (df3f5d9dd51fa82a604ec559a75d3791a7b80ed5) | hexsyntax.c (1c8af8787354e20c2b38cab5801698133ff8b403) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60 argv = *argvp; 61 if ((p = rindex(argv[0], 'h')) != NULL && 62 strcmp(p, "hd") == 0) { 63 /* "Canonical" format, implies -C. */ 64 add("\"%08.8_Ax\n\""); 65 add("\"%08.8_ax \" 8/1 \"%02x \" \" \" 8/1 \"%02x \" "); 66 add("\" |\" 16/1 \"%_p\" \"|\\n\""); 67 } | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60 argv = *argvp; 61 if ((p = rindex(argv[0], 'h')) != NULL && 62 strcmp(p, "hd") == 0) { 63 /* "Canonical" format, implies -C. */ 64 add("\"%08.8_Ax\n\""); 65 add("\"%08.8_ax \" 8/1 \"%02x \" \" \" 8/1 \"%02x \" "); 66 add("\" |\" 16/1 \"%_p\" \"|\\n\""); 67 } |
68 while ((ch = getopt(argc, argv, "bcCde:f:n:os:vx")) != EOF) | 68 while ((ch = getopt(argc, argv, "bcCde:f:n:os:vx")) != -1) |
69 switch (ch) { 70 case 'b': 71 add("\"%07.7_Ax\n\""); 72 add("\"%07.7_ax \" 16/1 \"%03o \" \"\\n\""); 73 break; 74 case 'c': 75 add("\"%07.7_Ax\n\""); 76 add("\"%07.7_ax \" 16/1 \"%3_c \" \"\\n\""); --- 65 unchanged lines hidden --- | 69 switch (ch) { 70 case 'b': 71 add("\"%07.7_Ax\n\""); 72 add("\"%07.7_ax \" 16/1 \"%03o \" \"\\n\""); 73 break; 74 case 'c': 75 add("\"%07.7_Ax\n\""); 76 add("\"%07.7_ax \" 16/1 \"%3_c \" \"\\n\""); --- 65 unchanged lines hidden --- |