dav/optparser.c

changeset 14
d1a43035d3a2
parent 11
5db6178d8b58
child 18
651989681053
equal deleted inserted replaced
13:8a0cc4d90de7 14:d1a43035d3a2
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2012 Olaf Wintermann. All rights reserved. 4 * Copyright 2013 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
72 } 72 }
73 case 'p': { 73 case 'p': {
74 ucx_map_cstr_put(a->options, "plain", ""); 74 ucx_map_cstr_put(a->options, "plain", "");
75 break; 75 break;
76 } 76 }
77 case 'a': {
78 ucx_map_cstr_put(a->options, "all", "");
79 break;
80 }
81 case 'l': {
82 ucx_map_cstr_put(a->options, "list", "");
83 break;
84 }
85 case 't': {
86 ucx_map_cstr_put(a->options, "type", "");
87 break;
88 }
77 case 'o': { 89 case 'o': {
78 if(!option) { 90 if(!option) {
79 option = "output"; 91 option = "output";
80 optchar = 'o'; 92 optchar = 'o';
81 } else { 93 } else {

mercurial